/* ========================================================
   CHAOS MEN GUILD ROSTER & TRACKER
   Sharp Modern Dark Mode Design System with Neon Accents
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-root: #060608;
  --bg-surface: #0e0e14;
  --bg-card: #13131b;
  --bg-card-hover: #1a1a24;
  --bg-input: #09090d;
  --border-subtle: #22222d;
  --border-strong: #323244;
  
  --text-primary: #f8f8fc;
  --text-secondary: #9da0b5;
  --text-muted: #626577;
  
  /* Electric Neon Accents */
  --neon-green: #00ff88;
  --neon-green-glow: rgba(0, 255, 136, 0.3);
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.25);
  --neon-amber: #ffb700;
  --neon-purple: #c084fc;
  --neon-red: #ff2a5f;

  --accent-primary: #00ff88;
  --accent-primary-hover: #1aff95;
  --accent-blue: #00f0ff;
  --accent-amber: #ffb700;
  --accent-purple: #c084fc;
  --accent-red: #ff2a5f;

  /* SHARP CORNERS - ZERO PILLS / ROUNDED BUBBLES */
  --radius-xs: 0px;
  --radius-sm: 1px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 3px;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 25px -4px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-root);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* NAVBAR HEADER */
.app-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 6, 8, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.brand-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 255, 136, 0.08);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 0px;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.badge-dot.neon-dot {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.sharp-pill {
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

/* MAIN CONTAINER */
.page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}

/* HERO BANNER SECTION (SHORTER BANNER ~1/3RD HEIGHT) */
.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  position: relative;
}

.hero-banner-container {
  position: relative;
  width: 100%;
  height: 215px; /* Perfect framing for WoW Forever emblem and all 5 characters */
  background: #000;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 8, 0.0) 0%, rgba(6, 6, 8, 0.4) 60%, rgba(6, 6, 8, 0.85) 100%);
  pointer-events: none;
}

.hero-banner-brand {
  position: absolute;
  bottom: 10px;
  left: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  background: rgba(6, 6, 8, 0.6);
  padding: 4px 10px;
  border-left: 2px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.hero-guild-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 2px 4px rgba(0,0,0,0.9);
}

.hero-guild-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 125, 10, 0.6), 0 3px 6px rgba(0,0,0,0.95);
}

/* LAUNCH STRIP (CLEAN HORIZONTAL BAR: LAUNCH DATE PST | COUNTDOWN | QUICK LINKS) */
.launch-strip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--neon-green);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.launch-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.launch-date-text {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.launch-strip-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.launch-strip-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 850px) {
  .launch-strip {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .launch-strip-left, .launch-strip-center, .launch-strip-right {
    justify-content: center;
  }
}

/* SQUARE WOW-THEMED QUICK LINKS */
.square-quick-link {
  width: 28px;
  height: 28px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: all 0.15s ease;
}

.square-quick-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.square-quick-link:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.square-quick-link.discord-link {
  color: #5865F2;
}

.square-quick-link.discord-link:hover {
  border-color: #5865F2;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.15);
  color: #ffffff;
}

.discord-icon-svg {
  display: block;
}

/* PATCH CHANGES BUTTON */
.btn-patch-notes {
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-patch-notes:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

.patch-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 0px;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
}

.countdown-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 0px;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.countdown-bar-digits {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-chip {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.cd-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.02em;
}

.cd-lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--neon-green);
  text-transform: uppercase;
}

.cd-sep {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
}

/* GUILD INTEL: LARGE TOP SECTION */
.guild-intel-section {
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.intel-card-header {
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.intel-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intel-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.class-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
}

@media (max-width: 1100px) {
  .class-breakdown-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 650px) {
  .class-breakdown-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 420px) {
  .class-breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.class-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--class-col);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  position: relative;
  cursor: pointer;
}

.class-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--class-col);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 12px var(--class-col);
}

.class-stat-card.has-picks {
  background: rgba(255, 255, 255, 0.02);
}

.class-stat-card.zero-picks {
  opacity: 0.55;
}

.class-stat-card.zero-picks:hover {
  opacity: 1;
}

.class-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 5px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.class-stat-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.class-stat-count {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  margin: 2px 0 3px 0;
}

