* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

:root {
  --bg-deep: #0b0e14;
  --bg-main: #11151e;
  --bg-panel: #161a24;
  --bg-card: #1b202c;
  --bg-card-right: #1d212a;
  --bg-sidebar: #12151e;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(255, 255, 255, 0.14);
  --bnet-blue: #0074e0;
  --bnet-blue-hover: #148eff;
  --bnet-cyan: #00aeff;
  --bnet-green: #4cd137;
  --bnet-gold: #f5b942;
  --text-bright: #ffffff;
  --text-main: #d8dee9;
  --text-muted: #8b95a5;
  --text-dim: #5d6778;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.bnet-app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background: var(--bg-main);
}

/* ================= TOP NAVIGATION BAR ================= */
.bnet-topbar {
  height: 50px;
  background: #0d1017;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bobby-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.bobby-brand:hover {
  background: rgba(255, 255, 255, 0.06);
}
.brand-chevron {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: -3px;
}

.nav-arrows {
  display: flex;
  gap: 4px;
}
.arrow-btn {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-tab {
  background: transparent;
  border: none;
  color: #a4b0be;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.7px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
}
.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
.nav-tab.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 174, 255, 0.5);
}
.nav-tab.highlight-tab {
  color: #d1d8e0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-icon-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--bnet-cyan);
  border-radius: 50%;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.user-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff9f43, #5f27cd);
  border: 2px solid #3c4858;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}
.status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #0d1017;
}
.status-dot.online {
  background: #2ecc71;
}
.user-info {
  line-height: 1.2;
}
.user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
}
.user-status {
  font-size: 11px;
  color: var(--text-muted);
}

/* ================= MAIN BODY & LAYOUT ================= */
.bnet-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.bnet-workspace {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 18px 14px 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 25%, rgba(22, 65, 55, 0.38) 0%, rgba(17, 21, 30, 0.96) 65%);
}

.bnet-app[data-theme="starcraft"] .bnet-workspace {
  background: radial-gradient(ellipse at 20% 25%, rgba(0, 95, 165, 0.38) 0%, rgba(17, 21, 30, 0.96) 65%);
}
.bnet-app[data-theme="diablo"] .bnet-workspace {
  background: radial-gradient(ellipse at 20% 25%, rgba(135, 20, 45, 0.38) 0%, rgba(17, 21, 30, 0.96) 65%);
}
.bnet-app[data-theme="arcane"] .bnet-workspace {
  background: radial-gradient(ellipse at 20% 25%, rgba(140, 95, 15, 0.36) 0%, rgba(17, 21, 30, 0.96) 65%);
}
.bnet-app[data-theme="overwatch"] .bnet-workspace {
  background: radial-gradient(ellipse at 20% 25%, rgba(30, 90, 130, 0.36) 0%, rgba(17, 21, 30, 0.96) 65%);
}

/* ================= FAVORITES BAR ================= */
.favorites-bar {
  height: 48px;
  background: rgba(25, 30, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
  z-index: 5;
}

.favorites-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #8b95a5;
  margin-right: 4px;
}

.favorites-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fav-bot-btn {
  position: relative;
  width: 42px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.12s;
}
.fav-bot-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}
.fav-bot-btn.active {
  background: rgba(255, 255, 255, 0.09);
}
.fav-bot-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 3px;
  background: var(--bnet-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--bnet-cyan);
}

.fav-crest {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11.5px;
  color: #fff;
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.fav-add-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #b2bec3;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}
.fav-add-btn:hover {
  background: rgba(0, 174, 255, 0.25);
  color: #fff;
  border-color: var(--bnet-cyan);
}

/* ================= STAGE GRID (LEFT COLUMN + CENTER) ================= */
.stage-grid {
  display: flex;
  flex: 1;
  gap: 20px;
  margin-top: 10px;
  min-height: 0;
  z-index: 5;
}

/* LEFT COLUMN */
.left-bot-column {
  width: 235px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 4px 4px 4px;
}

.bot-emblem-box {
  text-align: center;
  padding: 12px 8px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45), transparent 75%);
}

.emblem-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #f5b942;
  background: rgba(245, 185, 66, 0.12);
  border: 1px solid rgba(245, 185, 66, 0.4);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.emblem-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d6 0%, #f5b942 55%, #b87714 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.85));
}

.emblem-ribbon {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 12px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #d1d8e0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.emblem-subtitle {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #2ed573;
  text-shadow: 0 0 10px rgba(46, 213, 115, 0.45);
}

.left-bot-artwork-card {
  background: rgba(15, 19, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

.art-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}
.art-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.art-stat-label {
  color: var(--text-muted);
}
.art-stat-val {
  color: #fff;
  font-weight: 600;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-controls-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.version-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #9aa5b4;
}

.bnet-select {
  width: 100%;
  height: 36px;
  background: #171c26;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 0 10px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.bnet-select:hover, .bnet-select:focus {
  border-color: var(--bnet-cyan);
}

.play-button-row {
  display: flex;
  gap: 3px;
  height: 52px;
}

.bnet-play-btn {
  flex: 1;
  background: linear-gradient(180deg, #0a84ff 0%, #0066cc 100%);
  border: 1px solid #3399ff;
  border-radius: 5px 0 0 5px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 116, 224, 0.45);
  transition: filter 0.15s, transform 0.08s;
}
.bnet-play-btn:hover {
  filter: brightness(1.12);
}
.bnet-play-btn:active {
  transform: scale(0.99);
}
.bnet-play-btn.running {
  background: linear-gradient(180deg, #f39c12 0%, #d35400 100%);
  border-color: #f1c40f;
}

.bnet-gear-btn {
  width: 44px;
  background: linear-gradient(180deg, #0a84ff 0%, #0066cc 100%);
  border: 1px solid #3399ff;
  border-radius: 0 5px 5px 0;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bnet-gear-btn:hover {
  filter: brightness(1.12);
}

.region-version-meta {
  font-size: 11px;
  color: #747d8c;
  margin-top: 2px;
}

/* ================= CENTER MAIN STAGE ================= */
.center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.center-stage::-webkit-scrollbar {
  width: 6px;
}
.center-stage::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

/* Top Action Pills */
.center-action-pills {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.pill-btn {
  background: rgba(28, 33, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #d1d8e0;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.pill-btn:hover {
  background: rgba(45, 52, 70, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.pill-btn.green-pill {
  color: #4cd137;
  border-color: rgba(76, 209, 55, 0.3);
}
.pill-btn.icon-only {
  padding: 6px 9px;
}

/* HERO CARD (Battle.net Split Banner Card) */
.hero-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
  flex-shrink: 0;
}

.hero-left-config {
  flex: 1.55;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(22, 42, 42, 0.72) 0%, rgba(20, 25, 35, 0.96) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-banner-top {
  padding: 12px 16px 10px 16px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 116, 224, 0.15) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-banner-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--bnet-gold);
  text-transform: uppercase;
}

.hero-banner-heading {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
  letter-spacing: 0.4px;
}

.quick-url-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.chip-label {
  font-size: 11px;
  color: var(--text-muted);
}
.url-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #70a1ff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
}
.url-chip:hover {
  background: rgba(0, 174, 255, 0.2);
  color: #fff;
}

.config-form-body {
  padding: 12px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.input-group label {
  font-size: 11px;
  font-weight: 600;
  color: #a4b0be;
}

.bnet-input {
  height: 32px;
  background: rgba(10, 13, 19, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12.5px;
  outline: none;
  user-select: text;
}
.bnet-input:focus {
  border-color: var(--bnet-cyan);
  box-shadow: 0 0 0 2px rgba(0, 174, 255, 0.2);
}

.options-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #ced6e0;
  margin-top: 2px;
}
.mini-link-btn {
  background: none;
  border: none;
  color: var(--bnet-cyan);
  font-size: 11px;
  cursor: pointer;
}
.mini-link-btn:hover {
  text-decoration: underline;
}

.options-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.bnet-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: rgba(13, 17, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  padding: 6px 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.bnet-checkbox:hover {
  border-color: rgba(0, 174, 255, 0.4);
  background: rgba(20, 27, 40, 0.85);
}
.bnet-checkbox input {
  display: none;
}
.cb-box {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1.5px solid #57606f;
  background: #0d1118;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
}
.bnet-checkbox input:checked + .cb-box {
  background: var(--bnet-blue);
  border-color: var(--bnet-cyan);
}
.bnet-checkbox input:checked + .cb-box::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 11px;
  color: #fff;
  font-weight: bold;
}
.cb-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.cb-text strong {
  font-size: 11.5px;
  color: #f1f2f6;
}
.cb-text small {
  font-size: 10px;
  color: #747d8c;
  margin-top: 1px;
}

/* Right side of Hero Card */
.hero-right-summary {
  flex: 1;
  background: var(--bg-card-right);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8b95a5;
  text-transform: uppercase;
}

.summary-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.25;
}

.summary-desc {
  font-size: 12px;
  color: #a4b0be;
  line-height: 1.45;
  margin-top: 8px;
}

.telemetry-Readout {
  margin-top: 12px;
  background: rgba(11, 14, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.telemetry-item {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}
.t-key {
  color: #8b95a5;
}
.t-val {
  color: #ffffff;
  font-weight: 600;
}
.badge-ready {
  color: #2ecc71;
}

.watch-now-btn {
  width: 100%;
  height: 38px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
}
.watch-now-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ================= FEATURED / RESULTS SECTION ================= */
.featured-section {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 250px;
}

.featured-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.featured-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}
.featured-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.results-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.res-tab {
  background: rgba(24, 29, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #a4b0be;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.res-tab:hover {
  color: #fff;
  background: rgba(40, 48, 66, 0.9);
}
.res-tab.active {
  background: var(--bnet-blue);
  border-color: var(--bnet-cyan);
  color: #fff;
}
.tab-count {
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 10px;
}

/* Featured 2-Card Grid (Matches the 2 side-by-side Featured banners at bottom of Battle.net) */
.featured-two-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.featured-card {
  background: #181c26;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  max-height: 310px;
}

.fc-banner {
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(0, 116, 224, 0.25) 0%, rgba(24, 28, 38, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fc-banner.secondary {
  background: linear-gradient(90deg, rgba(46, 213, 115, 0.2) 0%, rgba(24, 28, 38, 0.95) 100%);
}
.fc-banner-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fc-badge {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #70a1ff;
  font-weight: 700;
}

.fc-body {
  padding: 10px 14px;
  overflow-y: auto;
  flex: 1;
  user-select: text;
}
.fc-body::-webkit-scrollbar {
  width: 5px;
}
.fc-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
}

.extracted-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.extracted-item {
  background: rgba(11, 14, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.35;
}
.extracted-item.kw-hit {
  border-left: 3px solid var(--bnet-gold);
}
.item-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 174, 255, 0.2);
  color: var(--bnet-cyan);
  margin-right: 6px;
}
.extracted-link {
  color: #70a1ff;
  text-decoration: none;
  word-break: break-all;
}
.extracted-link:hover {
  text-decoration: underline;
}

.raw-json-pre {
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px;
  color: #7bed9f;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 11.5px;
  max-height: 290px;
  overflow: auto;
  user-select: text;
}

/* ================= RIGHT SIDEBAR (FRIENDS / BOT SQUAD) ================= */
.bnet-right-sidebar {
  width: 265px;
  background: var(--bg-sidebar);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
}

.sidebar-top-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sb-icon-btn {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: #ced6e0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sb-search-wrap {
  position: relative;
  flex: 1;
}
.sb-search-input {
  width: 100%;
  height: 30px;
  background: rgba(9, 11, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  padding: 0 26px 0 9px;
  color: #fff;
  font-size: 11.5px;
  outline: none;
}
.sb-search-icon {
  position: absolute;
  right: 7px;
  top: 6px;
  font-size: 11px;
  opacity: 0.6;
}

.sidebar-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.sidebar-scroll-area::-webkit-scrollbar {
  width: 5px;
}
.sidebar-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.sb-group {
  margin-bottom: 10px;
}
.sb-group-header {
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #8b95a5;
  letter-spacing: 0.3px;
}

.sb-bot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.12s;
}
.sb-bot-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.sb-bot-item.active {
  background: rgba(0, 174, 255, 0.13);
  border-left: 3px solid var(--bnet-cyan);
  padding-left: 11px;
}

.sb-bot-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sb-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.sb-bot-meta {
  min-width: 0;
}
.sb-bot-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #70a1ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-bot-status {
  font-size: 10.5px;
  color: #8b95a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-crest-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #f5b942;
  color: #f5b942;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-bottom-bar {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.chats-groups-btn {
  width: 100%;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.chats-groups-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ================= MODALS & TOAST ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-backdrop.hidden {
  display: none;
}

.bnet-modal {
  width: 520px;
  background: #161b26;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.bnet-modal.modal-large {
  width: 720px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 14px 18px;
  background: #10141d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 15px;
  color: #fff;
}
.modal-close {
  background: none;
  border: none;
  color: #8b95a5;
  font-size: 16px;
  cursor: pointer;
}

.modal-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 18px;
  background: #10141d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-save-btn {
  height: 34px;
  padding: 0 18px;
  border-radius: 5px;
  font-size: 13px;
  flex: unset;
}

.bnet-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0074e0;
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  z-index: 200;
}
.bnet-toast.hidden {
  display: none;
}


/* ================= WOWHEAD CLASS BUILDS & TALENT TREES ================= */
.builds-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 6px;
}

.class-build-card {
  background: linear-gradient(180deg, #161c2a 0%, #101520 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.cb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.cb-class-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cb-spec-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid #ffd700;
  object-fit: cover;
  background: #0b0e14;
}

.cb-class-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cb-class-sub {
  font-size: 12px;
  color: #a4b0be;
  margin-top: 2px;
}

.cb-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.talent-tree-img-wrap {
  width: 100%;
  background: #090c14;
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.talent-tree-img {
  width: 100%;
  height: auto;
  display: block;
}

.specs-pill-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #8b95a5;
}

.spec-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d8dee9;
  text-decoration: none;
  font-size: 11px;
}
.spec-link-pill:hover {
  background: rgba(0, 174, 255, 0.18);
  border-color: #00aeff;
  color: #fff;
}


/* ================= WOWHEAD RETAIL NEWS HOMEPAGE (HOME TAB) ================= */
.hidden {
  display: none !important;
}

.wowhead-home-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 22px 18px 22px;
  gap: 14px;
  overflow: hidden;
}

.wh-news-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(24, 15, 18, 0.95) 0%, rgba(16, 22, 34, 0.95) 100%);
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-left: 4px solid #c41f3b;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.wh-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wh-shield-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c41f3b 0%, #8b1228 100%);
  border: 2px solid #ffd700;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(196, 31, 59, 0.5);
}

.wh-header-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: #f5b942;
}

.wh-header-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.wh-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wh-search-box {
  width: 250px;
}

.wh-last-sync {
  font-size: 11.5px;
  color: #9ba6b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wh-refresh-btn {
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
}

.wh-news-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.wh-news-main-col {
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Featured Hero Article on top of News Stream */
.wh-hero-news-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: linear-gradient(135deg, #1b2234 0%, #111622 100%);
  border: 1px solid rgba(245, 185, 66, 0.45);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s, border-color 0.15s;
}
.wh-hero-news-card:hover {
  border-color: #ffd700;
}

.wh-hero-thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: #090c12;
  min-height: 200px;
}
.wh-hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.wh-hero-news-card:hover .wh-hero-thumb {
  transform: scale(1.03);
}

.wh-hero-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.wh-post-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.wh-type-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: #c41f3b;
  color: #fff;
  letter-spacing: 0.6px;
}
.wh-type-badge.type-ptr {
  background: #0074e0;
}
.wh-type-badge.type-beta {
  background: #8e44ad;
}
.wh-type-badge.type-forever {
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  border: 1px solid rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
  color: #ffffff;
}
.wh-type-badge.type-classic {
  background: #d97706;
  color: #ffffff;
}

.wh-tag-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(245, 185, 66, 0.15);
  color: #ffd700;
  border: 1px solid rgba(245, 185, 66, 0.3);
}

.wh-hero-title-link {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.3;
}
.wh-hero-title-link:hover {
  color: #ffd700;
  text-decoration: underline;
}

.wh-post-preview {
  font-size: 13px;
  color: #c3ccd9;
  line-height: 1.5;
}

.wh-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  font-size: 11.5px;
  color: #8b95a5;
}

.wh-author-name {
  color: #f5b942;
  font-weight: 700;
}

/* Standard Wowhead News Row Card */
.wh-news-post-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  background: rgba(20, 26, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.wh-news-post-card:hover {
  border-color: rgba(0, 174, 255, 0.55);
  background: rgba(24, 32, 48, 0.98);
}

.wh-post-thumb-wrap {
  display: block;
  background: #090c12;
  height: 138px;
  overflow: hidden;
  position: relative;
}

.wh-post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.wh-news-post-card:hover .wh-post-thumb {
  transform: scale(1.04);
}

.wh-post-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
}

.wh-post-title-link {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.32;
}
.wh-post-title-link:hover {
  color: #00d2ff;
  text-decoration: underline;
}

.wh-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 116, 224, 0.22);
  border: 1px solid rgba(0, 174, 255, 0.4);
  color: #54c7fc;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}
.wh-read-more-btn:hover {
  background: #0074e0;
  color: #fff;
}

/* Right Column: Blue Tracker & Spotlight Guides */
.wh-news-side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.wh-side-panel {
  background: rgba(17, 22, 33, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wh-side-panel-header {
  padding: 10px 13px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wh-side-panel-header.blue-header {
  background: linear-gradient(90deg, rgba(0, 116, 224, 0.28), rgba(17, 22, 33, 0.9));
  color: #54c7fc;
}
.wh-side-panel-header.gold-header {
  background: linear-gradient(90deg, rgba(245, 185, 66, 0.22), rgba(17, 22, 33, 0.9));
  color: #ffd700;
}

.wh-mini-link {
  color: #d8dee9;
  font-size: 11px;
  text-decoration: none;
}
.wh-mini-link:hover {
  color: #fff;
  text-decoration: underline;
}

.wh-blue-list, .wh-guides-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 270px;
  overflow-y: auto;
}

.wh-blue-item {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 116, 224, 0.08);
  border-left: 3px solid #00aeff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wh-blue-title {
  color: #70d6ff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}
.wh-blue-title:hover {
  color: #fff;
  text-decoration: underline;
}

.wh-blue-meta {
  font-size: 10.5px;
  color: #8b95a5;
  display: flex;
  justify-content: space-between;
}

.wh-guide-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #e4e9f2;
  font-size: 12px;
}
.wh-guide-item:hover {
  background: rgba(245, 185, 66, 0.14);
  border-color: rgba(245, 185, 66, 0.45);
  color: #ffd700;
}

.wh-loading-state {
  padding: 24px;
  text-align: center;
  color: #9ba6b8;
  font-size: 13px;
}


/* ================= FIX SQUISHED WOWHEAD NEWS CARDS ================= */
.wowhead-home-stage {
  min-height: 0 !important;
  height: calc(100vh - 118px) !important;
}

.wh-news-layout {
  min-height: 0 !important;
  height: 100% !important;
}

.wh-news-main-col {
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding-bottom: 28px !important;
}

.wh-hero-news-card {
  flex: 0 0 auto !important;
  min-height: 220px !important;
}

.wh-hero-thumb-link {
  height: 220px !important;
  min-height: 220px !important;
}

.wh-news-post-card {
  flex: 0 0 auto !important;
  min-height: 152px !important;
}

.wh-post-thumb-wrap {
  height: 152px !important;
  min-height: 152px !important;
}

.wh-news-side-col {
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  padding-bottom: 24px !important;
}

.wh-side-panel {
  flex: 0 0 auto !important;
}


/* ================= TOP-LEFT 39-ICON DROPDOWN PICKER ================= */
.bobby-brand-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.icon-picker-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 540px;
  background: linear-gradient(180deg, #161d2b 0%, #0e131d 100%);
  border: 1px solid rgba(255, 215, 0, 0.55);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 185, 66, 0.2);
  z-index: 9999;
}

.ip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.ip-eyebrow {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f5b942;
}

.ip-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.ip-active-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffd700;
  background: rgba(245, 185, 66, 0.14);
  border: 1px solid rgba(245, 185, 66, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.ip-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
}

.ip-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: #090c12;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.ip-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ip-icon-btn:hover {
  transform: scale(1.12);
  border-color: #00d2ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.65);
  z-index: 2;
}

.ip-icon-btn.active {
  border-color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.85);
  transform: scale(1.06);
}


/* ================= FIX 39 ICONS DROPDOWN VISIBILITY ================= */
.bnet-topbar {
  position: relative !important;
  z-index: 5000 !important;
  overflow: visible !important;
}

.topbar-left {
  overflow: visible !important;
}

.bobby-brand-dropdown-wrap {
  position: relative !important;
  z-index: 5001 !important;
  overflow: visible !important;
}

.icon-picker-dropdown {
  position: fixed !important;
  top: 54px !important;
  left: 14px !important;
  width: 640px !important;
  max-height: calc(100vh - 76px) !important;
  overflow-y: auto !important;
  background: linear-gradient(180deg, #161d2b 0%, #0d121c 100%) !important;
  border: 2px solid #ffd700 !important;
  border-radius: 10px !important;
  padding: 16px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95), 0 0 24px rgba(245, 185, 66, 0.35) !important;
  z-index: 99999 !important;
}

.ip-grid {
  display: grid !important;
  grid-template-columns: repeat(10, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
}

.ip-icon-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 54px !important;
  height: 66px !important;
  padding: 3px !important;
  border-radius: 7px !important;
  border: 2px solid rgba(255, 255, 255, 0.18) !important;
  background: #090c14 !important;
  cursor: pointer !important;
}

.ip-icon-btn img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 5px !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.ip-icon-label {
  font-size: 9px !important;
  color: #cbd5e1 !important;
  margin-top: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 48px !important;
}


/* ================= HOME SUB-SECTION DROPDOWN (NEWS & TALENT TREES) ================= */
.home-nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.home-sub-current {
  color: #ffd700;
  font-size: 11.5px;
  font-weight: 700;
  margin-left: 4px;
}

.home-nav-caret {
  font-size: 12px;
  color: #a4b0be;
  margin-left: 5px;
}

.home-sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  background: linear-gradient(180deg, #161d2b 0%, #0d121c 100%);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}

.home-sub-item:hover {
  background: rgba(0, 174, 255, 0.14);
  border-color: rgba(0, 174, 255, 0.4);
}

.home-sub-item.active {
  background: rgba(245, 185, 66, 0.14);
  border-color: rgba(245, 185, 66, 0.5);
}

.sub-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.sub-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.sub-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.wowhead-home-stage {
  height: calc(100vh - 68px) !important;
}


/* ================= HOME -> TALENT TREES FULL-WIDTH VIEW ================= */
.home-talents-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 8px;
  padding-bottom: 28px;
}

.home-talents-scroll .class-build-card {
  flex: 0 0 auto;
}


/* ================= POLISHED HOME SPLIT BUTTON & PREMIUM DROPDOWN ================= */
.home-nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.home-split-tab {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.home-split-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 174, 255, 0.45);
  box-shadow: 0 4px 16px rgba(0, 174, 255, 0.18);
}

.home-split-tab.active {
  background: linear-gradient(180deg, rgba(0, 116, 224, 0.22) 0%, rgba(245, 185, 66, 0.12) 100%);
  border-color: rgba(245, 185, 66, 0.65);
  box-shadow: 0 0 18px rgba(245, 185, 66, 0.2);
}

.home-split-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2.5px;
  background: linear-gradient(90deg, #00aeff, #ffd700);
  border-radius: 2px;
}

.home-main-click-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px 8px 15px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.home-main-click-btn:hover .home-main-label {
  color: #00d2ff;
}

.home-sub-current {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.18);
  border: 1px solid rgba(245, 185, 66, 0.45);
  color: #ffd700;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-left: 2px;
}

.home-caret-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  background: rgba(0, 0, 0, 0.22);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-caret-toggle-btn:hover {
  background: rgba(245, 185, 66, 0.22);
  color: #ffd700;
}

.home-nav-caret {
  font-size: 12px;
  margin-left: 0 !important;
  transition: transform 0.2s ease, color 0.15s ease;
  display: inline-block;
}

.home-nav-dropdown-wrap.menu-open .home-nav-caret {
  transform: rotate(180deg);
  color: #ffd700;
}

.home-sub-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  width: 390px !important;
  background: linear-gradient(165deg, rgba(24, 32, 48, 0.98) 0%, rgba(11, 15, 24, 0.99) 100%) !important;
  border: 1.5px solid rgba(245, 185, 66, 0.65) !important;
  border-radius: 12px !important;
  padding: 10px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.92), 0 0 28px rgba(0, 174, 255, 0.22) !important;
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  gap: 8px !important;
  backdrop-filter: blur(16px);
  animation: homeDropFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes homeDropFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-sub-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2px;
}

.hsm-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #94a3b8;
}

.hsm-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(46, 204, 113, 0.16);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.home-sub-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 11px 12px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: rgba(15, 20, 30, 0.75) !important;
  color: #e2e8f0 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}

.home-sub-item:hover {
  background: linear-gradient(90deg, rgba(0, 116, 224, 0.24) 0%, rgba(20, 28, 42, 0.9) 100%) !important;
  border-color: rgba(0, 174, 255, 0.6) !important;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.home-sub-item.active {
  background: linear-gradient(90deg, rgba(245, 185, 66, 0.2) 0%, rgba(0, 116, 224, 0.15) 100%) !important;
  border-color: rgba(245, 185, 66, 0.75) !important;
  box-shadow: inset 3px 0 0 #ffd700;
}

.sub-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.news-icon-box {
  background: radial-gradient(circle at 30% 30%, rgba(0, 174, 255, 0.35), rgba(10, 16, 28, 0.9));
  border-color: rgba(0, 174, 255, 0.45);
}

.talents-icon-box {
  background: radial-gradient(circle at 30% 30%, rgba(245, 185, 66, 0.35), rgba(10, 16, 28, 0.9));
  border-color: rgba(245, 185, 66, 0.5);
}

.sub-content-col {
  flex: 1;
  min-width: 0;
}

.sub-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-title {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.sub-pill-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.sub-pill-tag.live {
  background: rgba(0, 174, 255, 0.2);
  color: #00d2ff;
  border: 1px solid rgba(0, 174, 255, 0.4);
}

.sub-pill-tag.gold {
  background: rgba(245, 185, 66, 0.2);
  color: #ffd700;
  border: 1px solid rgba(245, 185, 66, 0.45);
}

.sub-desc {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  margin-top: 3px !important;
  line-height: 1.35 !important;
}

.sub-arrow {
  font-size: 15px;
  font-weight: 800;
  color: #64748b;
  transition: transform 0.16s ease, color 0.16s ease;
}

.home-sub-item:hover .sub-arrow {
  color: #ffd700;
  transform: translateX(3px);
}


/* ================= STANDALONE HOME + DEDICATED SUB-MENU BAR ================= */
.home-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: 44px;
  background: linear-gradient(90deg, rgba(13, 18, 28, 0.96) 0%, rgba(20, 27, 42, 0.94) 50%, rgba(13, 18, 28, 0.96) 100%);
  border-bottom: 1px solid rgba(245, 185, 66, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 200;
  overflow: visible !important;
  flex-shrink: 0;
}

.subnav-warcraft-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.warcraft-subnav-caret {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 2px;
  transition: transform 0.16s ease;
}

.subnav-warcraft-dropdown-wrap.menu-open .warcraft-subnav-caret {
  transform: rotate(180deg);
}

.warcraft-dropdown-menu {
  top: calc(100% + 6px);
  left: 0;
  margin-top: 0;
  min-width: 290px;
  z-index: 99999;
}

.home-subnav-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.home-subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.16s ease;
  position: relative;
}

.home-subnav-tab:hover {
  background: rgba(0, 174, 255, 0.14);
  border-color: rgba(0, 174, 255, 0.45);
  color: #ffffff;
}

.home-subnav-tab.active {
  background: linear-gradient(90deg, rgba(245, 185, 66, 0.22) 0%, rgba(0, 116, 224, 0.22) 100%);
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(245, 185, 66, 0.28);
}

.hsn-icon {
  font-size: 14px;
}

.hsn-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.hsn-pill.live {
  background: rgba(0, 174, 255, 0.2);
  color: #00d2ff;
  border: 1px solid rgba(0, 174, 255, 0.4);
}

.hsn-pill.gold {
  background: rgba(245, 185, 66, 0.2);
  color: #ffd700;
  border: 1px solid rgba(245, 185, 66, 0.45);
}

.wowhead-home-stage {
  height: calc(100vh - 112px) !important;
}


/* ================= DIABLO IV OFFICIAL SANCTUARY TEMPLATE ================= */
.diablo-nav-tab {
  color: #ff6b6b !important;
  text-shadow: 0 0 12px rgba(231, 76, 60, 0.35);
}

.diablo-nav-tab.active {
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(255, 46, 46, 0.8);
}

.diablo-nav-tab.active::after {
  background: linear-gradient(90deg, #ff2e2e, #f39c12) !important;
  box-shadow: 0 0 12px rgba(255, 46, 46, 0.85) !important;
}

.diablo-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: 46px;
  background: linear-gradient(90deg, #160709 0%, #240a0e 50%, #140608 100%);
  border-bottom: 1px solid rgba(231, 76, 60, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

.diablo-subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(231, 76, 60, 0.22);
  background: rgba(255, 46, 46, 0.06);
  color: #e2c7c7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.16s ease;
}

.diablo-subnav-tab:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: rgba(231, 76, 60, 0.65);
  color: #ffffff;
}

.diablo-subnav-tab.active {
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.55) 0%, rgba(120, 18, 18, 0.4) 100%);
  border-color: #ff4757;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(231, 76, 60, 0.4);
}

.d4-sub-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.d4-sub-pill.crimson {
  background: rgba(255, 46, 46, 0.25);
  color: #ff8787;
  border: 1px solid rgba(255, 71, 87, 0.5);
}

.d4-sub-pill.gold {
  background: rgba(245, 185, 66, 0.2);
  color: #ffd700;
  border: 1px solid rgba(245, 185, 66, 0.45);
}

.d4-subnav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.d4-sync-badge {
  font-size: 11px;
  color: #d1a3a4;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(231, 76, 60, 0.28);
}

.d4-refresh-btn, .d4-official-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.d4-refresh-btn {
  background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
  border: 1px solid #f87171;
  color: #ffffff;
}

.d4-refresh-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

.d4-official-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
}

.d4-official-link:hover {
  background: rgba(255, 215, 0, 0.14);
}

.diablo-stage-view {
  position: relative;
  z-index: 5;
  height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, rgba(120, 12, 18, 0.35) 0%, rgba(9, 8, 12, 0.96) 70%);
}

.diablo-scroll-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 26px 40px 26px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.d4-hero-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 330px;
  border: 1.5px solid rgba(231, 76, 60, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 32px rgba(185, 28, 28, 0.28);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.d4-hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt6f534533dea05f2e/693734d62575e191eb416271/DIA_DIV_X2_cinematic_trailer_thumbnail_1920x1080_LL01.png?format=webp');
  background-size: cover;
  background-position: center 20%;
  filter: saturate(1.15);
}

.d4-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 6, 8, 0.95) 0%, rgba(16, 8, 10, 0.82) 52%, rgba(10, 6, 8, 0.35) 100%);
}

.d4-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d4-hero-logo {
  width: 230px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.9));
}

.d4-hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #ff6b6b;
  text-transform: uppercase;
}

.d4-hero-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
  margin: 0;
}

.d4-hero-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #e2d9d9;
  margin: 0;
}

.d4-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.d4-crimson-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 7px;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border: 1px solid #f87171;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
  transition: all 0.16s ease;
}

.d4-crimson-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.d4-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 7px;
  background: rgba(20, 12, 14, 0.78);
  border: 1px solid rgba(245, 185, 66, 0.5);
  color: #ffd700;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
}

.d4-ghost-btn:hover {
  background: rgba(245, 185, 66, 0.18);
  color: #ffffff;
}

.d4-section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.d4-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(231, 76, 60, 0.3);
  padding-bottom: 8px;
}

.d4-sec-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: #ff6b6b;
}

.d4-sec-title {
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.6px;
  margin: 2px 0 0 0;
}

.d4-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.d4-highlight-card {
  background: linear-gradient(180deg, rgba(28, 12, 16, 0.95) 0%, rgba(14, 8, 11, 0.98) 100%);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.d4-hl-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid rgba(231, 76, 60, 0.35);
}

.d4-hl-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.d4-hl-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 1px;
}

.d4-hl-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.d4-hl-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
  flex: 1;
}

.d4-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.d4-news-card {
  background: rgba(20, 10, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.18s ease;
}

.d4-news-card:hover {
  border-color: #ff4757;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(231, 76, 60, 0.28);
}

.d4-news-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.d4-news-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.d4-news-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #ff6b6b;
  letter-spacing: 0.8px;
}

.d4-news-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

/* 8 Classes Interactive Selector */
.d4-class-tabs-bar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.d4-class-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(20, 11, 14, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.16s ease;
}

.d4-class-tab-btn:hover {
  border-color: rgba(245, 185, 66, 0.6);
  background: rgba(40, 16, 20, 0.92);
  color: #ffffff;
}

.d4-class-tab-btn.active {
  background: linear-gradient(180deg, rgba(185, 28, 28, 0.45) 0%, rgba(30, 12, 16, 0.95) 100%);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 18px rgba(245, 185, 66, 0.35);
}

.d4-class-tab-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
}

.d4-class-tab-name {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.d4-class-showcase {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 360px;
  border: 1.5px solid rgba(245, 185, 66, 0.45);
  background: #0d080a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.d4-showcase-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding: 28px 32px;
  align-items: center;
  min-height: 360px;
}

.d4-showcase-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  opacity: 0.42;
}

.d4-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 6, 8, 0.96) 0%, rgba(12, 7, 9, 0.82) 58%, rgba(10, 6, 8, 0.35) 100%);
}

.d4-sc-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.d4-sc-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.d4-sc-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.d4-sc-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

.d4-sc-role {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffd700;
  margin-top: 2px;
}

.d4-sc-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

.d4-sc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.d4-skill-pill {
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255, 46, 46, 0.16);
  border: 1px solid rgba(255, 71, 87, 0.45);
  color: #ffd700;
  font-size: 11.5px;
  font-weight: 800;
}

.d4-sc-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.d4-sc-poster-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.d4-sc-poster {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.d4-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.d4-realms-grid, .d4-editions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 6px;
}