.class-stat-card.has-picks .class-stat-count {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.class-stat-sub {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* CLASS STAT CARD BREAKDOWNS (SPECS & RACES) */
.class-stat-breakdowns {
  width: 100%;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.breakdown-sub-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.breakdown-sub-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.mini-chip-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
}

.mini-breakdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 1px;
  padding: 1px 3px;
  font-size: 10px;
  transition: all 0.1s ease;
}

.mini-breakdown-chip.is-active {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.mini-breakdown-chip.is-zero {
  opacity: 0.35;
}

.mini-chip-img {
  width: 14px;
  height: 14px;
  border-radius: 1px;
  object-fit: cover;
  display: block;
}

.mini-chip-val {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.mini-chip-empty {
  font-size: 10px;
  color: var(--text-muted);
}

/* ENLIST TOGGLE BAR & BUTTON */
.enlist-toggle-bar {
  margin-bottom: 16px;
  display: flex;
  justify-content: flex-start;
}

.btn-toggle-enlist {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--neon-green);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn-toggle-enlist:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.25);
  transform: translateY(-1px);
}

.btn-toggle-enlist.is-open {
  background: var(--bg-card);
  border-left-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.enlist-toggle-symbol {
  font-size: 16px;
  font-weight: 900;
  color: var(--neon-green);
  line-height: 1;
}

.btn-toggle-enlist.is-open .enlist-toggle-symbol {
  color: var(--neon-cyan);
}

.btn-close-enlist {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-close-enlist:hover {
  border-color: var(--neon-red);
  color: var(--neon-red);
  background: rgba(255, 42, 95, 0.1);
}

/* CHARACTER ENLISTMENT CARD */
.enlist-card {
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--neon-green);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.enlist-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.enlist-main-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 3px 0;
}

.enlist-main-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* BALANCED 4x2 FORM GRID */
.form-grid-balanced {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 960px) {
  .form-grid-balanced {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .form-grid-balanced {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px 6px 3px 4px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.input-with-icon:focus-within {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 1px var(--neon-green);
}

.field-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-select, .form-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  padding: 5px 2px;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-input-plain {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.form-input-plain:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 1px var(--neon-green);
}

.form-actions-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.btn-primary-neon {
  background: var(--neon-green);
  color: #000;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.12s ease;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

.btn-primary-neon:hover {
  background: #2aff9d;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.5);
  transform: translateY(-1px);
}

.btn-primary-neon:active {
  transform: translateY(0);
}

/* SECTION CARDS */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.card-body {
  padding: 18px;
}

/* SIDEBAR NOTICES */
.motd-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.motd-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.motd-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.motd-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.motd-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.stat-pills-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.stat-card-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
}

.stat-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ROSTER TABLE */
.roster-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.table-header-flex {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card);
}

.table-wrapper {
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.modern-table th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.modern-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.modern-table tbody tr {
  transition: background 0.12s ease;
}

.modern-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.char-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  gap: 2px;
}

.char-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.table-icon-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table-icon-lg {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}

.table-icon-lg:hover {
  transform: scale(1.1);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  z-index: 2;
}

.table-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.12s ease;
}

.table-icon-link:hover {
  transform: translateY(-2px);
}

/* RACIALS ICONS CLUSTER & PREVIEWS */
.table-racials-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.racial-icon {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: #000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}

.racial-icon:hover {
  transform: scale(1.18);
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.65);
  z-index: 5;
}

.form-racials-preview {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-sm);
  display: none;
}

.form-racials-preview.has-racials {
  display: block;
}

.form-racials-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffd700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-racials-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.form-racial-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.12s ease;
}

.form-racial-item:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
}

.form-racial-icon {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.form-racial-name {
  font-size: 11px;
  font-weight: 700;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PROFESSIONS ICONS CLUSTER */
.table-prof-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-prof-primary-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table-prof-sec-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.prof-icon-pri {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.2);
}

.prof-icon-pri:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  transform: scale(1.12);
}

.table-icon-sm {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}

.table-icon-sm:hover {
  transform: scale(1.15);
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  z-index: 2;
}

/* INSTANT WOWHEAD-STYLE FLOATING TOOLTIP */
.wow-floating-tooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  background: rgba(10, 10, 14, 0.96);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 240, 255, 0.3);
  border-radius: 3px;
  padding: 8px 12px;
  min-width: 170px;
  max-width: 270px;
  font-family: var(--font-sans);
  backdrop-filter: blur(8px);
  transition: opacity 0.06s ease;
}