.d4-realm-card {
  background: linear-gradient(180deg, rgba(26, 12, 16, 0.94) 0%, rgba(12, 8, 10, 0.98) 100%);
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d4-realm-bullets {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.55;
}

/* ================= OFFICIAL DIABLO IV FONTS FROM DIABLO4.BLIZZARD.COM ================= */
@font-face {
  font-family: 'Exocet Blizzard OT';
  src: url('https://blz-contentstack-assets.akamaized.net/v3/assets/blt9c12f249ac15c7ec/bltc480ac92a523b007/627b28039c0ad045adc48481/ExocetBlizzardOT-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Old Fenris';
  src: url('https://blz-contentstack-assets.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt87dbca38eae7d12d/625007b988b34525a18e6563/OldFenris-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alegreya Sans D4';
  src: url('https://blz-contentstack-assets.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt095210837aa1e0f0/625005917f50a04889644422/AlegreyaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alegreya Sans D4';
  src: url('https://blz-contentstack-assets.akamaized.net/v3/assets/blt9c12f249ac15c7ec/bltcb28d02e46f1735f/6250059188b34525a18e655f/AlegreyaSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ================= UI TEMPLATE SWITCHER IN TOPBAR ================= */
.ui-theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  padding: 4px 6px 4px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.uts-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: #94a3b8;
  margin-right: 2px;
}

.uts-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.uts-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.uts-btn[data-ui-theme="bnet"].active {
  background: linear-gradient(180deg, #0074e0 0%, #00529e 100%);
  border-color: #38a8ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 174, 255, 0.45);
}

.uts-btn[data-ui-theme="diablo"].active {
  background: url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt3fc514970a2e1182/628853a9916fe131b16a8a1a/d4-button-primary-tile-base.jpg?auto=webp') center/cover, linear-gradient(180deg, #991b1b 0%, #450a0a 100%);
  border-color: #d4af37;
  color: #f5e6c8;
  font-family: 'Exocet Blizzard OT', 'Old Fenris', serif;
  letter-spacing: 0.6px;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.65);
}

/* ============================================================================
   GLOBAL DIABLO IV UI TEMPLATE (body[data-ui-theme="diablo"])
   Transforms the entire Bobby app into the official diablo4.blizzard.com look!
   ============================================================================ */
body[data-ui-theme="diablo"] {
  --bg-deep: #090607;
  --bg-topbar: #0e0809;
  --bg-sidebar: #0d0708;
  --bg-card: rgba(20, 11, 13, 0.92);
  --bg-card-solid: #140b0d;
  --bg-input: #0a0506;
  --bnet-blue: #991b1b;
  --bnet-blue-hover: #dc2626;
  --bnet-cyan: #ff4d4d;
  --bnet-gold: #c8a86b;
  --text-main: #ede3d2;
  --text-muted: #a89882;
  --border-subtle: rgba(200, 168, 107, 0.22);
  font-family: 'Alegreya Sans D4', 'Segoe UI', sans-serif !important;
  color: #ede3d2 !important;
  background-color: #090607 !important;
}

/* Gothic Headings in Exocet Blizzard OT & Old Fenris across the entire app */
body[data-ui-theme="diablo"] h1,
body[data-ui-theme="diablo"] h2,
body[data-ui-theme="diablo"] h3,
body[data-ui-theme="diablo"] .brand-text,
body[data-ui-theme="diablo"] .nav-tab,
body[data-ui-theme="diablo"] .home-subnav-tab,
body[data-ui-theme="diablo"] .wh-header-title,
body[data-ui-theme="diablo"] .wh-hero-title,
body[data-ui-theme="diablo"] .wh-post-title,
body[data-ui-theme="diablo"] .wh-side-panel-header,
body[data-ui-theme="diablo"] .emblem-title,
body[data-ui-theme="diablo"] .hero-banner-heading,
body[data-ui-theme="diablo"] .featured-title,
body[data-ui-theme="diablo"] .cb-class-title,
body[data-ui-theme="diablo"] .bnet-play-btn {
  font-family: 'Exocet Blizzard OT', 'Old Fenris', Georgia, serif !important;
  letter-spacing: 0.8px !important;
}

/* Leather texture & Sanctuary Hellfire background across the whole workspace */
body[data-ui-theme="diablo"] .bnet-shell {
  background:
    radial-gradient(circle at 50% 0%, rgba(155, 17, 30, 0.25) 0%, rgba(9, 6, 7, 0.94) 68%),
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt77f4425de611b362/blta0ca93364e48293c/646440a2e9738c4b9d747a04/leather-texture_800.webp?auto=webp') repeat center/420px !important;
}

/* replaced by newDiabloArtCss below */

/* Topbar styled like Diablo IV Sanctuary Header */
body[data-ui-theme="diablo"] .bnet-topbar {
  background:
    linear-gradient(180deg, rgba(22, 10, 12, 0.98) 0%, rgba(10, 5, 6, 0.99) 100%),
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt77f4425de611b362/blta0ca93364e48293c/646440a2e9738c4b9d747a04/leather-texture_800.webp?auto=webp') !important;
  border-bottom: 1.5px solid rgba(200, 168, 107, 0.45) !important;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.92), 0 1px 0 rgba(185, 28, 28, 0.45) !important;
}

body[data-ui-theme="diablo"] .brand-text {
  color: #f5e6c8 !important;
  text-shadow: 0 0 12px rgba(220, 38, 38, 0.65);
}

body[data-ui-theme="diablo"] .bobby-logo-btn {
  border: 1px solid rgba(200, 168, 107, 0.35) !important;
  background: rgba(28, 10, 12, 0.75) !important;
}

body[data-ui-theme="diablo"] .nav-tab {
  color: #bfa98e !important;
}

body[data-ui-theme="diablo"] .nav-tab:hover {
  color: #fff3db !important;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.65);
}

body[data-ui-theme="diablo"] .nav-tab.active {
  color: #f5e6c8 !important;
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.85);
}

body[data-ui-theme="diablo"] .nav-tab.active::after {
  background: linear-gradient(90deg, #b91c1c, #d4af37, #b91c1c) !important;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.9) !important;
  height: 3px !important;
}

/* Home Sub-Navigation Bar in Diablo IV Style */
body[data-ui-theme="diablo"] .home-subnav-bar {
  background: linear-gradient(90deg, #120608 0%, #240a0e 50%, #120608 100%) !important;
  border-bottom: 1px solid rgba(200, 168, 107, 0.38) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;
}

body[data-ui-theme="diablo"] .home-subnav-tab {
  background: rgba(24, 10, 12, 0.75) !important;
  border: 1px solid rgba(200, 168, 107, 0.25) !important;
  color: #d6c3a5 !important;
}

body[data-ui-theme="diablo"] .home-subnav-tab:hover {
  background: rgba(153, 27, 27, 0.35) !important;
  border-color: #d4af37 !important;
  color: #ffffff !important;
}

body[data-ui-theme="diablo"] .home-subnav-tab.active {
  background:
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt3fc514970a2e1182/628853a9916fe131b16a8a1a/d4-button-primary-tile-base.jpg?auto=webp') center/cover,
    linear-gradient(90deg, rgba(153, 27, 27, 0.75) 0%, rgba(90, 14, 18, 0.85) 100%) !important;
  border-color: #d4af37 !important;
  color: #fff6e0 !important;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.55) !important;
}

body[data-ui-theme="diablo"] .hsn-pill.live {
  background: rgba(185, 28, 28, 0.35) !important;
  border-color: rgba(248, 113, 113, 0.6) !important;
  color: #fca5a5 !important;
}

/* Primary Buttons styled with official Diablo IV Crimson Tile & Filigree Gold Border */
body[data-ui-theme="diablo"] .bnet-play-btn {
  background:
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt3fc514970a2e1182/628853a9916fe131b16a8a1a/d4-button-primary-tile-base.jpg?auto=webp') center/cover,
    linear-gradient(180deg, #991b1b 0%, #5c0f0f 100%) !important;
  border: 1.5px solid #c8a86b !important;
  color: #f5e6c8 !important;
  text-transform: uppercase !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85), 0 0 16px rgba(185, 28, 28, 0.5) !important;
}

body[data-ui-theme="diablo"] .bnet-play-btn:hover {
  background:
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt2f472a0c13559067/628853a9d1dfb243261ca973/d4-button-primary-tile-hover.jpg?auto=webp') center/cover,
    linear-gradient(180deg, #dc2626 0%, #7f1d1d 100%) !important;
  border-color: #ffd700 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 26px rgba(220, 38, 38, 0.75) !important;
}

/* Secondary / Pill Buttons styled with official Diablo IV Secondary Dark Stone Tile */
body[data-ui-theme="diablo"] .pill-btn,
body[data-ui-theme="diablo"] .bnet-gear-btn,
body[data-ui-theme="diablo"] .sb-icon-btn,
body[data-ui-theme="diablo"] .arrow-btn {
  background:
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt9771439ea9bff1d7/628843063e3d224456bf08ef/d4-button-secondary-tile-base.jpg?auto=webp') center/cover,
    rgba(24, 12, 14, 0.9) !important;
  border: 1px solid rgba(200, 168, 107, 0.42) !important;
  color: #e6d5b8 !important;
}

body[data-ui-theme="diablo"] .pill-btn:hover,
body[data-ui-theme="diablo"] .bnet-gear-btn:hover,
body[data-ui-theme="diablo"] .sb-icon-btn:hover,
body[data-ui-theme="diablo"] .arrow-btn:hover {
  background:
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt860e283a77cd17b0/6288430667a4990cd6806291/d4-button-secondary-tile-hover.jpg?auto=webp') center/cover,
    rgba(120, 20, 24, 0.65) !important;
  border-color: #ffd700 !important;
  color: #ffffff !important;
}

/* All Cards, Topbars, Panels, News Post Cards, Talent Cards, and Bot Cards in Diablo IV Obsidian & Blood-Gold */
body[data-ui-theme="diablo"] .wh-news-topbar,
body[data-ui-theme="diablo"] .wh-hero-news-card,
body[data-ui-theme="diablo"] .wh-news-post-card,
body[data-ui-theme="diablo"] .wh-side-panel,
body[data-ui-theme="diablo"] .class-build-card,
body[data-ui-theme="diablo"] .hero-card,
body[data-ui-theme="diablo"] .featured-card,
body[data-ui-theme="diablo"] .left-bot-artwork-card,
body[data-ui-theme="diablo"] .launch-controls-box,
body[data-ui-theme="diablo"] .bnet-modal {
  background:
    linear-gradient(165deg, rgba(24, 11, 14, 0.95) 0%, rgba(11, 6, 8, 0.98) 100%),
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt77f4425de611b362/blta0ca93364e48293c/646440a2e9738c4b9d747a04/leather-texture_800.webp?auto=webp') center/380px !important;
  border: 1px solid rgba(200, 168, 107, 0.35) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 215, 130, 0.1) !important;
}

body[data-ui-theme="diablo"] .wh-news-topbar {
  border-left: 4px solid #b91c1c !important;
}

body[data-ui-theme="diablo"] .wh-header-eyebrow {
  color: #f87171 !important;
}

body[data-ui-theme="diablo"] .wh-header-title {
  color: #f5e6c8 !important;
  text-shadow: 0 2px 12px rgba(185, 28, 28, 0.65);
}

body[data-ui-theme="diablo"] .wh-last-sync {
  background: rgba(24, 8, 10, 0.9) !important;
  border: 1px solid rgba(200, 168, 107, 0.4) !important;
  color: #f5e6c8 !important;
}

body[data-ui-theme="diablo"] .wh-news-post-card:hover,
body[data-ui-theme="diablo"] .wh-hero-news-card:hover,
body[data-ui-theme="diablo"] .class-build-card:hover {
  border-color: #d4af37 !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.92), 0 0 20px rgba(185, 28, 28, 0.38) !important;
}

body[data-ui-theme="diablo"] .wh-post-title,
body[data-ui-theme="diablo"] .wh-hero-title {
  color: #f5e6c8 !important;
}

body[data-ui-theme="diablo"] .wh-post-title:hover,
body[data-ui-theme="diablo"] .wh-hero-title:hover {
  color: #ff6b6b !important;
}

body[data-ui-theme="diablo"] .wh-post-preview,
body[data-ui-theme="diablo"] .wh-hero-preview {
  color: #c7b69e !important;
}

body[data-ui-theme="diablo"] .wh-side-panel-header.blue-header,
body[data-ui-theme="diablo"] .wh-side-panel-header.gold-header {
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.55) 0%, rgba(24, 10, 12, 0.92) 100%) !important;
  border-bottom: 1px solid rgba(200, 168, 107, 0.38) !important;
  color: #f5e6c8 !important;
}

body[data-ui-theme="diablo"] .wh-blue-item {
  background: rgba(16, 8, 10, 0.82) !important;
  border-left: 3px solid #dc2626 !important;
  border-color: rgba(200, 168, 107, 0.18) !important;
}

body[data-ui-theme="diablo"] .wh-blue-item:hover {
  background: rgba(127, 29, 29, 0.28) !important;
  border-color: #d4af37 !important;
}

body[data-ui-theme="diablo"] .wh-blue-title {
  color: #f5e6c8 !important;
}

/* Inputs, Selects & Checkboxes in Diablo IV Sanctuary Style */
body[data-ui-theme="diablo"] .bnet-input,
body[data-ui-theme="diablo"] .bnet-select,
body[data-ui-theme="diablo"] .sb-search-input {
  background: #090405 !important;
  border: 1px solid rgba(200, 168, 107, 0.35) !important;
  color: #f5e6c8 !important;
}

body[data-ui-theme="diablo"] .bnet-input:focus,
body[data-ui-theme="diablo"] .bnet-select:focus,
body[data-ui-theme="diablo"] .sb-search-input:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.45) !important;
}

/* Right Bots Sidebar & Results Tabs in Diablo IV Style */
body[data-ui-theme="diablo"] .bnet-right-sidebar {
  background:
    linear-gradient(180deg, rgba(16, 8, 10, 0.98) 0%, rgba(9, 5, 6, 0.99) 100%),
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt77f4425de611b362/blta0ca93364e48293c/646440a2e9738c4b9d747a04/leather-texture_800.webp?auto=webp') !important;
  border-left: 1px solid rgba(200, 168, 107, 0.32) !important;
}

body[data-ui-theme="diablo"] .sb-bot-item.active {
  background: linear-gradient(90deg, rgba(153, 27, 27, 0.42), rgba(200, 168, 107, 0.08)) !important;
  border-left: 3px solid #d4af37 !important;
}

body[data-ui-theme="diablo"] .res-tab.active {
  background: rgba(153, 27, 27, 0.45) !important;
  border-color: #d4af37 !important;
  color: #f5e6c8 !important;
}

/* Scrollbars in Diablo IV Crimson & Gold */
body[data-ui-theme="diablo"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #991b1b, #6b1111) !important;
  border: 1px solid rgba(200, 168, 107, 0.45) !important;
  border-radius: 4px !important;
}

/* ============================================================================
   OFFICIAL EU.SHOP.BATTLE.NET FONTS ("Object Sans" & "BN Noto Sans")
   Extracted directly from https://eu.shop.battle.net/en-us?from=root
   ============================================================================ */
@font-face {
  font-family: 'BN Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://forge.akamaized.net/fonts/bn-noto-sans/font-01.woff2') format('woff2');
  unicode-range: U+0000-0197;
}
@font-face {
  font-family: 'BN Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://forge.akamaized.net/fonts/bn-noto-sans/font-02.woff2') format('woff2');
  unicode-range: U+0198-02E3;
}
@font-face {
  font-family: 'BN Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://forge.akamaized.net/fonts/bn-noto-sans/font-07.woff2') format('woff2');
  unicode-range: U+1DB8-2024;
}

@font-face {
  font-family: 'Object Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://forge.akamaized.net/fonts/object-sans/400-normal/font-01.woff2') format('woff2');
  unicode-range: U+0000-FB00;
}
@font-face {
  font-family: 'Object Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://forge.akamaized.net/fonts/object-sans/500-normal/font-01.woff2') format('woff2');
  unicode-range: U+0000-FB00;
}
@font-face {
  font-family: 'Object Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://forge.akamaized.net/fonts/object-sans/700-normal/font-01.woff2') format('woff2');
  unicode-range: U+0000-FB00;
}

/* ============================================================================
   GLOBAL BATTLE.NET SHOP UI TEMPLATE (body[data-ui-theme="bnet"])
   Uses the exact tokens, fonts, surfaces, buttons & cards from eu.shop.battle.net
   ============================================================================ */
body[data-ui-theme="bnet"] {
  /* Official Battle.net Design Tokens from eu.shop.battle.net */
  --battle-net-color-physical-gray-700: #111218;
  --battle-net-color-physical-gray-600: #15171e;
  --battle-net-color-physical-gray-500: #1a1c23;
  --battle-net-color-physical-gray-400: #22242c;
  --battle-net-color-physical-gray-300: #292b33;
  --battle-net-color-physical-gray-200: #5a5d70;
  --battle-net-color-physical-gray-100: #d5d7dd;
  --battle-net-color-physical-gray-50: #ebecef;
  --battle-net-color-physical-blue-300: #7abfff;
  --battle-net-color-physical-blue-400: #47a6ff;
  --battle-net-color-physical-blue-500: #148eff;
  --battle-net-color-physical-blue-600: #0074e0;
  --battle-net-color-physical-blue-700: #005aad;
  --battle-net-color-physical-blue-800: #003f7a;
  --battle-net-color-elemental-electro-300: #00e6f2;
  --battle-net-color-alert-green-500: #6cdb00;
  --battle-net-color-alert-yellow-500: #ffb400;

  --bg-deep: #15171e;
  --bg-topbar: #111218;
  --bg-sidebar: #111218;
  --bg-card: #1a1c23;
  --bg-card-solid: #1a1c23;
  --bg-input: #111218;
  --bnet-blue: #0074e0;
  --bnet-blue-hover: #148eff;
  --bnet-cyan: #47a6ff;
  --bnet-gold: #ffb400;
  --text-main: #ffffff;
  --text-muted: #a1a2a5;
  --border-subtle: rgba(255, 255, 255, 0.12);

  font-family: 'BN Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  color: #ffffff !important;
  background-color: #15171e !important;
  letter-spacing: 0px;
}

/* Official Battle.net Heading Typography ("Object Sans", weight 700) */
body[data-ui-theme="bnet"] h1,
body[data-ui-theme="bnet"] h2,
body[data-ui-theme="bnet"] h3,
body[data-ui-theme="bnet"] .brand-text,
body[data-ui-theme="bnet"] .nav-tab,
body[data-ui-theme="bnet"] .home-subnav-tab,
body[data-ui-theme="bnet"] .wh-header-title,
body[data-ui-theme="bnet"] .wh-hero-title,
body[data-ui-theme="bnet"] .wh-post-title,
body[data-ui-theme="bnet"] .wh-side-panel-header,
body[data-ui-theme="bnet"] .emblem-title,
body[data-ui-theme="bnet"] .hero-banner-heading,
body[data-ui-theme="bnet"] .featured-title,
body[data-ui-theme="bnet"] .cb-class-title,
body[data-ui-theme="bnet"] .bnet-play-btn,
body[data-ui-theme="bnet"] .uts-btn[data-ui-theme="bnet"] {
  font-family: 'Object Sans', 'BN Noto Sans', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0px !important;
}

/* Battle.net Storefront Page Primary Background (#15171e) + Official Storefront Keyart Backdrop */
body[data-ui-theme="bnet"] .bnet-shell {
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 142, 255, 0.14) 0%, rgba(21, 23, 30, 0.98) 62%),
    #15171e !important;
}

body[data-ui-theme="bnet"] .workspace-bg-art {
  background:
    radial-gradient(ellipse 78% 84% at 50% 26%, rgba(41, 151, 255, 0.12) 0%, rgba(15, 20, 32, 0.28) 56%, rgba(13, 16, 24, 0.92) 92%),
    url('/assets/bnet/bnet-bg-custom.webp') center 6% / cover no-repeat !important;
  opacity: 0.92 !important;
}

/* Official Battle.net Top Navigation Bar (--battle-net-color-physical-gray-700: #111218) */
body[data-ui-theme="bnet"] .bnet-topbar {
  background: rgba(17, 18, 24, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

body[data-ui-theme="bnet"] .bobby-logo-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
}

body[data-ui-theme="bnet"] .bobby-logo-btn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: #47a6ff !important;
}

body[data-ui-theme="bnet"] .brand-text {
  color: #ffffff !important;
  text-shadow: none !important;
}

body[data-ui-theme="bnet"] .nav-tab {
  color: #a1a2a5 !important;
  font-size: 14px !important;
}

body[data-ui-theme="bnet"] .nav-tab:hover {
  color: #ffffff !important;
}

body[data-ui-theme="bnet"] .nav-tab.active {
  color: #ffffff !important;
}

body[data-ui-theme="bnet"] .nav-tab.active::after {
  background: #148eff !important;
  box-shadow: 0 0 12px rgba(20, 142, 255, 0.85) !important;
  height: 3px !important;
  border-radius: 3px 3px 0 0 !important;
}

/* Battle.net Sub-Navigation Bar (--battle-net-color-physical-gray-600 / #1a1c23 pills) */
body[data-ui-theme="bnet"] .home-subnav-bar {
  background: #111218 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}

body[data-ui-theme="bnet"] .home-subnav-tab {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  color: #d5d7dd !important;
}

body[data-ui-theme="bnet"] .home-subnav-tab:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
}

body[data-ui-theme="bnet"] .home-subnav-tab.active {
  background: #0074e0 !important;
  border-color: #47a6ff !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(0, 116, 224, 0.45) !important;
}

body[data-ui-theme="bnet"] .hsn-pill {
  background: rgba(0, 0, 0, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ebecef !important;
}

body[data-ui-theme="bnet"] .hsn-pill.live {
  background: rgba(108, 219, 0, 0.16) !important;
  border-color: rgba(108, 219, 0, 0.45) !important;
  color: #6cdb00 !important;
}

/* Official Battle.net Storefront Primary Buttons (--battle-net-color-physical-blue-600: #0074e0 -> hover #148eff) */
body[data-ui-theme="bnet"] .bnet-play-btn {
  background: #0074e0 !important;
  border: 1px solid #47a6ff !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5) !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease !important;
}

body[data-ui-theme="bnet"] .bnet-play-btn:hover {
  background: #148eff !important;
  border-color: #7abfff !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(20, 142, 255, 0.45) !important;
}

/* Official Battle.net Storefront Secondary Action Buttons (rgba(255,255,255,0.09) -> hover rgba(255,255,255,0.16)) */
body[data-ui-theme="bnet"] .pill-btn,
body[data-ui-theme="bnet"] .bnet-gear-btn,
body[data-ui-theme="bnet"] .sb-icon-btn,
body[data-ui-theme="bnet"] .arrow-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 6px !important;
  color: #ebecef !important;
}

body[data-ui-theme="bnet"] .pill-btn:hover,
body[data-ui-theme="bnet"] .bnet-gear-btn:hover,
body[data-ui-theme="bnet"] .sb-icon-btn:hover,
body[data-ui-theme="bnet"] .arrow-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
  color: #ffffff !important;
}

/* Official Battle.net Storefront Cards & Surfaces (--battle-net-color-physical-gray-500: #1a1c23 & gray-400: #22242c) */
body[data-ui-theme="bnet"] .wh-news-topbar,
body[data-ui-theme="bnet"] .wh-hero-news-card,
body[data-ui-theme="bnet"] .wh-news-post-card,
body[data-ui-theme="bnet"] .wh-side-panel,
body[data-ui-theme="bnet"] .class-build-card,
body[data-ui-theme="bnet"] .hero-card,
body[data-ui-theme="bnet"] .featured-card,
body[data-ui-theme="bnet"] .left-bot-artwork-card,
body[data-ui-theme="bnet"] .launch-controls-box,
body[data-ui-theme="bnet"] .bnet-modal {
  background: #1a1c23 !important;
  border: 1px solid #292b33 !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5) !important;
}

body[data-ui-theme="bnet"] .wh-news-topbar {
  background: linear-gradient(90deg, #1a1c23 0%, #22242c 100%) !important;
  border-left: 4px solid #148eff !important;
}

body[data-ui-theme="bnet"] .wh-header-eyebrow {
  font-family: 'Object Sans', sans-serif !important;
  color: #47a6ff !important;
  letter-spacing: 0.6px !important;
}

body[data-ui-theme="bnet"] .wh-header-title {
  color: #ffffff !important;
}

body[data-ui-theme="bnet"] .wh-last-sync {
  background: rgba(20, 142, 255, 0.12) !important;
  border: 1px solid rgba(20, 142, 255, 0.24) !important;
  color: #7abfff !important;
  font-family: 'BN Noto Sans', sans-serif !important;
}

body[data-ui-theme="bnet"] .wh-news-post-card:hover,
body[data-ui-theme="bnet"] .wh-hero-news-card:hover,
body[data-ui-theme="bnet"] .class-build-card:hover {
  background: #22242c !important;
  border-color: #47a6ff !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(71, 166, 255, 0.35) !important;
}

body[data-ui-theme="bnet"] .wh-post-title,
body[data-ui-theme="bnet"] .wh-hero-title {
  color: #ffffff !important;
}

body[data-ui-theme="bnet"] .wh-post-title:hover,
body[data-ui-theme="bnet"] .wh-hero-title:hover {
  color: #47a6ff !important;
}

body[data-ui-theme="bnet"] .wh-post-preview,
body[data-ui-theme="bnet"] .wh-hero-preview {
  color: #bebec0 !important;
  font-family: 'BN Noto Sans', sans-serif !important;
}

body[data-ui-theme="bnet"] .wh-side-panel-header.blue-header {
  background: #22242c !important;
  border-bottom: 1px solid #292b33 !important;
  color: #7abfff !important;
}

body[data-ui-theme="bnet"] .wh-side-panel-header.gold-header {
  background: #22242c !important;
  border-bottom: 1px solid #292b33 !important;
  color: #ffb400 !important;
}

body[data-ui-theme="bnet"] .wh-blue-item {
  background: #15171e !important;
  border: 1px solid #292b33 !important;
  border-left: 3px solid #148eff !important;
  border-radius: 6px !important;
}

body[data-ui-theme="bnet"] .wh-blue-item:hover {
  background: #22242c !important;
  border-color: #47a6ff !important;
}

body[data-ui-theme="bnet"] .wh-blue-title {
  color: #ebecef !important;
  font-family: 'BN Noto Sans', sans-serif !important;
  font-weight: 600 !important;
}

/* Official Battle.net Inputs & Dropdowns */
body[data-ui-theme="bnet"] .bnet-input,
body[data-ui-theme="bnet"] .bnet-select,
body[data-ui-theme="bnet"] .sb-search-input {
  background: #111218 !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-family: 'BN Noto Sans', sans-serif !important;
}

body[data-ui-theme="bnet"] .bnet-input:focus,
body[data-ui-theme="bnet"] .bnet-select:focus,
body[data-ui-theme="bnet"] .sb-search-input:focus {
  border-color: #148eff !important;
  box-shadow: 0 0 0 2px rgba(20, 142, 255, 0.25) !important;
}

/* Right Bots Sidebar in Battle.net Storefront Theme */
body[data-ui-theme="bnet"] .bnet-right-sidebar {
  background: #111218 !important;
  border-left: 1px solid #292b33 !important;
}

body[data-ui-theme="bnet"] .sb-bot-item.active {
  background: rgba(20, 142, 255, 0.16) !important;
  border-left: 3px solid #148eff !important;
}

/* Scrollbars in Battle.net Storefront Gray/Blue */
body[data-ui-theme="bnet"] ::-webkit-scrollbar-thumb {
  background: #292b33 !important;
  border-radius: 4px !important;
}
body[data-ui-theme="bnet"] ::-webkit-scrollbar-thumb:hover {
  background: #5a5d70 !important;
}

/* ================= FULL WOWHEAD ARTICLE CONTENT ON HOMEPAGE CARDS ================= */
.wh-news-post-card {
  align-items: flex-start !important;
}

.wh-post-full-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-main);
  opacity: 0.94;
  word-break: break-word;
}

.wh-post-full-body a {
  color: #47a6ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body[data-ui-theme="diablo"] .wh-post-full-body a {
  color: #f59e0b;
}

.wh-post-full-body ul,
.wh-post-full-body ol {
  margin: 10px 0 10px 20px;
  padding-left: 8px;
}

.wh-post-full-body li {
  margin-bottom: 6px;
}

.wh-post-full-body h2,
.wh-post-full-body h3,
.wh-post-full-body h4 {
  margin: 12px 0 6px;
  font-size: 15px;
  color: #ffffff;
}

.wh-full-inline-img-wrap {
  margin: 12px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 680px;
}

.wh-full-inline-img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* ============================================================================
   WOWHEAD NEWS CARDS: COMPACT DEFAULT + SHOW MORE EXPAND & 3 IMAGE MODES
   ============================================================================ */

/* Layout Expand Mode Switcher in News Topbar */
.wh-expand-mode-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.wems-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-right: 3px;
  white-space: nowrap;
}

.wems-btn {
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.wems-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.wems-btn.active {
  background: rgba(20, 142, 255, 0.25);
  border-color: #47a6ff;
  color: #ffffff;
}

body[data-ui-theme="diablo"] .wems-btn.active {
  background: rgba(153, 27, 27, 0.55);
  border-color: #d4af37;
  color: #f5e6c8;
}

/* Normal (Collapsed) Card State — Clean & Compact like Wowhead */
.wh-news-post-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: stretch !important;
}

.wh-hero-news-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: stretch !important;
}

.wh-post-thumb-wrap {
  height: 142px;
  min-height: 142px;
  max-height: 142px;
}

.wh-hero-thumb-link {
  height: 196px;
  min-height: 196px;
  max-height: 196px;
}

.wh-post-preview {
  font-size: 13px;
  line-height: 1.48;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wh-hero-news-card .wh-post-preview {
  -webkit-line-clamp: 3;
  font-size: 13.5px;
}

.wh-post-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wh-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(71, 166, 255, 0.45);
  background: rgba(0, 116, 224, 0.28);
  color: #ffffff;
  transition: all 0.16s ease;
}

.wh-show-more-btn:hover {
  background: #0074e0;
  border-color: #7abfff;
  transform: translateY(-1px);
}

.wh-show-more-btn.expanded {
  background: rgba(245, 185, 66, 0.22);
  border-color: #ffd700;
  color: #ffd700;
}

body[data-ui-theme="diablo"] .wh-show-more-btn {
  background: url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt3fc514970a2e1182/628853a9916fe131b16a8a1a/d4-button-primary-tile-base.jpg?auto=webp') center/cover, linear-gradient(180deg, #991b1b 0%, #450a0a 100%);
  border: 1px solid #c8a86b;
  color: #f5e6c8;
}

body[data-ui-theme="diablo"] .wh-show-more-btn:hover {
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.55);
}

/* Hide expanded drawers when card is collapsed */
.wh-ambient-backdrop,
.wh-ambient-caption,
.wh-inline-expanded-body,
.wh-split-expanded-drawer {
  display: none;
}

.wh-expanded-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #f5b942;
}

.wh-collapse-mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.wh-collapse-mini-btn:hover {
  background: rgba(220, 38, 38, 0.45);
  border-color: #f87171;
  color: #ffffff;
}

/* ============================================================================
   OPTION 1 (DEFAULT): "split" — SUB-CARD FULL-WIDTH DRAWER
   Top row (Thumbnail + Title + Preview) stays 100% normal like Wowhead,
   and the Full Article opens underneath across the full width of the card!
   ============================================================================ */
.wh-news-main-col[data-expand-mode="split"] .wh-news-post-card.is-expanded,
.wh-news-main-col[data-expand-mode="split"] .wh-hero-news-card.is-expanded {
  border-color: #f5b942 !important;
}

.wh-news-main-col[data-expand-mode="split"] .is-expanded .wh-split-expanded-drawer {
  display: block;
  grid-column: 1 / -1;
  padding: 16px 20px 18px;
  background: rgba(8, 10, 15, 0.58);
  border-top: 1px solid rgba(245, 185, 66, 0.32);
}

/* ============================================================================
   OPTION 2: "banner" — CINEMATIC WIDESCREEN BANNER ON TOP WHEN EXPANDED
   When expanded, the card switches to 1 column and the thumbnail becomes a
   full-width widescreen hero banner on top of the article!
   ============================================================================ */
.wh-news-main-col[data-expand-mode="banner"] .wh-news-post-card.is-expanded,
.wh-news-main-col[data-expand-mode="banner"] .wh-hero-news-card.is-expanded {
  grid-template-columns: 1fr !important;
  border-color: #f5b942 !important;
}

.wh-news-main-col[data-expand-mode="banner"] .is-expanded .wh-post-thumb-wrap,
.wh-news-main-col[data-expand-mode="banner"] .is-expanded .wh-hero-thumb-link {
  height: 250px !important;
  max-height: 250px !important;
  width: 100% !important;
  border-bottom: 1px solid rgba(245, 185, 66, 0.35);
}

.wh-news-main-col[data-expand-mode="banner"] .is-expanded .wh-post-preview {
  display: none;
}

.wh-news-main-col[data-expand-mode="banner"] .is-expanded .wh-inline-expanded-body {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   OPTION 3: "ambient" — STICKY 16:9 IMAGE + AMBIENT BLUR BACKDROP COLUMN
   Left column stretches to match full article height, fills with a dark blurred
   ambient reflection of the artwork, and keeps the crisp 16:9 image at top!
   ============================================================================ */
.wh-news-main-col[data-expand-mode="ambient"] .wh-news-post-card.is-expanded,
.wh-news-main-col[data-expand-mode="ambient"] .wh-hero-news-card.is-expanded {
  border-color: #f5b942 !important;
}

.wh-news-main-col[data-expand-mode="ambient"] .is-expanded .wh-post-thumb-wrap,
.wh-news-main-col[data-expand-mode="ambient"] .is-expanded .wh-hero-thumb-link {
  height: 100% !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 12px !important;
  position: relative !important;
  overflow: hidden !important;
}

.wh-news-main-col[data-expand-mode="ambient"] .is-expanded .wh-ambient-backdrop {
  display: block !important;
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.35) saturate(1.35);
  z-index: 0;
}

.wh-news-main-col[data-expand-mode="ambient"] .is-expanded .wh-post-thumb,
.wh-news-main-col[data-expand-mode="ambient"] .is-expanded .wh-hero-thumb {
  position: sticky !important;
  top: 12px !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 140px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  border: 1px solid rgba(245, 185, 66, 0.45) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.75) !important;
}

.wh-news-main-col[data-expand-mode="ambient"] .is-expanded .wh-ambient-caption {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: #d8dee9;
}

.wh-news-main-col[data-expand-mode="ambient"] .is-expanded .wh-post-preview {
  display: none;
}

.wh-news-main-col[data-expand-mode="ambient"] .is-expanded .wh-inline-expanded-body {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* ============================================================================
   UPDATED MENU TABS (HOME & BOTS LARGER) + CENTERED WOWHEAD SEARCH INPUT
   ============================================================================ */
.bnet-topbar {
  height: 56px !important;
  padding: 0 18px !important;
}

.main-nav {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.nav-tab {
  position: relative !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 1.1px !important;
  padding: 10px 22px !important;
  border-radius: 7px !important;
  line-height: 1.1 !important;
  transition: all 0.18s ease !important;
}

body[data-ui-theme="diablo"] .nav-tab {
  font-size: 16.5px !important;
  padding: 10px 24px !important;
  letter-spacing: 1.3px !important;
}

body[data-ui-theme="diablo"] .nav-tab.active {
  background: rgba(153, 27, 27, 0.28) !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 0 16px rgba(185, 28, 28, 0.45) !important;
}

body[data-ui-theme="bnet"] .nav-tab {
  font-size: 16px !important;
  padding: 10px 22px !important;
  letter-spacing: 0.5px !important;
}

body[data-ui-theme="bnet"] .nav-tab.active {
  background: rgba(20, 142, 255, 0.16) !important;
  border: 1px solid rgba(71, 166, 255, 0.4) !important;
}

/* Balanced 3-Column News & Talents Topbar with Properly Positioned Search Box */
.wh-news-topbar {
  display: grid !important;
  grid-template-columns: auto minmax(260px, 460px) auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 12px 20px !important;
}

@media (max-width: 1150px) {
  .wh-news-topbar {
    display: flex !important;
    flex-wrap: wrap !important;
  }
}

.wh-brand-header {
  flex-shrink: 0 !important;
}

.wh-search-box {
  position: relative !important;
  width: 100% !important;
  max-width: 460px !important;
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
}

.wh-search-icon {
  position: absolute !important;
  left: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 14px !important;
  opacity: 0.78 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.wh-search-input,
#whNewsSearchInput,
#whTalentSearchInput {
  width: 100% !important;
  height: 38px !important;
  padding: 0 14px 0 38px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  transition: all 0.18s ease !important;
}

body[data-ui-theme="diablo"] .wh-search-input,
body[data-ui-theme="diablo"] #whNewsSearchInput,
body[data-ui-theme="diablo"] #whTalentSearchInput {
  background: rgba(10, 5, 6, 0.92) !important;
  border: 1.5px solid rgba(200, 168, 107, 0.45) !important;
  color: #f5e6c8 !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.75), 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

body[data-ui-theme="diablo"] .wh-search-input::placeholder,
body[data-ui-theme="diablo"] #whNewsSearchInput::placeholder,
body[data-ui-theme="diablo"] #whTalentSearchInput::placeholder {
  color: #a89882 !important;
  opacity: 0.85 !important;
}

body[data-ui-theme="diablo"] .wh-search-input:focus,
body[data-ui-theme="diablo"] #whNewsSearchInput:focus,
body[data-ui-theme="diablo"] #whTalentSearchInput:focus {
  border-color: #ffd700 !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 14px rgba(220, 38, 38, 0.55) !important;
}

body[data-ui-theme="bnet"] .wh-search-input,
body[data-ui-theme="bnet"] #whNewsSearchInput,
body[data-ui-theme="bnet"] #whTalentSearchInput {
  background: #111218 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

body[data-ui-theme="bnet"] .wh-search-input:focus,
body[data-ui-theme="bnet"] #whNewsSearchInput:focus,
body[data-ui-theme="bnet"] #whTalentSearchInput:focus {
  border-color: #47a6ff !important;
  box-shadow: 0 0 0 3px rgba(20, 142, 255, 0.28) !important;
}

.wh-header-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

.wh-last-sync {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

/* ============================================================================
   SEAMLESSLY BLENDED DIABLO IV ARTWORKS (NO DUPLICATION — 1 OF EACH IN THE UI)
   1. Inarius (/assets/diablo/d4-inarius.webp) -> Upper Cathedral Horizon (#workspaceBgArt)
   2. Lilith (/assets/diablo/d4-lilith.webp)   -> Top Right Sanctuary Crest (#d4SanctuaryLilithArt)
   3. Tyrael (/assets/diablo/d4-tyrael.webp)   -> Lower Right Guardian Panel (#d4SanctuaryTyraelArt)
   ============================================================================ */

/* Hide Diablo IV exclusive art crowns when in Battle.net template */
.d4-panel-art-crown {
  display: none;
}

/* 1. INARIUS — Upper Workspace Cathedral Horizon & Translucent Header Blend */
body[data-ui-theme="diablo"] .workspace-bg-art {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 410px !important;
  pointer-events: none !important;
  z-index: 1 !important;
  background:
    radial-gradient(ellipse 68% 82% at 50% 24%, rgba(255, 215, 130, 0.08) 0%, rgba(15, 7, 9, 0.45) 58%, rgba(9, 6, 7, 0.96) 92%),
    url('/assets/diablo/d4-inarius.webp') center 8% / cover no-repeat !important;
  opacity: 0.82 !important;
  mix-blend-mode: lighten !important;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.88) 48%, rgba(0,0,0,0.35) 78%, transparent 100%) !important;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.88) 48%, rgba(0,0,0,0.35) 78%, transparent 100%) !important;
}