.wow-floating-tooltip .tt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wow-floating-tooltip .tt-icon {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.wow-floating-tooltip .tt-titles {
  display: flex;
  flex-direction: column;
}

.wow-floating-tooltip .tt-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.wow-floating-tooltip .tt-type {
  font-size: 10px;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wow-floating-tooltip .tt-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.wow-floating-tooltip .tt-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #f7a61b; /* WoWhead signature gold/orange */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4px;
  margin-top: 3px;
}

.wow-floating-tooltip .tt-wh-logo {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.wow-floating-tooltip .tt-ext {
  font-size: 11px;
  margin-left: auto;
}

.icon-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-icon-img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profession-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.prof-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.prof-tag-pri {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
  color: #c4f4f9;
  font-weight: 600;
}

.prof-tag-sec {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
}

.level-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: inline-block;
}

.dungeon-badge-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dungeon-pill-main {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  display: inline-block;
  text-align: center;
}

.dungeon-pill-main.complete {
  background: rgba(0, 255, 136, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.35);
}

.dungeon-pill-main.progress {
  background: rgba(255, 183, 0, 0.12);
  color: var(--neon-amber);
  border: 1px solid rgba(255, 183, 0, 0.35);
}

.dungeon-pill-main.none {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.dungeon-sub-text {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-danger {
  background: rgba(255, 42, 95, 0.08);
  border: 1px solid rgba(255, 42, 95, 0.25);
  color: var(--neon-red);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-danger:hover {
  background: rgba(255, 42, 95, 0.2);
  border-color: var(--neon-red);
  box-shadow: 0 0 8px rgba(255, 42, 95, 0.4);
}

.btn-danger-icon {
  background: rgba(255, 42, 95, 0.08);
  border: 1px solid rgba(255, 42, 95, 0.25);
  color: var(--neon-red);
  font-size: 13px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-danger-icon:hover {
  background: rgba(255, 42, 95, 0.25);
  border-color: var(--neon-red);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.5);
  transform: scale(1.05);
}

.btn-edit-icon {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--neon-cyan);
  font-size: 13px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-edit-icon:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  transform: scale(1.05);
}

.table-actions-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* SECONDARY PROFESSIONS MULTI-CHOICE CHIPS */
.sec-prof-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  min-height: 38px;
  flex-wrap: wrap;
}

.sec-prof-checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 3px 7px;
  cursor: pointer;
  user-select: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.12s ease;
}

.sec-prof-checkbox-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.sec-prof-checkbox-chip input[type="checkbox"] {
  accent-color: var(--neon-cyan);
  cursor: pointer;
  width: 13px;
  height: 13px;
  margin: 0;
}

.chip-trade-img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

/* MODERN MODAL DIALOG */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--neon-green);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-char-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.modal-tabs {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4px 12px 0 12px;
  gap: 4px;
}

.tab-pill {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-pill:hover {
  color: var(--text-primary);
}

.tab-pill.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* DUNGEON TRACKER STYLES */
.dungeon-category-header {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dungeon-category-header:first-child {
  margin-top: 0;
}

.dungeon-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 650px) {
  .dungeon-grid-modern {
    grid-template-columns: 1fr;
  }
}

.dungeon-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.dungeon-item-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.dungeon-item-card.completed {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.35);
}

.dungeon-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dungeon-name-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.dungeon-meta-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
}

.modern-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* SIMC PARSER STYLES */
.simc-textarea-modern {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
}

.simc-textarea-modern:focus {
  border-color: var(--accent-primary);
}

.simc-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px 0;
  flex-wrap: wrap;
}

.simc-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* GEAR VIEW */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.gear-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.gear-slot-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gear-name-text {
  font-size: 13px;
  font-weight: 600;
  color: #c084fc; /* Epic purple */
}

/* FOOTER */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* PATCH NOTES MODAL & CLASS BALANCE STYLES */
.patch-modal-dialog {
  max-width: 860px;
  border-top: 2px solid var(--neon-cyan);
}

.patch-modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.patch-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.patch-modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.patch-class-tabs {
  display: flex;
  overflow-x: auto;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4px 12px 0;
  gap: 4px;
}

.patch-class-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s ease;
  white-space: nowrap;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.patch-class-tab img {
  width: 16px;
  height: 16px;
  border-radius: 1px;
}

.patch-class-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.patch-class-tab.active {
  color: #ffffff;
  border-bottom-color: var(--tab-col, var(--neon-cyan));
  background: rgba(255, 255, 255, 0.04);
}

/* CLASS GUIDES HEADER IN MODAL */
.class-guides-banner {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.guides-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

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

.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.12s ease;
}

.guide-chip img {
  width: 16px;
  height: 16px;
  border-radius: 1px;
  object-fit: contain;
}

.guide-chip .ext-arrow {
  font-size: 11px;
  color: var(--text-muted);
}

.guide-chip:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}

/* PATCH NOTES LIST */
.patch-notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.patch-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color 0.12s ease;
}

.patch-item-card:hover {
  border-color: var(--border-strong);
}

.patch-item-card.is-buff {
  border-left: 3px solid var(--neon-green);
}

.patch-item-card.is-nerf {
  border-left: 3px solid var(--neon-red);
}

.patch-item-card.is-change {
  border-left: 3px solid var(--neon-cyan);
}

.patch-item-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.patch-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.patch-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.patch-spell-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.patch-tag {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 1px;
}

.patch-tag.buff {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.patch-tag.nerf {
  background: rgba(255, 42, 95, 0.15);
  color: var(--neon-red);
  border: 1px solid rgba(255, 42, 95, 0.4);
}

.patch-tag.change {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.patch-item-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}