/* Let Inarius golden light tendrils glow through the Sub-Nav and News Topbar */
body[data-ui-theme="diablo"] .home-subnav-bar {
  background: linear-gradient(90deg, rgba(16, 7, 9, 0.84) 0%, rgba(24, 10, 13, 0.42) 50%, rgba(16, 7, 9, 0.84) 100%) !important;
  backdrop-filter: blur(4px) !important;
  border-bottom: 1px solid rgba(200, 168, 107, 0.35) !important;
}

body[data-ui-theme="diablo"] .wh-news-topbar {
  background:
    linear-gradient(90deg, rgba(20, 9, 12, 0.86) 0%, rgba(28, 13, 16, 0.56) 50%, rgba(20, 9, 12, 0.88) 100%) !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(200, 168, 107, 0.42) !important;
  border-left: 4px solid #b91c1c !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 220, 150, 0.14) !important;
}

/* 2 & 3. LILITH & TYRAEL — Seamlessly Blended Right-Rail Sanctuary Crowns */
body[data-ui-theme="diablo"] .d4-panel-art-crown {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  background: radial-gradient(circle at 50% 40%, rgba(120, 18, 24, 0.25) 0%, rgba(12, 6, 8, 0.95) 85%) !important;
  margin-bottom: -14px !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

body[data-ui-theme="diablo"] .d4-lilith-crown {
  height: 158px !important;
}

body[data-ui-theme="diablo"] .d4-tyrael-crown {
  height: 168px !important;
  background: radial-gradient(circle at 50% 35%, rgba(120, 190, 255, 0.18) 0%, rgba(212, 175, 55, 0.12) 45%, rgba(12, 6, 8, 0.96) 88%) !important;
}

body[data-ui-theme="diablo"] .d4-seam-img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  filter: contrast(1.06) saturate(1.08) !important;
  -webkit-mask-image:
    radial-gradient(ellipse 92% 90% at 50% 44%, #000 52%, rgba(0,0,0,0.65) 76%, transparent 98%),
    linear-gradient(180deg, rgba(0,0,0,0.95) 0%, #000 18%, #000 68%, transparent 100%) !important;
  -webkit-mask-composite: source-in !important;
  mask-image:
    radial-gradient(ellipse 92% 90% at 50% 44%, #000 52%, rgba(0,0,0,0.65) 76%, transparent 98%),
    linear-gradient(180deg, rgba(0,0,0,0.95) 0%, #000 18%, #000 68%, transparent 100%) !important;
  mask-composite: intersect !important;
}

body[data-ui-theme="diablo"] .d4-lilith-img {
  object-fit: cover !important;
  object-position: center 42% !important;
}

body[data-ui-theme="diablo"] .d4-tyrael-img {
  object-fit: cover !important;
  object-position: center 18% !important;
}

body[data-ui-theme="diablo"] .d4-art-vignette {
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(ellipse 95% 90% at 50% 45%, transparent 48%, rgba(14, 7, 9, 0.85) 88%, rgba(14, 7, 9, 0.98) 100%),
    linear-gradient(180deg, rgba(14, 7, 9, 0.35) 0%, transparent 25%, rgba(14, 7, 9, 0.45) 75%, rgba(18, 8, 11, 0.96) 100%) !important;
  pointer-events: none !important;
}

body[data-ui-theme="diablo"] .d4-blended-panel .wh-side-panel-header {
  position: relative !important;
  z-index: 2 !important;
  background: linear-gradient(90deg, rgba(95, 18, 22, 0.72) 0%, rgba(22, 10, 12, 0.85) 100%) !important;
  backdrop-filter: blur(4px) !important;
  border-top: 1px solid rgba(200, 168, 107, 0.28) !important;
}

/* Keep both right-rail panels compact so Lilith, Blue Tracker, Tyrael & Featured Guides all fit in view */
body[data-ui-theme="diablo"] .wh-blue-list {
  max-height: 152px !important;
}

body[data-ui-theme="diablo"] .wh-guides-list {
  max-height: 158px !important;
}

.hsn-pill.diablo {
  background: rgba(211, 47, 47, 0.24);
  color: #ff6b6b;
  border: 1px solid rgba(211, 47, 47, 0.55);
}

/* ============================================================================
   WOWHEAD FOREVER INTERACTIVE TALENT CALCULATOR (wowhead.com/forever/talent-calc)
   ============================================================================ */
.ftc-mode-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.ftc-mode-btn {
  background: transparent;
  color: #b0bac9;
  border: 1px solid transparent;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.ftc-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ftc-mode-btn.active {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.85), rgba(217, 119, 6, 0.85));
  color: #fff;
  border-color: #ffd700;
  box-shadow: 0 2px 10px rgba(245, 185, 66, 0.35);
}

/* Class Selector Bar */
.ftc-class-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(22, 24, 30, 0.96), rgba(14, 16, 20, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.ftc-class-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d8dee9;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  position: relative;
}

.ftc-class-btn img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ftc-class-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--cls-color, #ffd700);
}

.ftc-class-btn.active {
  background: rgba(255, 215, 0, 0.14);
  border: 2px solid var(--cls-color, #ffd700);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.32);
  color: #fff;
}

.ftc-class-pts-pill {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-family: monospace;
}

/* Top Status & Controls Bar */
.ftc-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(16, 18, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 14px;
}

.ftc-stats-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ftc-stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #aeb9cc;
  background: rgba(0, 0, 0, 0.45);
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.ftc-stat-pill strong {
  color: #ffd700;
  font-size: 14px;
}

.ftc-select {
  background: #10131a;
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.ftc-talented-perk-box {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(163, 53, 238, 0.2), rgba(255, 128, 0, 0.18));
  border: 1px solid rgba(255, 180, 0, 0.55);
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.ftc-talented-perk-box img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #ffd700;
}

.ftc-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ftc-search-input {
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  width: 190px;
}

.ftc-search-input:focus {
  outline: none;
  border-color: #ffd700;
}

.ftc-action-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #e5e9f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ftc-action-btn:hover {
  background: rgba(255, 215, 0, 0.16);
  border-color: #ffd700;
  color: #fff;
}

.ftc-action-btn.danger:hover {
  background: rgba(220, 38, 38, 0.28);
  border-color: #ef4444;
  color: #fecaca;
}

/* 3 Side-by-Side Talent Trees Grid */
.ftc-trees-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(305px, 1fr));
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

@media (max-width: 1120px) {
  .ftc-trees-grid {
    grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
  }
}

.ftc-tree-card {
  background: #0e1015;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  position: relative;
  transition: border-color 0.2s ease;
}

.ftc-tree-card.has-points {
  border-color: rgba(255, 215, 0, 0.55);
}

.ftc-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(12, 14, 18, 0.96), rgba(28, 32, 42, 0.94));
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
}

.ftc-tree-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ftc-tree-header-left img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #ffd700;
}

.ftc-tree-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.ftc-tree-pts {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

/* Tree Canvas with Official Background & 4-Column Grid */
.ftc-tree-body {
  position: relative;
  padding: 16px 14px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  user-select: none;
}

.ftc-tree-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 12, 16, 0.28) 0%, rgba(8, 10, 14, 0.72) 100%);
  pointer-events: none;
}

.ftc-tree-rows {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ftc-tree-row {
  display: grid;
  grid-template-columns: repeat(4, 52px);
  justify-content: space-between;
  align-items: center;
  height: 52px;
  position: relative;
}

.ftc-talent-cell {
  width: 52px;
  height: 52px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Talent Node Button */
.ftc-talent-node {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  position: relative;
  cursor: pointer;
  background: #14171f;
  border: 2px solid #4b5563;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.75);
  transition: transform 0.1s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ftc-talent-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

/* Disabled / Locked Talent */
.ftc-talent-node.state-locked {
  border-color: #374151;
  cursor: not-allowed;
}

.ftc-talent-node.state-locked img {
  filter: grayscale(100%) brightness(0.48);
}

/* Available (Green Border like Wowhead) */
.ftc-talent-node.state-available {
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

/* Partial Ranks Spent (Green/Gold) */
.ftc-talent-node.state-partial {
  border-color: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}

/* Maxed Out Talent (Gold Border like Wowhead) */
.ftc-talent-node.state-maxed {
  border-color: #facc15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.7);
}

.ftc-talent-node:hover {
  transform: scale(1.08);
  z-index: 10;
}

/* Search Highlight */
.ftc-talent-node.search-match {
  outline: 3px solid #00d2ff;
  box-shadow: 0 0 18px #00d2ff !important;
  animation: ftcPulseMatch 1.2s infinite alternate;
}

@keyframes ftcPulseMatch {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}

/* Rank Counter Badge (bottom-right of icon) */
.ftc-talent-rank-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #090b10;
  border: 1px solid #4b5563;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  padding: 0px 5px;
  border-radius: 4px;
  line-height: 15px;
  pointer-events: none;
  font-family: monospace;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
}

.ftc-talent-node.state-available .ftc-talent-rank-badge,
.ftc-talent-node.state-partial .ftc-talent-rank-badge {
  color: #4ade80;
  border-color: #22c55e;
}

.ftc-talent-node.state-maxed .ftc-talent-rank-badge {
  color: #facc15;
  border-color: #eab308;
}

/* SVG Dependency Arrows Overlay */
.ftc-tree-arrows-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Tree Footer Reset Bar */
.ftc-tree-footer {
  padding: 8px 12px;
  background: rgba(12, 14, 18, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ftc-tree-reset-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ftc-tree-reset-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
}

/* Floating Wowhead Authentic Tooltip */
.ftc-floating-tooltip {
  position: fixed;
  z-index: 99999;
  width: 340px;
  max-width: 92vw;
  background: rgba(11, 13, 19, 0.98);
  border: 1.5px solid #ffd700;
  border-radius: 9px;
  padding: 12px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  color: #e5e9f0;
  font-size: 12.5px;
  line-height: 1.45;
}

.ftc-tt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.ftc-tt-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

.ftc-tt-rank {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  white-space: nowrap;
}

.ftc-tt-desc {
  color: #ffd100;
  margin-bottom: 6px;
}

.ftc-tt-next-label {
  color: #fff;
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 2px;
}

.ftc-tt-req-err {
  color: #f87171;
  font-weight: 700;
  margin-top: 6px;
}

.ftc-tt-hint {
  color: #4ade80;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 6px;
}

/* Bottom Sections: Talent Order, Racial Traits, Class Abilities */
.ftc-bottom-panels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.ftc-panel-box {
  background: rgba(15, 17, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
}

.ftc-panel-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ftc-order-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ftc-order-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11.5px;
}

.ftc-order-item img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.ftc-order-lvl {
  color: #ffd700;
  font-weight: 800;
  font-family: monospace;
}

.ftc-racials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ftc-ability-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 190px;
}

.ftc-ability-pill img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}


/* Fix Forever Talent Calculator Topbar & Legacy Calculator Button Bounds */
#homeTalentTreesStageView .wh-news-topbar,
.ftc-Stage-topbar {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.ftc-mode-switcher {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(10, 12, 16, 0.72) !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 215, 0, 0.35) !important;
  width: auto !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.ftc-mode-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}



/* ============================================================================
   UNIFIED SINGLE-ROOM COMMUNITY LIVE CHAT (FULL-SCREEN VIEW & FLOATING DRAWER)
   ============================================================================ */

.chat-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}

.chat-nav-online-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.14);
  border: 1px solid rgba(46, 204, 113, 0.38);
  color: #4ade80;
  letter-spacing: 0.2px;
}

.chat-nav-unread-badge,
.fct-unread-badge {
  background: #ff2e63;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 46, 99, 0.7);
}

.chat-stage-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

.chat-unified-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .chat-unified-layout {
    grid-template-columns: 1fr;
  }
}

.chat-main-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(15, 19, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

body[data-ui-theme="diablo"] .chat-main-panel {
  background: linear-gradient(180deg, rgba(22, 13, 16, 0.95) 0%, rgba(12, 10, 14, 0.96) 100%);
  border-color: rgba(212, 175, 55, 0.24);
}

.chat-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(10, 13, 20, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  flex-wrap: wrap;
}

body[data-ui-theme="diablo"] .chat-room-header {
  background: linear-gradient(90deg, rgba(45, 14, 18, 0.85) 0%, rgba(16, 12, 16, 0.92) 100%);
  border-bottom-color: rgba(212, 175, 55, 0.22);
}

.chat-room-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-room-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f5b942;
  text-transform: uppercase;
}

.chat-room-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
  margin-top: 1px;
}

.chat-room-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-live-sync-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 174, 255, 0.13);
  border: 1px solid rgba(0, 174, 255, 0.35);
  color: #38bdf8;
}

.chat-online-counter-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #4ade80;
}

/* Messages Feed */
.chat-messages-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: text;
}

.chat-msg-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s, border-color 0.15s;
}

.chat-msg-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.chat-msg-card.is-mine {
  background: rgba(0, 116, 224, 0.09);
  border-color: rgba(0, 174, 255, 0.24);
}

body[data-ui-theme="diablo"] .chat-msg-card.is-mine {
  background: rgba(185, 28, 28, 0.12);
  border-color: rgba(245, 185, 66, 0.28);
}

.chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #ffd700;
  object-fit: cover;
  flex-shrink: 0;
  background: #0d1017;
}

.chat-msg-body {
  flex: 1;
  min-width: 0;
}

.chat-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.chat-msg-author {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.chat-msg-spec-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.chat-msg-time {
  font-size: 11px;
  color: #64748b;
  margin-left: auto;
}

.chat-msg-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: #e2e8f0;
  word-break: break-word;
  white-space: pre-wrap;
  user-select: text;
}

.chat-msg-text a {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 600;
}

.chat-msg-reactions-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.chat-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.chat-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.chat-reaction-btn.has-count {
  background: rgba(245, 185, 66, 0.12);
  border-color: rgba(245, 185, 66, 0.35);
  color: #fde68a;
}

.chat-reaction-btn.reacted-by-me {
  background: rgba(46, 204, 113, 0.2);
  border-color: #2ecc71;
  color: #ffffff;
}

/* Quick Emotes & Share Bar */
.chat-quick-actions-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(11, 14, 21, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  flex-shrink: 0;
}

.chat-quick-label {
  font-size: 11px;
  font-weight: 700;
  color: #8b95a5;
  white-space: nowrap;
}

.chat-quick-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #d8dee9;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.chat-quick-chip:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.chat-quick-chip.gold-chip {
  background: rgba(245, 185, 66, 0.14);
  border-color: rgba(245, 185, 66, 0.45);
  color: #ffd700;
}

.chat-quick-chip.gold-chip:hover {
  background: rgba(245, 185, 66, 0.25);
  color: #fff;
}

/* Composer Bar */
.chat-composer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(9, 12, 18, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.chat-composer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid #ffd700;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-composer-input {
  flex: 1;
  height: 38px;
  font-size: 13.5px;
}

.chat-send-btn {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Right Side Panel: Profile + Online Users */
.chat-side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.chat-profile-card,
.chat-online-card {
  background: rgba(15, 19, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

body[data-ui-theme="diablo"] .chat-profile-card,
body[data-ui-theme="diablo"] .chat-online-card {
  background: linear-gradient(180deg, rgba(22, 13, 16, 0.95) 0%, rgba(12, 10, 14, 0.96) 100%);
  border-color: rgba(212, 175, 55, 0.24);
}

.chat-online-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-status-online-tag {
  color: #4ade80;
  font-weight: 800;
}

.chat-profile-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}

.chat-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid #ffd700;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-profile-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

.chat-profile-spec {
  font-size: 11.5px;
  font-weight: 700;
  color: #f5b942;
  margin-top: 2px;
}

.chat-profile-edit-row {
  display: flex;
  gap: 6px;
  margin-bottom: 9px;
}

.chat-nick-input {
  flex: 1;
  height: 32px;
  font-size: 12.5px;
}

.chat-nick-save-btn {
  height: 32px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
}

.chat-avatar-picker-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #d8dee9;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.chat-avatar-picker-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.chat-avatar-picker-grid {
  margin-top: 8px;
  max-height: 175px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 6px;
  background: rgba(8, 10, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.chat-avatar-choice-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, border-color 0.12s;
}

.chat-avatar-choice-btn:hover {
  transform: scale(1.08);
  border-color: rgba(255, 215, 0, 0.6);
}

.chat-avatar-choice-btn.active {
  border-color: #ffd700;
  background: rgba(245, 185, 66, 0.18);
}

.chat-avatar-choice-btn img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: block;
}

.chat-online-badge-num {
  background: rgba(46, 204, 113, 0.18);
  border: 1px solid rgba(46, 204, 113, 0.42);
  color: #4ade80;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.chat-online-users-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chat-online-user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-online-user-avatar-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.chat-online-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1.5px solid #ffd700;
  object-fit: cover;
}

.chat-online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid #0d1017;
}

.chat-online-user-info {
  flex: 1;
  min-width: 0;
}

.chat-online-user-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-online-user-spec {
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
   FLOATING LIVE CHAT WIDGET & DRAWER (BOTTOM-RIGHT ON ALL PAGES)
   ============================================================================ */

.floating-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.floating-chat-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0062cc 0%, #00aeff 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 174, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body[data-ui-theme="diablo"] .floating-chat-toggle-btn {
  background: linear-gradient(135deg, #8b111e 0%, #c92a2a 100%);
  border-color: rgba(245, 185, 66, 0.65);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8), 0 0 18px rgba(201, 42, 42, 0.45);
}

.floating-chat-toggle-btn:hover {
  transform: translateY(-2px);
}

.fct-online-pill {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #86efac;
}

.floating-chat-drawer {
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 510px;
  max-height: calc(100vh - 110px);
  background: rgba(13, 17, 25, 0.98);
  border: 1.5px solid rgba(0, 174, 255, 0.38);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body[data-ui-theme="diablo"] .floating-chat-drawer {
  background: linear-gradient(180deg, rgba(24, 13, 16, 0.98) 0%, rgba(12, 10, 14, 0.99) 100%);
  border-color: rgba(245, 185, 66, 0.45);
}

.fcd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fcd-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.fcd-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
}

.fcd-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.fcd-subtitle {
  font-size: 11px;
  color: #86efac;
}

.fcd-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fcd-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.fcd-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.fcd-nick-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fcd-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid #ffd700;
}

.fcd-nick-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.fcd-nick-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: #ffffff;
  font-size: 12px;
  padding: 3px 8px;
}

.fcd-nick-save-btn {
  background: rgba(245, 185, 66, 0.18);
  border: 1px solid rgba(245, 185, 66, 0.45);
  color: #ffd700;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.fcd-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: text;
}

.fcd-quick-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.fcd-quick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.fcd-quick-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.fcd-composer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  background: rgba(8, 10, 15, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fcd-input {
  flex: 1;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12.5px;
}

.fcd-send-btn {
  width: 36px;
  height: 34px;
  border-radius: 7px;
  border: none;
  background: #0074e0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

body[data-ui-theme="diablo"] .fcd-send-btn {
  background: #c92a2a;
}



/* ============================================================================
   MULTIPLAYER TIC-TAC-TOE ("TIC-TAC") ARENA STYLES
   ============================================================================ */

.tictac-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}

.tictac-nav-live-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.16);
  border: 1px solid rgba(245, 185, 66, 0.45);
  color: #ffd700;
  letter-spacing: 0.4px;
}

.tictac-nav-live-pill.has-waiting {
  background: rgba(255, 46, 99, 0.22);
  border-color: #ff2e63;
  color: #ff8fa3;
  box-shadow: 0 0 10px rgba(255, 46, 99, 0.45);
}

.tictac-stage-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  z-index: 2;
}

.tictac-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(13, 17, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid #ffd700;
  border-radius: 11px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

body[data-ui-theme="diablo"] .tictac-topbar {
  background: linear-gradient(90deg, rgba(38, 13, 17, 0.94) 0%, rgba(15, 12, 16, 0.95) 100%);
  border-color: rgba(212, 175, 55, 0.25);
  border-left-color: #ef4444;
}

.tictac-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.tictac-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f5b942;
}

.tictac-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.tictac-tables-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.tictac-table-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tictac-table-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.tictac-table-tab.active {
  background: rgba(245, 185, 66, 0.16);
  border-color: rgba(245, 185, 66, 0.48);
  color: #ffd700;
}

.tictac-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tictac-invite-btn {
  border-color: rgba(46, 204, 113, 0.45) !important;
  color: #4ade80 !important;
  background: rgba(46, 204, 113, 0.1) !important;
}

.tictac-invite-btn:hover {
  background: rgba(46, 204, 113, 0.22) !important;
  color: #fff !important;
}

.tictac-ai-btn {
  border-color: rgba(0, 210, 255, 0.45) !important;
  color: #38bdf8 !important;
  background: rgba(0, 210, 255, 0.1) !important;
}

.tictac-ai-btn:hover {
  background: rgba(0, 210, 255, 0.22) !important;
  color: #fff !important;
}

.tictac-rematch-btn {
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

/* Main 3-Column Arena Grid */
.tictac-arena-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 290px minmax(320px, 1fr) 310px;
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 1120px) {
  .tictac-arena-grid {
    grid-template-columns: 1fr;
  }
}

.tictac-side-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.tictac-player-card,
.tictac-score-summary-card,
.tictac-log-card {
  background: rgba(15, 19, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

body[data-ui-theme="diablo"] .tictac-player-card,
body[data-ui-theme="diablo"] .tictac-score-summary-card,
body[data-ui-theme="diablo"] .tictac-log-card {
  background: linear-gradient(180deg, rgba(22, 13, 16, 0.95) 0%, rgba(12, 10, 14, 0.96) 100%);
  border-color: rgba(212, 175, 55, 0.24);
}

.tictac-player-card.active-turn.seat-x {
  border-color: #ff4757;
  box-shadow: 0 0 22px rgba(255, 71, 87, 0.32);
}

.tictac-player-card.active-turn.seat-o {
  border-color: #00d2ff;
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.32);
}

.tictac-seat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tictac-seat-badge {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tictac-seat-badge.x-badge {
  color: #ff6b81;
}

.tictac-seat-badge.o-badge {
  color: #38bdf8;
}

.tictac-turn-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.tictac-turn-pill.is-turn {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid #2ecc71;
  color: #4ade80;
}

.tictac-seat-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tictac-seat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid #ffd700;
  object-fit: cover;
  background: #0b0e14;
  flex-shrink: 0;
}

.tictac-seat-empty-avatar {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.tictac-seat-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.tictac-seat-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.tictac-seat-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transition: all 0.15s ease;
}

.tictac-seat-btn.join-x {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.28), rgba(239, 68, 68, 0.16));
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.tictac-seat-btn.join-x:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.45), rgba(239, 68, 68, 0.28));
  color: #ffffff;
}

.tictac-seat-btn.join-o {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.28), rgba(56, 189, 248, 0.16));
  border-color: rgba(56, 189, 248, 0.55);
  color: #bae6fd;
}

.tictac-seat-btn.join-o:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.45), rgba(56, 189, 248, 0.28));
  color: #ffffff;
}

.tictac-seat-btn.leave-btn {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.tictac-seat-btn.leave-btn:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #ffffff;
}

/* Scoreboard Box */
.tictac-card-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tictac-scoreboard-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tictac-score-box {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 9px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tictac-score-box.x-score {
  border-color: rgba(255, 71, 87, 0.35);
}

.tictac-score-box.o-score {
  border-color: rgba(0, 210, 255, 0.35);
}

.ts-label {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
}

.ts-val {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}

/* Center Column & 3x3 Board */
.tictac-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(13, 17, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
}

body[data-ui-theme="diablo"] .tictac-center-col {
  background: radial-gradient(circle at 50% 35%, rgba(62, 16, 22, 0.55) 0%, rgba(13, 11, 15, 0.96) 75%);
  border-color: rgba(212, 175, 55, 0.28);
}

.tictac-status-banner {
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 185, 66, 0.35);
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 800;
}

.tictac-status-banner.status-won {
  background: rgba(46, 204, 113, 0.16);
  border-color: #2ecc71;
  color: #86efac;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.25);
}

.tictac-status-banner.status-draw {
  background: rgba(245, 185, 66, 0.16);
  border-color: #f5b942;
  color: #fde68a;
}

.tictac-board-frame {
  padding: 14px;
  border-radius: 16px;
  background: rgba(7, 9, 14, 0.92);
  border: 2px solid rgba(245, 185, 66, 0.35);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.85), 0 12px 32px rgba(0, 0, 0, 0.65);
}

.tictac-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 108px);
  grid-template-rows: repeat(3, 108px);
  gap: 10px;
}

@media (max-width: 520px) {
  .tictac-board-grid {
    grid-template-columns: repeat(3, 84px);
    grid-template-rows: repeat(3, 84px);
  }
}

.tictac-cell {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(26, 32, 44, 0.95), rgba(15, 19, 28, 0.95));
  border: 1.5px solid rgba(255, 255, 255, 0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

body[data-ui-theme="diablo"] .tictac-cell {
  background: linear-gradient(145deg, rgba(32, 18, 22, 0.95), rgba(16, 11, 14, 0.95));
  border-color: rgba(212, 175, 55, 0.22);
}

.tictac-cell.can-click:hover {
  transform: scale(1.04);
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(245, 185, 66, 0.3);
}

.tictac-cell.cell-x {
  color: #ff4757;
  text-shadow: 0 0 16px rgba(255, 71, 87, 0.7);
  border-color: rgba(255, 71, 87, 0.45);
}

.tictac-cell.cell-o {
  color: #00d2ff;
  text-shadow: 0 0 16px rgba(0, 210, 255, 0.7);
  border-color: rgba(0, 210, 255, 0.45);
}

.tictac-cell.winning-cell {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.28), rgba(245, 185, 66, 0.25)) !important;
  border-color: #4ade80 !important;
  box-shadow: 0 0 24px rgba(46, 204, 113, 0.65) !important;
  transform: scale(1.05);
}

.tictac-bottom-hint {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  max-width: 480px;
}

.tictac-log-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tictac-history-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tictac-log-item {
  font-size: 11.5px;
  color: #cbd5e1;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.tictac-log-time {
  color: #64748b;
  font-size: 10.5px;
  white-space: nowrap;
}



/* ============================================================================
   GAMES TOP NAVIGATION DROPDOWN MENU & MULTIPLAYER 8x8 CHESS ARENA
   ============================================================================ */

.nav-games-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.games-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.games-nav-caret {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 1px;
  transition: transform 0.16s ease;
}

.nav-games-dropdown-wrap.menu-open .games-nav-caret {
  transform: rotate(180deg);
}

.games-dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 4px;
  left: 0;
  width: 300px;
  background: rgba(12, 15, 23, 0.99);
  border: 1.5px solid rgba(245, 185, 66, 0.5);
  border-radius: 12px;
  padding: 7px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'BN Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

#gamesSubMenu,
#gamesSubMenu *,
.games-dropdown-menu,
.games-dropdown-menu *,
.games-dropdown-item,
.gdi-text,
.gdi-title,
.gdi-sub,
.gdi-badge {
  font-family: 'BN Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body[data-ui-theme="diablo"] .games-dropdown-menu {
  background: linear-gradient(180deg, rgba(25, 13, 16, 0.99) 0%, rgba(12, 10, 14, 0.99) 100%);
  border-color: rgba(212, 175, 55, 0.55);
}

.games-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}

.games-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(245, 185, 66, 0.35);
  transform: translateX(2px);
}

.games-dropdown-item.active {
  background: rgba(245, 185, 66, 0.16);
  border-color: rgba(245, 185, 66, 0.52);
}

.gdi-icon {
  font-size: 18px;
  min-width: 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gdi-text {
  flex: 1;
  min-width: 0;
}

.gdi-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.gdi-sub {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 1px;
}

.gdi-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 174, 255, 0.16);
  border: 1px solid rgba(0, 174, 255, 0.4);
  color: #38bdf8;
}

.gdi-badge.gold {
  background: rgba(245, 185, 66, 0.2);
  border-color: rgba(245, 185, 66, 0.5);
  color: #ffd700;
}

/* 8x8 Chessboard & Pieces */
.tictac-player-card.active-turn.seat-white {
  border-color: #ffd700;
  box-shadow: 0 0 22px rgba(245, 185, 66, 0.35);
}

.tictac-player-card.active-turn.seat-black {
  border-color: #38bdf8;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.35);
}

.chess-captured-tray {
  margin-top: 8px;
  margin-bottom: 10px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-size: 15px;
}

.chess-board-outer-frame {
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, #171310, #0c0e14);
  border: 2.5px solid rgba(245, 185, 66, 0.48);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.9), 0 14px 36px rgba(0, 0, 0, 0.75);
}

.chess-board-8x8 {
  display: grid;
  grid-template-columns: repeat(8, 54px);
  grid-template-rows: repeat(8, 54px);
  border: 2px solid #3b2f20;
  border-radius: 6px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .chess-board-8x8 {
    grid-template-columns: repeat(8, 40px);
    grid-template-rows: repeat(8, 40px);
  }
}

.chess-sq {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.1s ease;
  user-select: none;
}

.chess-sq.light-sq {
  background: #cbb692;
}

.chess-sq.dark-sq {
  background: #5c4530;
}

body[data-ui-theme="bnet"] .chess-sq.light-sq {
  background: #bfc9d6;
}

body[data-ui-theme="bnet"] .chess-sq.dark-sq {
  background: #3d4f66;
}

.chess-sq:hover {
  filter: brightness(1.09);
}

.chess-sq.sq-selected {
  background: #eab308 !important;
  box-shadow: inset 0 0 0 3px #fef08a;
}

.chess-sq.sq-last-move {
  box-shadow: inset 0 0 0 3px rgba(245, 185, 66, 0.72);
  background-image: linear-gradient(rgba(245, 185, 66, 0.28), rgba(245, 185, 66, 0.28));
}

.chess-sq.sq-in-check {
  background: radial-gradient(circle, #ef4444 20%, #7f1d1d 90%) !important;
  box-shadow: inset 0 0 12px #fef2f2;
}

.chess-piece-glyph {
  font-size: 37px;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.12s ease;
}

@media (max-width: 640px) {
  .chess-piece-glyph {
    font-size: 28px;
  }
}

.chess-piece-glyph.piece-w {
  color: #fffbeb;
  text-shadow:
    0 1px 0 #451a03,
    0 -1px 0 #451a03,
    1px 0 0 #451a03,
    -1px 0 0 #451a03,
    0 3px 6px rgba(0, 0, 0, 0.85);
}

.chess-piece-glyph.piece-b {
  color: #111827;
  text-shadow:
    0 0 2px #f8fafc,
    0 0 5px rgba(56, 189, 248, 0.65),
    0 3px 6px rgba(0, 0, 0, 0.75);
}

.chess-legal-dot {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.88);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  pointer-events: none;
}

.chess-legal-capture-ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 3.5px solid rgba(239, 68, 68, 0.92);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.75);
  pointer-events: none;
}

.chess-coord-rank {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 9.5px;
  font-weight: 800;
  opacity: 0.78;
  pointer-events: none;
}

.chess-coord-file {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 9.5px;
  font-weight: 800;
  opacity: 0.78;
  pointer-events: none;
}

.chess-sq.light-sq .chess-coord-rank,
.chess-sq.light-sq .chess-coord-file {
  color: #3e2723;
}

.chess-sq.dark-sq .chess-coord-rank,
.chess-sq.dark-sq .chess-coord-file {
  color: #f5ebe0;
}

.chess-moves-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 110px;
  overflow-y: auto;
  margin-bottom: 8px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chess-move-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}



/* ============================================================================
   MINIMALIST MULTIPLAYER TIC-TAC-TOE PAGE STYLES
   ============================================================================ */

.tictac-minimal-stage {
  gap: 10px;
  overflow: hidden;
}

.ttm-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: rgba(13, 17, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}

body[data-ui-theme="diablo"] .ttm-header-bar {
  background: rgba(22, 13, 16, 0.94);
  border-color: rgba(212, 175, 55, 0.24);
}

.ttm-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.ttm-score-pill-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 700;
}

.ttm-score-item.x-col {
  color: #ff6b81;
}

.ttm-score-item.draw-col {
  color: #94a3b8;
}

.ttm-score-item.o-col {
  color: #38bdf8;
}

.ttm-score-sep {
  color: #475569;
}

.ttm-rematch-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
}

.ttm-main-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
  overflow: hidden;
}

@media (max-width: 960px) {
  .ttm-main-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.ttm-game-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(13, 17, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  min-height: 0;
}

body[data-ui-theme="diablo"] .ttm-game-panel {
  background: radial-gradient(circle at 50% 40%, rgba(52, 14, 20, 0.45) 0%, rgba(13, 11, 15, 0.95) 80%);
  border-color: rgba(212, 175, 55, 0.22);
}

.ttm-seats-row {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ttm-vs-divider {
  font-size: 11px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.ttm-seat-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ttm-seat-slot.active-turn.seat-x {
  border-color: #ff4757;
  box-shadow: 0 0 14px rgba(255, 71, 87, 0.3);
}

.ttm-seat-slot.active-turn.seat-o {
  border-color: #00d2ff;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.3);
}

.ttm-seat-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ttm-seat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1.5px solid #ffd700;
  object-fit: cover;
  flex-shrink: 0;
}

.ttm-seat-sym {
  font-size: 16px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ttm-seat-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttm-seat-role {
  font-size: 10.5px;
  color: #94a3b8;
}

.ttm-seat-mini-btn {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.ttm-seat-mini-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ttm-seat-mini-btn.leave {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.ttm-status-line {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  text-align: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ttm-status-line.status-won {
  color: #4ade80;
  border-color: rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.12);
}

.ttm-status-line.status-draw {
  color: #fde68a;
  border-color: rgba(245, 185, 66, 0.45);
  background: rgba(245, 185, 66, 0.12);
}

.ttm-board-frame {
  padding: 12px;
}

.ttm-online-strip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.ttm-online-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

.ttm-online-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ttm-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.ttm-player-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* Right Minimalist Chat Panel inside Tic-Tac-Toe */
.ttm-chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(13, 17, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  overflow: hidden;
}

body[data-ui-theme="diablo"] .ttm-chat-panel {
  background: rgba(18, 12, 15, 0.95);
  border-color: rgba(212, 175, 55, 0.22);
}

.ttm-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
}

.ttm-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  user-select: text;
}

.ttm-chat-composer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ttm-chat-input {
  flex: 1;
  height: 32px;
  font-size: 12.5px;
}

.ttm-chat-send-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}


/* ============================================================================
   BATTLE.NET SHOP HEADER, LARGER NAV TABS & THEME-AWARE ACCOUNT DROPDOWN
   (Matches https://eu.shop.battle.net/en-us?from=root in Battle.net Theme)
   ============================================================================ */

.bnet-topbar {
  height: 68px !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #15171e !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

body[data-ui-theme="diablo"] .bnet-topbar {
  background: linear-gradient(180deg, #160c0e 0%, #0d0709 100%) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}

.topbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.app-brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  padding: 2px !important;
  margin-right: 2px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: transform 0.18s ease, filter 0.18s ease !important;
  flex-shrink: 0 !important;
}

.app-brand-logo-img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 8px rgba(56, 189, 248, 0.22)) !important;
  transition: transform 0.18s ease, filter 0.18s ease !important;
}

.app-brand-logo:hover .app-brand-logo-img {
  transform: scale(1.07) !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.5)) !important;
}

body[data-ui-theme="diablo"] .app-brand-logo-img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.28)) !important;
}

body[data-ui-theme="diablo"] .app-brand-logo:hover .app-brand-logo-img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.55)) !important;
}

.main-nav {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.nav-tab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-height: 44px !important;
  padding: 11px 22px !important;
  border-radius: 8px !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
  color: #c4c8d0 !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}

body:not([data-ui-theme="diablo"]) .nav-tab {
  font-family: 'Object Sans', 'BN Noto Sans', 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
}

.nav-tab:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

body:not([data-ui-theme="diablo"]) .nav-tab.active {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(0, 116, 224, 0.28) 0%, rgba(0, 82, 158, 0.22) 100%) !important;
  border-color: #148eff !important;
  box-shadow: 0 0 16px rgba(20, 142, 255, 0.28) !important;
  text-shadow: none !important;
}

body[data-ui-theme="diablo"] .nav-tab {
  font-size: 16px !important;
  padding: 11px 22px !important;
  min-height: 44px !important;
  color: #d6c7b2 !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(212, 175, 55, 0.16) !important;
}

body[data-ui-theme="diablo"] .nav-tab:hover {
  color: #ffffff !important;
  background: rgba(153, 27, 27, 0.2) !important;
  border-color: rgba(212, 175, 55, 0.38) !important;
}

body[data-ui-theme="diablo"] .nav-tab.active {
  color: #f5e6c8 !important;
  background: rgba(153, 27, 27, 0.34) !important;
  border: 1px solid rgba(212, 175, 55, 0.55) !important;
  box-shadow: 0 0 16px rgba(185, 28, 28, 0.45) !important;
}

/* Badges inside larger nav buttons */
.tictac-nav-live-pill {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  line-height: 1.1 !important;
}

body:not([data-ui-theme="diablo"]) .tictac-nav-live-pill {
  background: rgba(20, 142, 255, 0.18) !important;
  border: 1px solid rgba(71, 166, 255, 0.45) !important;
  color: #68b5ff !important;
  font-family: 'BN Noto Sans', 'Inter', 'Segoe UI', sans-serif !important;
}

.chat-nav-online-pill {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  line-height: 1.1 !important;
}

/* Games Dropdown Menu in Battle.net Theme */
body:not([data-ui-theme="diablo"]) .games-dropdown-menu {
  background: #1a1e29 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.78) !important;
  font-family: 'BN Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body:not([data-ui-theme="diablo"]) .games-dropdown-item {
  background: #222736 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
}

body:not([data-ui-theme="diablo"]) .games-dropdown-item:hover {
  background: #2a3142 !important;
  border-color: #148eff !important;
}

body:not([data-ui-theme="diablo"]) .games-dropdown-item.active {
  background: rgba(0, 116, 224, 0.2) !important;
  border-color: #148eff !important;
}

body:not([data-ui-theme="diablo"]) .gdi-badge.gold {
  background: rgba(20, 142, 255, 0.18) !important;
  border-color: rgba(71, 166, 255, 0.45) !important;
  color: #68b5ff !important;
}

/* ============================================================================
   TOP-RIGHT ACCOUNT BUTTON & DROPDOWN (EXACT BATTLE.NET CLIENT POPOVER STYLE)
   Matches reference screenshot: flat #15171e menu, borderless identity header
   ("unkillz #2871" + "biltsergiu@gmail.com"), monochrome SVG line-art rows,
   and darker #1a1c24 bottom Log Out footer.
   ============================================================================ */
.topbar-right {
  position: relative;
  z-index: 5002;
  overflow: visible !important;
}

.account-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#accountMenuBtn,
#accountMenuBtn *,
#accountDropdownMenu,
#accountDropdownMenu * {
  font-family: 'Object Sans', 'BN Noto Sans', 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.account-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 18px 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #d2d6dc;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.account-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(41, 151, 255, 0.4);
  color: #ffffff;
}

.account-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.account-btn-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid #2997ff !important;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.account-online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #15171e;
}

.account-btn-label {
  font-size: 16.5px;
  font-weight: 700;
  color: #f3f4f6;
  letter-spacing: 0.01em;
}

.account-btn-caret {
  font-size: 13.5px;
  color: #9ca3af;
  margin-left: 3px;
}

/* Main Account Dropdown Popover Container */
.account-dropdown-menu {
  position: fixed;
  top: 66px;
  right: 24px;
  width: 310px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 82px);
  overflow-y: auto;
  background: #15171e !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 6px !important;
  padding: 20px 0 0 0 !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85) !important;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: width 0.16s ease;
}

.account-dropdown-menu.icons-expanded {
  width: 480px;
}

/* 1. Top Identity Header (Borderless Typography) */
.acc-bnet-identity {
  padding: 2px 24px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.acc-bnet-battletag-line {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.acc-bnet-name {
  color: #2997ff;
  font-weight: 700;
}

.acc-bnet-tag {
  color: #7a8291;
  font-weight: 700;
}

.acc-bnet-email {
  font-size: 14px;
  font-weight: 400;
  color: #8f96a3;
  line-height: 1.35;
}

.acc-bnet-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #7a8291;
}

.acc-bnet-mini-spec-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  object-fit: cover;
}

/* 2. Primary Menu Items List */
.acc-bnet-menu-list {
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px 0;
}

.acc-bnet-row-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: #d2d6dc;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.acc-bnet-row-btn:hover,
.acc-bnet-row-btn.active {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.acc-bnet-svg-icon {
  width: 20px;
  height: 20px;
  color: #8f96a3;
  flex-shrink: 0;
  transition: color 0.12s ease;
}

.acc-bnet-row-btn:hover .acc-bnet-svg-icon,
.acc-bnet-row-btn.active .acc-bnet-svg-icon {
  color: #ffffff;
}

.acc-bnet-row-label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.acc-bnet-row-caret {
  font-size: 11px;
  color: #7a8291;
  transition: transform 0.15s ease;
}

.acc-bnet-row-btn.active .acc-bnet-row-caret {
  transform: rotate(180deg);
  color: #2997ff;
}

/* Expandable Subpanels inside the Battle.net Menu */
.acc-bnet-subpanel {
  padding: 10px 24px 14px 24px;
  background: #111319;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.acc-theme-switcher {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  width: 100%;
}

.acc-theme-card {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  padding: 10px 12px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: #181b24 !important;
  text-align: left !important;
  width: 100%;
  transition: all 0.14s ease !important;
}

.acc-theme-card:hover {
  background: #202430 !important;
  border-color: rgba(41, 151, 255, 0.45) !important;
}

.acc-theme-card.active {
  background: rgba(0, 116, 224, 0.22) !important;
  border-color: #2997ff !important;
  box-shadow: 0 0 12px rgba(41, 151, 255, 0.25) !important;
}

.acc-theme-card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.acc-theme-card-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.acc-theme-card-text small {
  font-size: 11.5px;
  color: #8f96a3;
  font-weight: 400;
}

/* Override any fixed positioning on #iconPickerDropdown so it stays neatly inside #accountDropdownMenu */
#accountDropdownMenu #iconPickerDropdown.acc-bnet-subpanel {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-height: none !important;
  background: #111319 !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 0 !important;
  padding: 12px 24px !important;
  box-shadow: none !important;
}

.acc-icon-search-row {
  margin-bottom: 10px;
}

.acc-icon-search-input {
  width: 100%;
  height: 36px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  background: #181b24 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  color: #ffffff !important;
}

.acc-icon-search-input:focus {
  border-color: #2997ff !important;
  outline: none !important;
}

.acc-ip-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 6px !important;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

#accountDropdownMenu .ip-icon-btn {
  width: 100% !important;
  height: 58px !important;
  background: #181b24 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 5px !important;
  padding: 4px 2px !important;
}

#accountDropdownMenu .ip-icon-btn img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 4px !important;
}

#accountDropdownMenu .ip-icon-btn:hover {
  border-color: #2997ff !important;
  transform: translateY(-1px) !important;
}

#accountDropdownMenu .ip-icon-btn.active {
  border-color: #2997ff !important;
  background: rgba(41, 151, 255, 0.18) !important;
  box-shadow: 0 0 10px rgba(41, 151, 255, 0.45) !important;
}

.acc-battletag-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acc-battletag-save-btn {
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  background: #0074e0 !important;
  border: 1px solid #2997ff !important;
  color: #ffffff !important;
}

/* 3. Bottom Footer Section ("Log Out") */
.acc-bnet-footer {
  background: #1a1c24;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 0;
  margin-top: 4px;
}

.acc-bnet-logout-btn {
  padding: 12px 24px;
  color: #d2d6dc;
}

.acc-bnet-logout-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}


/* ============================================================================
   BATTLE.NET UNIVERSE ARTWORK INTEGRATION (5 BLIZZARD IMAGES — MINIMALIST)
   Visible exclusively in Battle.net Template (hidden in Diablo IV Template)
   ============================================================================ */

body[data-ui-theme="diablo"] .bnet-only-art {
  display: none !important;
}

body:not([data-ui-theme="diablo"]) .d4-panel-art-crown {
  display: none !important;
}

/* Ambient workspace backdrop using custom blended Battle.net artwork */
body:not([data-ui-theme="diablo"]) .bnet-workspace {
  background:
    radial-gradient(ellipse 80% 65% at 50% 22%, rgba(28, 124, 230, 0.18) 0%, rgba(255, 210, 125, 0.08) 38%, rgba(15, 19, 28, 0.95) 70%, #0e1119 100%) !important;
}

body:not([data-ui-theme="diablo"]) .workspace-bg-art {
  --bnet-custom-bg: url('/assets/bnet/bnet-bg-custom.webp');
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 640px !important;
  pointer-events: none !important;
  z-index: 1 !important;
  background:
    radial-gradient(ellipse 78% 84% at 50% 26%, rgba(41, 151, 255, 0.12) 0%, rgba(255, 215, 135, 0.06) 36%, rgba(15, 20, 32, 0.34) 60%, rgba(13, 16, 24, 0.94) 92%),
    var(--bnet-custom-bg) center 6% / cover no-repeat !important;
  opacity: 0.92 !important;
  filter: saturate(1.08) contrast(1.05);
  mix-blend-mode: lighten !important;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.94) 56%, rgba(0, 0, 0, 0.48) 82%, transparent 100%) !important;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.94) 56%, rgba(0, 0, 0, 0.48) 82%, transparent 100%) !important;
}

/* Translucent glassmorphic blending for Battle.net subnav, topbar & cards so background light wings glow through */
body:not([data-ui-theme="diablo"]) .bnet-topbar {
  background: linear-gradient(90deg, rgba(14, 17, 24, 0.90) 0%, rgba(18, 23, 34, 0.72) 50%, rgba(14, 17, 24, 0.90) 100%) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid rgba(71, 166, 255, 0.18) !important;
}

body:not([data-ui-theme="diablo"]) .home-subnav-bar {
  background: linear-gradient(90deg, rgba(14, 18, 26, 0.76) 0%, rgba(20, 27, 40, 0.34) 50%, rgba(14, 18, 26, 0.76) 100%) !important;
  backdrop-filter: blur(3px) !important;
  border-bottom: 1px solid rgba(255, 215, 140, 0.22) !important;
}

body:not([data-ui-theme="diablo"]) .wh-news-topbar {
  background:
    linear-gradient(90deg, rgba(18, 22, 32, 0.76) 0%, rgba(24, 31, 46, 0.42) 50%, rgba(18, 22, 32, 0.78) 100%) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(71, 166, 255, 0.28) !important;
  border-left: 4px solid #148eff !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 230, 175, 0.16) !important;
}

body:not([data-ui-theme="diablo"]) .wh-hero-news-card,
body:not([data-ui-theme="diablo"]) .wh-news-post-card,
body:not([data-ui-theme="diablo"]) .wh-side-panel,
body:not([data-ui-theme="diablo"]) .class-build-card {
  background: linear-gradient(165deg, rgba(20, 25, 36, 0.68) 0%, rgba(14, 18, 26, 0.78) 100%) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(71, 166, 255, 0.16) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 225, 160, 0.08) !important;
}

/* Top Crown Art inside Right Sidebar Cards in Battle.net Mode (Xal'atath & Alexstrasza) */
.bnet-panel-art-crown {
  position: relative;
  width: 100%;
  height: 86px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.bnet-seam-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  opacity: 0.82;
}

.bnet-art-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 23, 30, 0.1) 0%, rgba(26, 28, 35, 0.96) 100%);
}

/* Right Sidebar Minimalist 5-Artwork Gallery Panel */
.bnet-side-art-panel {
  overflow: hidden;
}

.bnet-art-badge {
  font-size: 10px;
  font-weight: 700;
  color: #68b5ff;
  background: rgba(41, 151, 255, 0.15);
  border: 1px solid rgba(41, 151, 255, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
}

.bnet-side-art-grid {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
  padding: 10px;
}

.bnet-art-poster-col {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  height: 176px;
}

.bnet-art-poster-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.bnet-art-poster-col:hover img {
  transform: scale(1.05);
}

.bnet-art-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 12, 18, 0.95) 100%);
  text-align: center;
}

.bnet-art-stack-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}

.bnet-art-mini-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  height: 85px;
}

.bnet-art-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.bnet-art-mini-card:hover {
  border-color: #2997ff;
}

.bnet-art-mini-card:hover img {
  transform: scale(1.06);
}

.bnet-art-mini-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 12, 18, 0.92) 100%);
}

/* Subtle Nexus Trio & Kalecgos Ambient Header Glow on Minimalist Game Pages in Battle.net Mode */
body:not([data-ui-theme="diablo"]) .ttm-game-panel {
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.88) 0%, rgba(15, 18, 26, 0.96) 100%),
    url('/assets/bnet/nexus-trio.webp') center top / cover no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

/* ============================================================================
   MINIMALIST CHESS STAGE OVERRIDES (MATCHES TIC-TAC-TOE MINIMALIST LAYOUT)
   ============================================================================ */
.ttm-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ttm-action-btn {
  height: 32px;
  padding: 0 11px;
  font-size: 11.5px;
  font-weight: 800;
}

.chess-min-game-panel {
  justify-content: space-between;
  overflow-y: auto;
}

.chess-min-board-frame {
  padding: 8px;
  border-radius: 12px;
}

.chess-minimal-stage .chess-board-8x8 {
  grid-template-columns: repeat(8, 48px);
  grid-template-rows: repeat(8, 48px);
}

.chess-minimal-stage .chess-piece-glyph {
  font-size: 33px;
}

@media (max-width: 640px) {
  .chess-minimal-stage .chess-board-8x8 {
    grid-template-columns: repeat(8, 38px);
    grid-template-rows: repeat(8, 38px);
  }
  .chess-minimal-stage .chess-piece-glyph {
    font-size: 25px;
  }
}


/* ============================================================================
   CHANGE NAME DIRECTLY UNDER NAME IN ACCOUNT DROPDOWN HEADER
   ============================================================================ */
.acc-bnet-change-name-under {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.acc-under-name-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 8px 3px 0;
  background: transparent;
  border: none;
  color: #8f96a3;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.14s ease;
}

.acc-under-name-edit-btn svg {
  width: 13.5px;
  height: 13.5px;
  stroke: currentColor;
  flex-shrink: 0;
}

.acc-under-name-edit-btn:hover,
.acc-under-name-edit-btn.active {
  color: #2997ff;
}

.acc-battletag-cancel-btn {
  height: 36px;
  width: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181b24;
  color: #8f96a3;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acc-battletag-cancel-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}


/* ============================================================================
   WOW CLASSIC ARMORY STAGE VIEW, PAPERDOLL GEAR & WOW ITEM TOOLTIPS
   ============================================================================ */
.armory-nav-pill {
  background: rgba(245, 185, 66, 0.2) !important;
  color: #ffd700 !important;
  border: 1px solid rgba(245, 185, 66, 0.45) !important;
}

.armory-topbar {
  border-left: 4px solid #f5b942 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.armory-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.armory-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.armory-search-input {
  width: 240px;
  padding-left: 34px !important;
  height: 38px;
}

.armory-select {
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(15, 18, 26, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
}

.armory-search-btn {
  height: 38px;
  padding: 0 16px !important;
  font-size: 13px !important;
}

.armory-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 16px 0;
  padding: 10px 16px;
  background: rgba(16, 18, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.armory-mode-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.armory-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.armory-mode-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.armory-mode-tab.active {
  background: rgba(245, 185, 66, 0.16);
  border-color: rgba(245, 185, 66, 0.65);
  color: #ffd700;
  box-shadow: 0 0 14px rgba(245, 185, 66, 0.2);
}

.armory-mode-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #f8fafc;
}

.armory-quick-Presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.armory-quick-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.armory-preset-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(135, 136, 238, 0.14);
  border: 1px solid rgba(135, 136, 238, 0.35);
  color: #dcd6f7;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.armory-preset-chip:hover,
.armory-preset-chip.active {
  background: rgba(135, 136, 238, 0.28);
  border-color: #8788ee;
  color: #ffffff;
}

.armory-ext-link {
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.armory-ext-link:hover {
  background: rgba(59, 130, 246, 0.24);
  color: #ffffff;
}

/* Search Results Grid */
.armory-section-header {
  margin-bottom: 12px;
}

.armory-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 4px 0;
}

.armory-section-sub {
  font-size: 13px;
  color: #94a3b8;
}

.armory-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.armory-res-card {
  background: rgba(18, 20, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.armory-res-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 185, 66, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.armory-res-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.armory-res-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.armory-res-avatar {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #3b82f6;
}

.armory-res-avatar-wrap.horde .armory-res-avatar {
  border-color: #ef4444;
}

.armory-res-lvl-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #111827;
  color: #ffd700;
  border: 1px solid #ffd700;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.armory-res-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.armory-res-name {
  font-size: 17px;
  font-weight: 800;
}

.armory-faction-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.armory-faction-pill.alliance {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.armory-faction-pill.horde {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.armory-res-guild {
  font-size: 12.5px;
  font-weight: 600;
  color: #f5b942;
  margin-top: 2px;
}

.armory-res-guild.muted {
  color: #64748b;
}

.armory-res-sub {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: 3px;
}

.armory-res-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.armory-realm-badge {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.armory-res-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.armory-inspect-btn {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* Character Profile Banner */
.armory-char-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(16, 20, 32, 0.96) 0%, rgba(22, 26, 38, 0.92) 100%);
  border: 1px solid rgba(245, 185, 66, 0.28);
  border-radius: 10px;
  margin-bottom: 16px;
}

.armory-char-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.armory-char-avatar-box {
  position: relative;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
}

.armory-char-avatar-img {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  border: 2px solid #f5b942;
  object-fit: cover;
}

.armory-char-lvl-pill {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #0f172a;
  color: #ffd700;
  border: 1.5px solid #ffd700;
  font-size: 12px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}

.armory-char-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.armory-char-name {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.armory-char-guild {
  font-size: 15px;
  font-weight: 700;
  color: #f5b942;
  text-decoration: none;
}

.armory-char-guild:hover {
  text-decoration: underline;
}

.armory-char-sub-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 4px;
}

.armory-char-banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.armory-stat-badge {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.armory-stat-badge.gold {
  border-color: rgba(245, 185, 66, 0.45);
}

.armory-stat-badge.pvp {
  border-color: rgba(168, 85, 247, 0.45);
}

.asb-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.asb-val {
  font-size: 14px;
  font-weight: 800;
  color: #ffd700;
}

/* Main Armory Grid: Paperdoll + Inspector/Stats */
.armory-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1220px) {
  .armory-main-grid {
    grid-template-columns: 1fr;
  }
}

.armory-paperdoll-panel {
  background: rgba(14, 16, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
}

.armory-paperdoll-grid {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .armory-paperdoll-grid {
    grid-template-columns: 1fr;
  }
}

.armory-slots-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.armory-slot-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(24, 27, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
  width: 100%;
}

.armory-slot-btn:hover,
.armory-slot-btn.selected {
  background: rgba(41, 151, 255, 0.16);
  border-color: rgba(245, 185, 66, 0.7);
  transform: translateY(-1px);
}

.armory-slot-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 2px solid #ffffff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0d13;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.armory-slot-icon-box.empty {
  border-color: rgba(255, 255, 255, 0.12);
  color: #475569;
  font-size: 16px;
}

.armory-slot-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.armory-slot-meta {
  min-width: 0;
  flex: 1;
}

.armory-slot-item-name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.armory-slot-item-name.muted {
  color: #64748b;
}

.armory-slot-sub {
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.armory-slot-enchant {
  color: #22c55e;
  font-weight: 600;
}

/* 3D Character Render Stage */
.armory-render-stage {
  position: relative;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0d1017;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  min-height: 440px;
  overflow: hidden;
}

.armory-render-vitals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.armory-vital-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.armory-vital-pill.health {
  background: rgba(22, 163, 74, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #4ade80;
}

.armory-vital-pill.mana {
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.55);
  color: #60a5fa;
}

.armory-render-figure-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  z-index: 1;
}

.armory-render-figure-img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.85));
}

.armory-weapons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  z-index: 2;
  margin-top: 8px;
}

/* Right Rail: Item Tooltip Inspector & Stats */
.armory-inspector-and-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.armory-inspector-box,
.armory-stats-card {
  background: rgba(14, 16, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.armory-box-header {
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f5b942;
}

/* Authentic WoW Tooltip Styling */
.armory-tt-card {
  padding: 14px 16px;
  background: #090b12;
  color: #f8fafc;
  font-size: 12.5px;
  line-height: 1.45;
}

.armory-tt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.armory-tt-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 2px solid #a335ee;
  object-fit: cover;
}

.armory-tt-name {
  font-size: 15px;
  font-weight: 800;
}

.armory-tt-meta-sub {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  gap: 6px;
}

.armory-tt-white {
  color: #ffffff;
}

.armory-tt-row-split {
  display: flex;
  justify-content: space-between;
  color: #ffffff;
}

.armory-tt-stat {
  color: #ffffff;
}

.armory-tt-green {
  color: #1eff00;
  margin-top: 2px;
}

.armory-tt-enchant {
  color: #1eff00;
  font-weight: 600;
  margin-top: 3px;
}

.armory-tt-flavor {
  color: #ffd100;
  font-style: italic;
  margin-top: 4px;
}

.armory-tt-set-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.armory-tt-set-title {
  color: #ffd100;
  font-weight: 700;
  margin-bottom: 4px;
}

.armory-tt-set-items {
  padding-left: 8px;
  margin-bottom: 6px;
}

.armory-tt-set-piece.equipped {
  color: #ffff98;
}

.armory-tt-set-piece.missing {
  color: #64748b;
}

.armory-tt-set-bonus.active {
  color: #1eff00;
}

.armory-tt-set-bonus.inactive {
  color: #64748b;
}

.armory-tt-price {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.coin-gold { color: #ffd700; font-weight: 700; }
.coin-silver { color: #cbd5e1; font-weight: 700; }
.coin-copper { color: #d97706; font-weight: 700; }

.armory-tt-footer-actions {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.armory-tt-wh-link {
  display: inline-block;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.armory-tt-wh-link:hover {
  text-decoration: underline;
}

/* Floating Tooltip on Hover */
.armory-floating-tooltip {
  position: fixed;
  z-index: 100000;
  width: 340px;
  pointer-events: none;
  border: 1.5px solid rgba(245, 185, 66, 0.75);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.92);
  overflow: hidden;
}

.armory-floating-tooltip .armory-tt-footer-actions {
  display: none;
}

/* Resistances & Stats */
.armory-resist-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px;
}

.armory-resist-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.armory-resist-pill strong {
  font-size: 15px;
  margin-top: 2px;
}

.armory-resist-pill.arcane { border-color: rgba(192, 132, 252, 0.4); color: #d8b4fe; }
.armory-resist-pill.fire { border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; }
.armory-resist-pill.nature { border-color: rgba(74, 222, 128, 0.4); color: #86efac; }
.armory-resist-pill.frost { border-color: rgba(56, 189, 248, 0.4); color: #7dd3fc; }
.armory-resist-pill.shadow { border-color: rgba(168, 85, 247, 0.4); color: #c084fc; }

.armory-stats-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
}

.armory-stat-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

.armory-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.armory-stat-row span {
  color: #cbd5e1;
}

.armory-stat-row strong {
  color: #f8fafc;
}

.armory-stat-row strong.stat-bonus {
  color: #22c55e;
}

.armory-stat-row strong small {
  color: #94a3b8;
  font-weight: 500;
}

/* Bottom Grid: Sets & Talents */
.armory-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .armory-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.armory-sets-list {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.armory-set-card {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 185, 66, 0.28);
}

.armory-set-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 6px;
}

.armory-set-bonus-line {
  font-size: 12px;
  margin-top: 3px;
}

.armory-set-bonus-line.active {
  color: #22c55e;
}

.armory-set-bonus-line.inactive {
  color: #64748b;
}

.armory-talents-grid {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.armory-talent-tree-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
}

.armory-talent-tree-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 13.5px;
}

.armory-talent-pts-pill {
  font-size: 11px;
  font-weight: 700;
  color: #ffd700;
  background: rgba(245, 185, 66, 0.16);
  padding: 2px 8px;
  border-radius: 999px;
}

.armory-talent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
}

.armory-talent-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.armory-talent-chip img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(245, 185, 66, 0.5);
  flex-shrink: 0;
}

.armory-talent-chip-info {
  min-width: 0;
  flex: 1;
}

.armory-talent-chip-name {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.armory-talent-chip-desc {
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.armory-talent-rank-badge {
  font-size: 11px;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 1px 6px;
  border-radius: 4px;
}


/* ============================================================================
   ARMORY SCROLL FIX, FULL CHARACTER RENDER FRAMING, FOOTER & DIABLO FONTS
   ============================================================================ */
#armoryStageView.armory-stage-view {
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: calc(100vh - 68px) !important;
  max-height: calc(100vh - 68px) !important;
  min-height: 0 !important;
  padding: 16px 24px 64px 24px !important;
  scroll-behavior: smooth;
}

#armoryStageView.armory-stage-view.hidden {
  display: none !important;
}

/* Character Render Framing (1600x1200 Blizzard PNG has character in center y:32%..82%) */
.armory-render-stage {
  min-height: 520px !important;
  padding: 12px 14px 14px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.armory-render-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 4;
}

.armory-render-view-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.armory-view-toggle-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(12, 8, 10, 0.82);
  border: 1px solid rgba(200, 168, 107, 0.45);
  color: #f5e6c8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.armory-view-toggle-btn:hover {
  background: rgba(153, 27, 27, 0.55);
  border-color: #ffd700;
  color: #ffffff;
}

.armory-view-toggle-btn.gold {
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.75) 0%, rgba(92, 15, 15, 0.9) 100%);
  border-color: #d4af37;
  color: #ffd700;
}

.armory-main-grid {
  grid-template-columns: 1.48fr 1fr !important;
}

.armory-paperdoll-grid {
  grid-template-columns: 205px minmax(280px, 1fr) 205px !important;
}

@media (max-width: 1220px) {
  .armory-main-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .armory-paperdoll-grid {
    grid-template-columns: 1fr !important;
  }
}

.armory-render-figure-wrap {
  position: relative !important;
  flex: 0 0 430px !important;
  width: 100% !important;
  min-height: 430px !important;
  height: 430px !important;
  max-height: 430px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  cursor: zoom-in !important;
  border-radius: 8px !important;
  background: radial-gradient(ellipse at 50% 62%, rgba(200, 168, 107, 0.14) 0%, rgba(0, 0, 0, 0) 70%) !important;
}

.armory-render-shadow-img {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  max-width: 280px;
  opacity: 0.78;
  pointer-events: none;
  z-index: 1;
}

.armory-render-figure-img.zoom-fitted {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  height: 760px !important;
  width: 1013px !important;
  max-width: none !important;
  max-height: none !important;
  transform: translate(-49%, -57%) !important;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.92));
  transition: transform 0.22s ease;
  z-index: 2;
}

.armory-render-figure-wrap:hover .armory-render-figure-img.zoom-fitted {
  transform: translate(-49%, -57%) scale(1.03) !important;
}

.armory-render-figure-img.zoom-full {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 410px !important;
  object-fit: contain !important;
  transform: none !important;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.9));
  transition: transform 0.22s ease;
  z-index: 2;
}

/* Full-Screen Character Render Lightbox Modal */
.armory-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100005;
  background: rgba(5, 3, 4, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.armory-lightbox-Dialog {
  width: min(1240px, 95vw);
  max-height: 92vh;
  background: #0e0809;
  border: 2px solid #c8a86b;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.96), 0 0 32px rgba(185, 28, 28, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.armory-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.48) 0%, rgba(18, 9, 11, 0.96) 100%);
  border-bottom: 1px solid rgba(200, 168, 107, 0.4);
}

.armory-lightbox-title {
  font-size: 16px;
  font-weight: 800;
  color: #f5e6c8;
}

.armory-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.armory-lightbox-close-btn {
  padding: 6px 14px !important;
  font-size: 12.5px !important;
}

.armory-lightbox-body {
  flex: 1;
  min-height: 540px;
  max-height: calc(92vh - 64px);
  background-color: #090506;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 16px;
}

.armory-lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 96px);
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.95));
}

/* ARMORY PAGE FOOTER */
.armory-page-footer {
  margin-top: 28px;
  padding: 22px 24px 18px 24px;
  border-radius: 10px;
  background:
    linear-gradient(165deg, rgba(22, 10, 13, 0.96) 0%, rgba(10, 5, 7, 0.99) 100%),
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt77f4425de611b362/blta0ca93364e48293c/646440a2e9738c4b9d747a04/leather-texture_800.webp?auto=webp') center/380px;
  border: 1px solid rgba(200, 168, 107, 0.38);
  border-top: 2px solid #c8a86b;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
}

.armory-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(200, 168, 107, 0.2);
}

.armory-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 620px;
}

.armory-footer-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
  flex-shrink: 0;
}

.armory-footer-title {
  font-size: 15px;
  font-weight: 800;
  color: #f5e6c8;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.armory-footer-desc {
  font-size: 13.5px;
  color: #c7b69e;
  line-height: 1.45;
  margin: 0;
}

.armory-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.armory-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 6px;
  background:
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt9771439ea9bff1d7/628843063e3d224456bf08ef/d4-button-secondary-tile-base.jpg?auto=webp') center/cover,
    rgba(24, 12, 14, 0.9);
  border: 1px solid rgba(200, 168, 107, 0.42);
  color: #f5e6c8;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.armory-footer-btn:hover {
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}

.armory-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  font-size: 12.5px;
  color: #a89882;
}

/* ============================================================================
   DIABLO IV SANCTUARY TYPOGRAPHY & THEME OVERRIDES FOR ARMORY PAGE
   (Exocet Blizzard OT / Old Fenris for Headings/Buttons, Alegreya Sans D4 for Descriptions)
   ============================================================================ */
#armoryStageView,
#armoryStageView p,
#armoryStageView span,
#armoryStageView div,
#armoryStageView input,
#armoryStageView select,
.armory-tt-card,
.armory-tt-stat,
.armory-tt-green,
.armory-tt-enchant,
.armory-tt-flavor,
.armory-tt-white,
.armory-tt-set-piece,
.armory-tt-set-bonus,
.armory-slot-sub,
.armory-talent-chip-desc,
.armory-footer-desc,
.armory-footer-bottom {
  font-family: 'Alegreya Sans D4', 'Segoe UI', sans-serif !important;
}

#armoryStageView h1,
#armoryStageView h2,
#armoryStageView h3,
#armoryStageView .armory-char-name,
#armoryStageView .armory-section-title,
#armoryStageView .armory-box-header,
#armoryStageView .armory-box-header span,
#armoryStageView .armory-mode-tab,
#armoryStageView .armory-mode-tab span,
#armoryStageView .armory-preset-chip,
#armoryStageView .armory-ext-link,
#armoryStageView .armory-search-btn,
#armoryStageView .armory-search-btn span,
#armoryStageView .armory-inspect-btn,
#armoryStageView .armory-refresh-char-btn,
#armoryStageView .armory-view-toggle-btn,
#armoryStageView .armory-slot-item-name,
#armoryStageView .armory-tt-name,
#armoryStageView .armory-tt-set-title,
#armoryStageView .armory-set-card-title,
#armoryStageView .armory-talent-tree-header,
#armoryStageView .armory-talent-tree-header strong,
#armoryStageView .armory-talent-chip-name,
#armoryStageView .armory-stat-group-title,
#armoryStageView .armory-res-name,
#armoryStageView .asb-val,
#armoryStageView .armory-footer-title,
#armoryStageView .armory-footer-btn,
#armoryStageView .armory-lightbox-title {
  font-family: 'Exocet Blizzard OT', 'Old Fenris', Georgia, serif !important;
  letter-spacing: 0.5px !important;
}

/* Enhance readability of descriptions & tooltips in Diablo font */
.armory-tt-card {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.armory-slot-sub {
  font-size: 12px !important;
}

.armory-talent-chip-desc {
  font-size: 12px !important;
  color: #c7b69e !important;
}

.armory-stat-row {
  font-size: 13.5px !important;
}

/* Diablo IV Sanctuary Obsidian & Blood-Gold Panel Styling on Armory */
body[data-ui-theme="diablo"] .armory-quick-bar,
body[data-ui-theme="diablo"] .armory-char-banner,
body[data-ui-theme="diablo"] .armory-paperdoll-panel,
body[data-ui-theme="diablo"] .armory-inspector-box,
body[data-ui-theme="diablo"] .armory-stats-card,
body[data-ui-theme="diablo"] .armory-res-card {
  background:
    linear-gradient(165deg, rgba(24, 11, 14, 0.95) 0%, rgba(11, 6, 8, 0.98) 100%),
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt77f4425de611b362/blta0ca93364e48293c/646440a2e9738c4b9d747a04/leather-texture_800.webp?auto=webp') center/380px !important;
  border: 1px solid rgba(200, 168, 107, 0.38) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 215, 130, 0.1) !important;
}

body[data-ui-theme="diablo"] .armory-box-header {
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.55) 0%, rgba(24, 10, 12, 0.92) 100%) !important;
  border-bottom: 1px solid rgba(200, 168, 107, 0.38) !important;
  color: #f5e6c8 !important;
}

body[data-ui-theme="diablo"] .armory-slot-btn {
  background: rgba(18, 9, 11, 0.92) !important;
  border: 1px solid rgba(200, 168, 107, 0.24) !important;
}

body[data-ui-theme="diablo"] .armory-slot-btn:hover,
body[data-ui-theme="diablo"] .armory-slot-btn.selected {
  background: linear-gradient(90deg, rgba(153, 27, 27, 0.38) 0%, rgba(36, 14, 17, 0.95) 100%) !important;
  border-color: #ffd700 !important;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.45) !important;
}

body[data-ui-theme="diablo"] .armory-mode-tab,
body[data-ui-theme="diablo"] .armory-preset-chip {
  background:
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt9771439ea9bff1d7/628843063e3d224456bf08ef/d4-button-secondary-tile-base.jpg?auto=webp') center/cover,
    rgba(24, 12, 14, 0.9) !important;
  border: 1px solid rgba(200, 168, 107, 0.42) !important;
  color: #e6d5b8 !important;
}

body[data-ui-theme="diablo"] .armory-mode-tab.active,
body[data-ui-theme="diablo"] .armory-preset-chip.active {
  background:
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt9c12f249ac15c7ec/blt3fc514970a2e1182/628853a9916fe131b16a8a1a/d4-button-primary-tile-base.jpg?auto=webp') center/cover,
    linear-gradient(180deg, #991b1b 0%, #5c0f0f 100%) !important;
  border-color: #ffd700 !important;
  color: #fff3db !important;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.55) !important;
}


/* ============================================================================
   ARMORY HERO PLACEHOLDER SECTION (DIABLO IV SANCTUARY & CLASSIC ARMORY STYLE)
   ============================================================================ */
.armory-placeholder-section {
  margin-top: 14px;
}

.armory-placeholder-hero {
  position: relative;
  padding: 46px 32px 38px 32px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(185, 28, 28, 0.28) 0%, rgba(12, 7, 9, 0.96) 68%),
    url('https://blz-contentstack-images.akamaized.net/v3/assets/blt77f4425de611b362/blta0ca93364e48293c/646440a2e9738c4b9d747a04/leather-texture_800.webp?auto=webp') center/380px;
  border: 1.5px solid rgba(200, 168, 107, 0.45);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 215, 130, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.armory-placeholder-crest-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.armory-placeholder-rune-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 28px rgba(220, 38, 38, 0.45), inset 0 0 18px rgba(212, 175, 55, 0.25);
  animation: armoryRuneSpin 24s linear infinite;
}

@keyframes armoryRuneSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.armory-placeholder-crest-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 27, 27, 0.65) 0%, rgba(16, 8, 10, 0.96) 100%);
  border: 2px solid #c8a86b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85);
  z-index: 2;
}

.armory-placeholder-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #f87171;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#armoryStageView .armory-placeholder-title,
#armoryStageView .apc-title,
#armoryStageView .armory-placeholder-focus-btn,
#armoryStageView .armory-placeholder-focus-btn span,
#armoryStageView .armory-placeholder-ext-btn {
  font-family: 'Exocet Blizzard OT', 'Old Fenris', Georgia, serif !important;
  letter-spacing: 0.6px !important;
}

.armory-placeholder-title {
  font-size: 28px;
  font-weight: 800;
  color: #f5e6c8;
  text-shadow: 0 2px 16px rgba(185, 28, 28, 0.75);
  margin: 0 0 12px 0;
}

.armory-placeholder-subtitle {
  max-width: 780px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #d6c7b2;
  margin: 0 0 24px 0;
}

.armory-placeholder-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.armory-placeholder-focus-btn {
  height: 44px;
  padding: 0 24px !important;
  font-size: 14px !important;
}

.armory-placeholder-ext-btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px !important;
  font-size: 13.5px !important;
}

.armory-placeholder-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1120px;
  text-align: left;
}

@media (max-width: 980px) {
  .armory-placeholder-features-grid {
    grid-template-columns: 1fr;
  }
}

.armory-placeholder-card {
  padding: 20px 22px;
  border-radius: 10px;
  background: rgba(15, 8, 10, 0.88);
  border: 1px solid rgba(200, 168, 107, 0.32);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.armory-placeholder-card:hover {
  transform: translateY(-3px);
  border-color: #d4af37;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.88), 0 0 18px rgba(185, 28, 28, 0.32);
}

.apc-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(153, 27, 27, 0.32);
  border: 1px solid rgba(200, 168, 107, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.apc-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #f5e6c8;
  margin: 0 0 8px 0;
}

.apc-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #c7b69e;
  margin: 0;
}
