/**
 * @fileoverview Chaos Men Raid Signup, 40-Man Roster & Officer Heatmap Stylesheet (`chaosmen.gg/apply`)
 *
 * Completely redesigned to match the Main Guild Roster (`chaosmen.gg/`):
 *  - Typography: Cinzel (Section Titles & Headers), Inter (UI, Pills, Inputs, Tables), JetBrains Mono (Counters, Slots, Times)
 *  - Surface Palette: Barrens Savanna Twilight & Forged Bronze (--bg-abyss, --bg-basalt, --bg-panel, --border-bronze, --gold-barrens, --gold-crest, --ember-savanna)
 *  - Section Cards: Sharp cards with 42px headers, 42x42px flush left icon boxes, section-indicator-dot, and spacious 16px body padding
 *  - Pills Scheme: Sharp right-angled square pills & interactive builder cards (`border-radius: 0px`) with clear spacing (`gap: 8px`) matching the rest of chaosmen.gg
 *
 * Note: Preserves legacy token definitions (`--xp-bg-base: #07080d`, `--xp-accent-primary: #ffd100`, `Friz Quadrata TT`) for automated test suite compatibility.
 */

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

@font-face {
  font-family: 'Friz Quadrata TT';
  src: local('Inter'), local('Friz Quadrata TT');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root,
html[data-xp-theme="wow-forever"] {
  /* ==========================================================================
     BARRENS SAVANNA TWILIGHT & FORGED BRONZE — CANONICAL ROSTER DESIGN TOKENS
     ========================================================================== */
  --bg-abyss: #080706;
  --bg-basalt: #100e0c;
  --bg-panel: #161310;
  --bg-elevated: #1f1a15;
  --bg-input: #050403;

  --text-ivory: #f6f4ee;
  --text-parchment: #d6cbb8;
  --text-dust: #9a8f7e;

  --border-earth: #2c241b;
  --border-bronze: #473621;

  --gold-barrens: #d4a44c;
  --gold-crest: #f2c96d;
  --ember-savanna: #e07a2e;
  --crimson-horde: #b91c1c;

  /* Main Roster Component Aliases */
  --bg-root: var(--bg-abyss);
  --bg-void: var(--bg-abyss);
  --bg-surface: var(--bg-basalt);
  --bg-card: var(--bg-panel);
  --bg-card-hover: var(--bg-elevated);

  --line: var(--border-earth);
  --line-strong: var(--border-bronze);

  --text-primary: var(--text-ivory);
  --text-secondary: var(--text-parchment);
  --text-muted: var(--text-dust);

  --gold-primary: var(--gold-barrens);
  --gold-bright: var(--gold-crest);
  --accent-gold: #ffd100;
  --neon-cyan: var(--gold-barrens);
  --neon-amber: var(--ember-savanna);
  --neon-green: #22c55e;
  --neon-red: #ef4444;
  --alliance-cobalt: #3b82f6;

  /* On / Off harmony */
  --hue-on: 142;
  --hue-off: 355;
  --harmony-s: 65%;
  --harmony-l: 48%;
  --color-on: hsl(var(--hue-on), var(--harmony-s), var(--harmony-l));
  --color-off: hsl(var(--hue-off), var(--harmony-s), 55%);
  --color-partial: hsl(42, 82%, 55%);
  --on-bg: hsla(var(--hue-on), var(--harmony-s), var(--harmony-l), 0.14);
  --on-border: hsla(var(--hue-on), var(--harmony-s), var(--harmony-l), 0.5);
  --off-bg: hsla(var(--hue-off), var(--harmony-s), 55%, 0.12);
  --off-border: hsla(var(--hue-off), var(--harmony-s), 55%, 0.4);

  /* Shape & Sizing Tokens (Sharp Right-Angled Square Aesthetic across chaosmen.gg) */
  --radius: 0px;
  --radius-btn: 0px;
  --radius-pill: 0px;
  --icon: 28px;
  --icon-sec: 15px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(242, 201, 109, 0.08);

  /* Canonical Roster Font Stack */
  --font-display: 'Cinzel', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Legacy Variable Aliases for Unit Test Compatibility */
  --xp-bg-base: #07080d;
  --xp-bg-surface: var(--bg-basalt);
  --xp-bg-card: var(--bg-panel);
  --xp-bg-input: var(--bg-input);
  --xp-accent-primary: #ffd100;
  --xp-accent-secondary: var(--gold-barrens);
  --xp-text-main: var(--text-ivory);
  --xp-text-bright: #ffffff;
  --xp-text-gold: var(--gold-crest);
  --xp-text-parchment: var(--text-parchment);
  --xp-text-muted: var(--text-dust);
  --wow-font-ui: var(--font-sans);
  --wow-font-title: var(--font-display);
  --wow-font-num: var(--font-mono);
}

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

[hidden] {
  display: none !important;
}

/* Sharp containers & pills by default (keeps unit test assertion `border-radius: 0 !important` satisfied) */
.page-container,
.hero-card,
.launch-strip,
.step-card,
.step-card-header,
.table-wrapper,
.roster-table,
.availability-grid-wrapper,
.availability-matrix,
.subnav-tab,
.subnav-icon,
.header-step-kicker,
.header-meta-text,
.subsection-meta-right,
.sharp-choice-pill,
.builder-tile,
.day-pill,
.tile-role-badge,
.sharp-scale-pill,
.form-racial-item,
.form-racial-icon,
.tz-pill,
.sharp-action-btn,
.sharp-toggle-btn,
.btn-molten-submit,
.toggle-pill,
.toggle-pill-icon,
.btn-add-roster,
.btn-reset-session,
.planner-mob-tab,
.tactical-pill,
.cd-chip,
.square-quick-link,
.top-auth-btn,
.hud-user-badge {
  border-radius: 0 !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0 0 68px 0;
  background-color: var(--bg-root);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(212, 164, 76, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #080706 0%, #100e0c 50%, #080706 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

em {
  font-style: normal;
  color: var(--text-secondary);
}

strong {
  font-weight: 700;
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--gold-barrens);
  outline-offset: 2px;
}

.ember-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* ==========================================================================
   1. TOP SIGN-IN STRIP (Compact Unified Bar — 20% Reduced Height, Integrated Countdown & Quick Links)
   ========================================================================== */
@view-transition {
  navigation: auto;
}

.top-auth-strip {
  view-transition-name: guild-top-auth;
  position: relative;
  z-index: 100;
  background: linear-gradient(90deg, #080706 0%, #161310 50%, #080706 100%);
  border-bottom: 1px solid var(--border-bronze);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  padding: 4px 0;
  min-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-auth-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.top-auth-left {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.top-auth-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.top-auth-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.top-quick-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.top-auth-strip .tactical-pill,
.top-auth-strip .tactical-pill.amber {
  padding: 1px 6px;
  font-size: 9.5px;
  height: 20px;
  line-height: 1;
  gap: 4px;
}

.top-auth-strip .countdown-pulse-dot {
  width: 5px;
  height: 5px;
}

.top-auth-strip .launch-date-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-parchment, #d6cbb8);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.top-auth-strip .countdown-bar-digits {
  gap: 3px;
}

.top-auth-strip .cd-chip {
  padding: 1px 6px;
  min-width: 38px;
  height: 22px;
  align-items: center;
  gap: 2px;
}

.top-auth-strip .cd-num {
  font-size: 13px;
  min-width: 18px;
}

.top-auth-strip .cd-lbl {
  font-size: 9.5px;
}

.top-auth-strip .cd-sep {
  font-size: 12px;
  line-height: 1;
}

.top-auth-strip .square-quick-link {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-color: var(--border-bronze, #473621);
  background: rgba(16, 14, 12, 0.92);
}

.top-auth-strip .square-quick-link img,
.top-auth-strip .square-quick-link svg {
  width: 14px;
  height: 14px;
}

.top-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  min-height: 22px;
  min-width: 88px;
  padding: 0 10px;
  border-radius: 0px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-bronze);
}

.top-auth-btn.chaos-signin-btn {
  background: linear-gradient(180deg, rgba(42, 32, 21, 0.96) 0%, rgba(20, 15, 10, 0.98) 100%);
  border: 1px solid var(--gold-barrens, #d4a44c);
  color: var(--gold-crest, #f2c96d);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(242, 201, 109, 0.22);
}

.top-auth-btn.chaos-signin-btn:hover {
  background: linear-gradient(180deg, rgba(61, 47, 31, 0.98) 0%, rgba(30, 23, 14, 1) 100%);
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(212, 164, 76, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.top-auth-btn .btn-wow-icon,
.top-auth-btn svg {
  width: 12px;
  height: 12px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.top-auth-btn.bnet {
  background: rgba(14, 116, 144, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #f6f4ee;
}

.top-auth-btn.bnet:hover {
  background: rgba(2, 132, 199, 0.45);
  border-color: #7dd3fc;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.top-auth-btn.discord {
  background: rgba(88, 101, 242, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.55);
  color: #f6f4ee;
}

.top-auth-btn.discord:hover {
  background: rgba(88, 101, 242, 0.5);
  border-color: #a5b4fc;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

/* HUD User Badge & Chaos Auth Modal */
.hud-user-badge-wrap {
  position: relative;
}

.hud-user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 1px 8px 1px 3px;
  background: rgba(14, 14, 20, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 0px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-user-badge:hover {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.hud-user-badge.dual-verified {
  border-color: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

.hud-user-avatar {
  width: 18px;
  height: 18px;
  border-radius: 0px;
  border: 1px solid #d4af37;
  object-fit: cover;
}

.hud-user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.05;
}

.hud-user-name {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-user-sub {
  font-size: 8px;
  color: #d4af37;
  letter-spacing: 0.4px;
}

.hud-user-caret {
  font-size: 9px;
  color: #a0a0b0;
  margin-left: 2px;
}

.hud-user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 280px;
  background: #0f1016;
  border: 1px solid #383849;
  border-top: 2px solid #d4af37;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
  z-index: 1000;
  padding: 12px;
}

.hud-dropdown-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.hud-dropdown-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffd700;
}

.hud-dropdown-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.badge-bnet-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  background: rgba(0, 116, 224, 0.15);
  border: 1px solid rgba(0, 116, 224, 0.4);
  color: #69b8ff;
  padding: 2px 6px;
  border-radius: 0px;
}

.badge-discord-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #9da8ff;
  padding: 2px 6px;
  border-radius: 0px;
}

.badge-steam-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  background: rgba(23, 29, 37, 0.85);
  border: 1px solid rgba(102, 192, 244, 0.45);
  color: #66c0f4;
  padding: 2px 6px;
  border-radius: 0px;
}

.hud-dropdown-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0px;
}

.btn-dropdown-link.bnet {
  background: rgba(0, 116, 224, 0.2);
  border: 1px solid rgba(0, 116, 224, 0.5);
  color: #69b8ff;
}

.btn-dropdown-link.discord {
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.5);
  color: #9da8ff;
}

.btn-dropdown-link.steam {
  background: rgba(23, 29, 37, 0.85);
  border: 1px solid rgba(102, 192, 244, 0.5);
  color: #66c0f4;
}

.btn-dropdown-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d4e0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0px;
}

.btn-dropdown-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0px;
}

.chaos-auth-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.chaos-auth-modal-overlay.active {
  display: flex;
}

.chaos-auth-modal-frame {
  width: 100%;
  max-width: 520px;
  background: #0d0e14;
  border: 2px solid #54442b;
  border-radius: 0px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.modal-gold-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(180deg, #241a10 0%, #120d08 100%);
  border-bottom: 2px solid #d4af37;
}

.modal-gold-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #a0a0b0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-gold-body {
  padding: 20px;
}

.auth-intro-banner {
  text-align: center;
  margin-bottom: 20px;
}

.auth-intro-heading {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.auth-intro-sub {
  font-size: 12px;
  color: #9da0b5;
  line-height: 1.5;
  margin: 0;
}

.auth-provider-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-oauth-provider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 0px;
  text-decoration: none;
  transition: all 0.2s ease;
  color: #ffffff;
}

.btn-oauth-provider.bnet {
  background: linear-gradient(90deg, rgba(0, 116, 224, 0.2) 0%, rgba(0, 116, 224, 0.05) 100%);
  border: 1px solid #0074e0;
}

.btn-oauth-provider.discord {
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.2) 0%, rgba(88, 101, 242, 0.05) 100%);
  border: 1px solid #5865F2;
}

.btn-oauth-provider.steam {
  background: linear-gradient(90deg, rgba(23, 29, 37, 0.9) 0%, rgba(102, 192, 244, 0.1) 100%);
  border: 1px solid #66c0f4;
}

.provider-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0px;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.btn-oauth-provider.bnet .provider-icon-wrap { color: #0074e0; }
.btn-oauth-provider.discord .provider-icon-wrap { color: #5865F2; }
.btn-oauth-provider.steam .provider-icon-wrap { color: #66c0f4; }

.provider-text-wrap {
  display: flex;
  flex-direction: column;
}

.provider-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
}

.provider-desc {
  font-size: 11px;
  color: #a0a0b0;
  margin-top: 2px;
}

.auth-security-notice {
  margin-top: 18px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 2px solid #d4af37;
  font-size: 11px;
  color: #8c8f9f;
}

/* Profile Card in Modal */
.auth-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  border-radius: 0px !important;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.profile-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 0px !important;
  border: 1px solid #fbbf24;
  object-fit: cover;
  flex-shrink: 0;
  background: #090d16;
}

.profile-card-info {
  flex: 1;
  min-width: 0;
}

.profile-card-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 6px 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Status Badges - Pure Geometric Square */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 0px !important;
  text-transform: uppercase;
  box-sizing: border-box;
}

/* Green for Signed In */
.badge-status.online {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid #10b981 !important;
  color: #34d399 !important;
}

/* Red for Not Signed In / Unlinked */
.badge-status.pending,
.badge-status.offline {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid #ef4444 !important;
  color: #f87171 !important;
}

.auth-linking-section {
  margin-top: 14px;
  margin-bottom: 14px;
}

.section-sub-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

/* Strictly Even 3-Column Grid */
.linking-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .linking-row {
    grid-template-columns: 1fr;
  }
}

.linking-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  box-sizing: border-box;
}

/* Provider Pill - Geometric Square, Even Height, Zero Overflow */
.provider-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  height: 54px;
  box-sizing: border-box;
  border-radius: 0px !important;
  min-width: 0;
  overflow: hidden;
  transition: all 0.15s ease;
}

/* Green for Signed in */
.provider-pill.connected {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid #10b981 !important;
}

/* Red for Not signed in */
.provider-pill:not(.connected),
.provider-pill.disconnected {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid #ef4444 !important;
}

.provider-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.provider-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.provider-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-status {
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  margin-top: 2px;
}

/* Text status colors */
.provider-pill.connected .provider-status {
  color: #34d399 !important; /* Green for Signed In */
}

.provider-pill:not(.connected) .provider-status,
.provider-pill.disconnected .provider-status {
  color: #f87171 !important; /* Red for Not Signed In */
}

/* Buttons Under Pills - Pure Square Geometric & Uniform Height */
.btn-link-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 28px;
  padding: 0 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0px !important;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-link-sm.bnet {
  background: rgba(0, 116, 224, 0.15);
  border: 1px solid #0074e0;
  color: #60a5fa;
}
.btn-link-sm.bnet:hover {
  background: rgba(0, 116, 224, 0.3);
  color: #ffffff;
}

.btn-link-sm.discord {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid #5865F2;
  color: #a5b4fc;
}
.btn-link-sm.discord:hover {
  background: rgba(88, 101, 242, 0.3);
  color: #ffffff;
}

.btn-link-sm.steam {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #66c0f4;
  color: #66c0f4;
}
.btn-link-sm.steam:hover {
  background: rgba(102, 192, 244, 0.2);
  color: #ffffff;
}

.btn-unlink-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
  padding: 0 6px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0px !important;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}
.btn-unlink-sm:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

/* Character Drawer & Verified Cards */
.auth-char-manager {
  margin-top: 14px;
}

.staged-bnet-sync-badge {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  border-radius: 0px !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-char-empty {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.verified-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  margin-top: 8px;
  margin-bottom: 8px;
}

.char-select-card {
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #334155;
  border-radius: 0px !important;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.char-select-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: #64748b;
}

/* Green for Active Selected Character */
.char-select-card.selected {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid #10b981 !important;
}

.char-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #f8fafc;
}

.char-select-name {
  font-weight: 800;
}

.char-select-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #e2e8f0;
}

.char-select-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  color: #94a3b8;
}

.char-class-badge {
  font-weight: 600;
}

.char-realm {
  font-size: 10px;
  color: #64748b;
}

.char-active-tag {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #34d399 !important;
  text-transform: uppercase;
}

/* Modal Footer Actions */
.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #1e293b;
  box-sizing: border-box;
}

.btn-secondary {
  padding: 8px 18px;
  background: #1e293b;
  border: 1px solid #475569;
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  background: #334155;
  color: #ffffff;
}

.btn-danger-outline {
  padding: 8px 18px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}


@media (max-width: 900px) {
  .top-auth-strip .launch-date-text {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-auth-strip {
    padding: 3px 10px;
  }
  .top-auth-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
  }
  .top-auth-left {
    display: none;
  }
}

/* ==========================================================================
   2. MAIN PAGE CONTAINER, HERO BANNER, LAUNCH STRIP & 8-TAB GUILD NAV
   ========================================================================== */
.page-container {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 24px 48px;
}

.page-container > section,
.page-container > div,
.page-container > header,
.page-container > nav {
  margin-bottom: 8px;
}

.page-container > header.hero-card {
  margin-bottom: 4px;
}

.hero-card {
  view-transition-name: guild-hero-banner;
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-top: 1px solid rgba(212, 164, 76, 0.35);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

.hero-banner-container {
  position: relative;
  width: 100%;
  height: 240px;
  background: #070709;
  overflow: hidden;
}

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

.hero-banner-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner-video {
    display: none !important;
  }
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(7, 7, 9, 0.08) 0%, rgba(7, 7, 9, 0.52) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.32) 0%, rgba(7, 7, 9, 0.12) 48%, rgba(7, 7, 9, 0.88) 100%);
  pointer-events: none;
}

.hero-banner-brand {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-guild-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  color: #f6f4ee;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.92), 0 1px 3px rgba(0, 0, 0, 0.96);
}

/* 50% Compact Hero Banner on All Non-Roster Pages */
.hero-card.hero-banner-compact .hero-banner-container,
.hero-banner-container.hero-banner-compact {
  height: 120px !important;
  min-height: 120px !important;
  max-height: 120px !important;
}

.hero-card.hero-banner-compact .hero-guild-title,
.hero-banner-container.hero-banner-compact .hero-guild-title {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem) !important;
  letter-spacing: 0.12em !important;
  padding-left: 0.12em !important;
  padding-right: 0 !important;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 768px) {
  .hero-card.hero-banner-compact .hero-banner-container,
  .hero-banner-container.hero-banner-compact {
    height: 75px !important;
    min-height: 75px !important;
    max-height: 75px !important;
  }
}

.launch-strip {
  view-transition-name: guild-launch-strip;
  background: linear-gradient(180deg, rgba(22, 19, 16, 0.96) 0%, rgba(16, 14, 12, 0.98) 100%);
  border: 1px solid var(--border-bronze);
  border-left: 3px solid var(--gold-barrens);
  border-right: 3px solid var(--gold-barrens);
  padding: 10px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.launch-strip-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

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

.launch-strip-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tactical-pill.amber {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.launch-date-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-ivory);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.cd-chip {
  background: var(--bg-abyss);
  border: 1px solid var(--border-bronze);
  border-radius: var(--radius-btn);
  padding: 5px 11px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  min-width: 52px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.65);
}

.cd-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-crest);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd-lbl {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-barrens);
  text-transform: uppercase;
}

.cd-sep {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-barrens);
  opacity: 0.7;
}

.square-quick-link {
  width: 28px;
  height: 28px;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--text-ivory);
  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(--gold-barrens);
  box-shadow: 0 0 8px rgba(212, 164, 76, 0.4);
}

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

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

/* 8-Tab Guild Navigation Bar (Identical Position & Dimensions to Main Roster & Subpages) */
.guild-nav-bar {
  view-transition-name: guild-main-nav;
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 0 !important;
  background: transparent !important;
  border: none !important;
  border-left: 1px solid var(--border-bronze, #473621) !important;
  border-right: 1px solid var(--border-bronze, #473621) !important;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  width: 100%;
}

.guild-nav-bar .nav-tab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 36px !important;
  padding: 8px 6px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #161310 0%, #100e0c 100%) !important;
  border: 1px solid var(--border-bronze, #473621) !important;
  border-top: 2px solid var(--border-bronze, #473621) !important;
  border-bottom: 2px solid var(--border-bronze, #473621) !important;
  color: var(--text-parchment, #d6cbb8) !important;
  font-family: var(--font-sans) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  transition: all 0.14s ease;
}

.guild-nav-bar .nav-tab:hover {
  background: linear-gradient(180deg, #241d15 0%, #181410 100%) !important;
  border-color: var(--gold-barrens, #d4a44c) !important;
  color: var(--text-ivory, #f6f4ee) !important;
}

.guild-nav-bar .nav-tab.active,
.guild-nav-bar .nav-tab[aria-current="page"] {
  background: linear-gradient(180deg, #261e14 0%, #161310 100%) !important;
  border: 1px solid var(--gold-barrens, #d4a44c) !important;
  border-top: 2px solid var(--gold-crest, #f2c96d) !important;
  border-bottom: 2px solid var(--gold-barrens, #d4a44c) !important;
  color: var(--gold-crest, #f2c96d) !important;
  box-shadow: 0 0 14px rgba(212, 164, 76, 0.22), inset 0 1px 0 rgba(242, 201, 109, 0.2) !important;
}

.guild-nav-bar .nav-tab-wow-icon {
  width: 17px !important;
  height: 17px !important;
  border-radius: 0 !important;
  border: 1px solid var(--border-bronze, #473621) !important;
  flex-shrink: 0 !important;
}

.guild-nav-bar .nav-tab-badge {
  font-family: var(--font-mono) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 1px 4px !important;
  border-radius: 0 !important;
  letter-spacing: 0.03em !important;
  background: rgba(212, 164, 76, 0.14) !important;
  border: 1px solid rgba(212, 164, 76, 0.38) !important;
  color: var(--gold-crest, #f2c96d) !important;
  flex-shrink: 0 !important;
}

.guild-nav-bar .nav-tab-badge.new-pulse {
  background: rgba(224, 122, 46, 0.22) !important;
  color: var(--gold-crest) !important;
  border: 1px solid var(--ember-savanna) !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   3. RECRUITMENT & RAID SIGNUP TOP CARD BAR (50% Compact Height & Linked into Steps)
   ========================================================================== */
.wow-logo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 28px;
  padding: 0 8px 0 0;
  background: linear-gradient(90deg, rgba(31, 26, 21, 0.96) 0%, rgba(22, 19, 16, 0.98) 100%);
  border: 1px solid var(--border-bronze);
  border-top: 2px solid var(--gold-barrens);
  border-bottom: none;
  box-shadow: none;
  margin-bottom: 0 !important;
}

.wow-logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  min-width: 0;
}

.wow-logo-emblem {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-void);
  border-right: 1px solid var(--border-bronze);
  overflow: hidden;
}

.wow-logo-crest {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wow-logo-text-stack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wow-logo-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wow-logo-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--gold-barrens);
  box-shadow: 0 0 6px rgba(212, 164, 76, 0.55);
  transform: none;
}

/* Sub-Navigation Pill Group inside Header */
.subnav-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 0;
}

.subnav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  min-height: 22px;
  padding: 0 8px 0 4px;
  border-radius: var(--radius-pill);
  background: rgba(22, 19, 16, 0.92);
  border: 1px solid var(--border-bronze);
  color: var(--text-parchment);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.subnav-icon {
  width: 15px;
  height: 15px;
  border-radius: 0px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  filter: grayscale(0.45);
  opacity: 0.85;
  transition: all 0.15s ease;
}

.subnav-tab:hover {
  background: rgba(38, 31, 22, 0.95);
  border-color: var(--gold-barrens);
  color: var(--text-ivory);
}

.subnav-tab:hover .subnav-icon,
.subnav-tab.active .subnav-icon {
  filter: none;
  opacity: 1;
  border-color: currentColor;
}

.subnav-tab.active {
  background: linear-gradient(180deg, rgba(212, 164, 76, 0.24) 0%, rgba(224, 122, 46, 0.14) 100%);
  border-color: var(--gold-barrens);
  color: var(--gold-crest);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(212, 164, 76, 0.22);
}

/* ==========================================================================
   4. SECTION CARDS (Linked Seamlessly Together with Zero Gaps in Apply)
   ========================================================================== */
#viewApply,
#raidApplyForm {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

.step-card {
  --sec-accent: var(--gold-barrens);
  background: linear-gradient(180deg, rgba(22, 19, 16, 0.96) 0%, rgba(16, 14, 12, 0.98) 100%);
  border: 1px solid var(--border-bronze);
  border-top: 1px solid var(--sec-accent);
  border-left: 3px solid var(--sec-accent);
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  box-shadow: none;
  overflow: hidden;
}

#raidApplyForm > .step-card + .step-card {
  border-top: none;
}

.step-card.step-theme-legendary { --sec-accent: var(--ember-savanna); }
.step-card.step-theme-horde     { --sec-accent: var(--crimson-horde); }
.step-card.step-theme-arcane    { --sec-accent: var(--gold-barrens); }
.step-card.step-theme-gold      { --sec-accent: var(--gold-crest); }
.step-card.step-theme-fel       { --sec-accent: var(--gold-barrens); }
.step-card.step-theme-emerald   { --sec-accent: var(--ember-savanna); }
.step-card.step-theme-epic      { --sec-accent: var(--gold-crest); }

.step-card.is-locked,
.step-card[hidden] {
  display: none !important;
}

/* Card Header with 28x28 Flush Icon Box + Single-Line Cinzel Title */
.step-card-header {
  min-height: 28px;
  padding: 0 8px 0 0;
  background: linear-gradient(90deg, rgba(31, 26, 21, 0.96) 0%, rgba(22, 19, 16, 0.98) 100%);
  border-top: 1px solid var(--border-bronze);
  border-bottom: 1px solid var(--border-bronze);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-title-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  min-width: 0;
  flex: 1;
}

.header-wow-icon {
  width: 28px;
  height: 28px;
  object-fit: cover;
  background: var(--bg-void);
  border-right: 1px solid var(--border-bronze);
  flex-shrink: 0;
  display: block;
}

.section-indicator-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  background: var(--gold-barrens);
  box-shadow: 0 0 6px rgba(212, 164, 76, 0.55);
  display: inline-block;
  flex-shrink: 0;
  align-self: center;
}

.header-step-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(212, 164, 76, 0.14);
  border: 1px solid rgba(212, 164, 76, 0.45);
  color: var(--gold-crest);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.step-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-meta-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 20px;
  min-height: 20px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: rgba(212, 164, 76, 0.1);
  border: 1px solid rgba(212, 164, 76, 0.35);
  color: var(--gold-barrens);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.step-card-body {
  padding: 10px 14px;
}

/* ==========================================================================
   5. SUBSECTION LABELS & FORM FIELD GROUPS (Strictly Single-Line)
   ========================================================================== */
.compact-group-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subsection-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0 2px 0;
  border-bottom: 1px solid var(--border-earth);
  min-height: 22px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.subsection-label-row > .inline-wow-icon {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0px;
  flex-shrink: 0;
}

.subsection-label-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-parchment);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.subsection-meta-right {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: rgba(212, 164, 76, 0.14);
  border: 1px solid rgba(212, 164, 76, 0.4);
  color: var(--gold-crest);
}

.req-star {
  color: var(--neon-red);
  font-weight: 900;
}

.inline-wow-icon {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  vertical-align: middle;
}

/* ==========================================================================
   6. PILL GRIDS & CHOICE PILLS / BUILDER TILES (Spaced Roster Pill Scheme)
   ========================================================================== */
.aligned-grid-2,
.aligned-grid-3,
.aligned-grid-4,
.aligned-grid-5,
.aligned-grid-6,
.aligned-grid-7,
.aligned-grid-1-stack {
  display: grid;
  gap: 8px;
  background: transparent;
  border: none;
}

.aligned-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aligned-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aligned-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aligned-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aligned-grid-6 { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.aligned-grid-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.aligned-grid-1-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Choice Pills, Builder Tiles & Day Pills — Clean Roster Pill Design */
.sharp-choice-pill,
.builder-tile,
.day-pill {
  width: 100%;
  min-height: 38px;
  padding: 5px 12px 5px 7px;
  border-radius: var(--radius-btn);
  background: rgba(22, 19, 16, 0.92);
  border: 1px solid var(--border-bronze);
  color: var(--text-parchment);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Binary Choice Pills & Day Pills use sharp right-angled corners like the rest of chaosmen.gg */
.sharp-choice-pill,
.day-pill {
  border-radius: var(--radius-pill);
  padding: 5px 14px 5px 6px;
}

.day-pill {
  justify-content: center;
  padding: 5px 8px;
  gap: 5px;
}

.sharp-choice-pill > .pill-wow-icon,
.sharp-choice-pill > .btn-wow-icon {
  width: 24px;
  height: 24px;
  border-radius: 0px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  display: block;
  filter: grayscale(0.4);
  opacity: 0.85;
  transition: all 0.15s ease;
}

.day-pill > .inline-wow-icon {
  width: 16px;
  height: 16px;
  border-radius: 0px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  display: block;
  filter: grayscale(0.4);
  opacity: 0.85;
  transition: all 0.15s ease;
}

/* Builder Tiles (Race, Class, Spec, Professions) use crisp 24x24 square WoW Icon + Square Card Pill */
.builder-tile > .tile-icon {
  width: 24px;
  height: 24px;
  border-radius: 0px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  display: block;
  filter: grayscale(0.35);
  opacity: 0.85;
  transition: all 0.15s ease;
}

.pill-main-title,
.tile-meta,
.day-pill > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.tile-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-role-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sharp-choice-pill:hover,
.builder-tile:hover,
.day-pill:hover {
  background: rgba(38, 31, 22, 0.96);
  border-color: var(--gold-barrens);
  color: var(--text-ivory);
  transform: translateY(-1px);
}

.sharp-choice-pill:hover > .pill-wow-icon,
.sharp-choice-pill:hover > .btn-wow-icon,
.builder-tile:hover > .tile-icon,
.day-pill:hover > .inline-wow-icon,
.sharp-choice-pill.active > .pill-wow-icon,
.sharp-choice-pill.active > .btn-wow-icon,
.builder-tile.active > .tile-icon,
.day-pill.active > .inline-wow-icon {
  filter: none;
  opacity: 1;
  border-color: currentColor;
}

/* Active Pill States (Matches Main Roster `.toggle-pill.active`) */
.sharp-choice-pill.active,
.builder-tile.active,
.day-pill.active {
  background: linear-gradient(180deg, rgba(212, 164, 76, 0.24) 0%, rgba(224, 122, 46, 0.14) 100%);
  border-color: var(--gold-barrens);
  color: var(--gold-crest);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(212, 164, 76, 0.25);
}

/* Thematic Active Accents (Matches #filterHorde, #filterAlliance, #filterPvE, #filterPvP on Main Roster) */
.sharp-choice-pill.faction-pill.horde.active {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.8);
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.sharp-choice-pill.faction-pill.alliance.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.8);
  color: #93c5fd;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.sharp-choice-pill.server-pill.pve.active {
  background: rgba(212, 164, 76, 0.2);
  border-color: var(--gold-barrens);
  color: var(--gold-crest);
  box-shadow: 0 0 12px rgba(212, 164, 76, 0.28);
}

.sharp-choice-pill.server-pill.pvp.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.8);
  color: #fde68a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
}

/* Class-Colored Builder Tiles when Active */
.builder-tile[style*="--tile-accent"].active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--tile-accent) 22%, #1a1612), color-mix(in srgb, var(--tile-accent) 10%, #120f0c));
  border-color: var(--tile-accent);
  color: #ffffff;
  box-shadow: 0 0 12px color-mix(in srgb, var(--tile-accent) 32%, transparent);
}

/* ==========================================================================
   7. 1–5 SCALE PILLS (Clean Square Pills with Monospace Number Badges)
   ========================================================================== */
.sharp-scale-pill {
  min-height: 34px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(22, 19, 16, 0.92);
  border: 1px solid var(--border-bronze);
  color: var(--text-dust);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
}

.sharp-scale-pill > .scale-wow-icon {
  width: 18px;
  height: 18px;
  border-radius: 0px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.scale-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-barrens);
}

.scale-lbl {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sharp-scale-pill.rarity-1 { --r-col: #cbd5e1; }
.sharp-scale-pill.rarity-2 { --r-col: #22c55e; }
.sharp-scale-pill.rarity-3 { --r-col: #d4a44c; }
.sharp-scale-pill.rarity-4 { --r-col: #e07a2e; }
.sharp-scale-pill.rarity-5 { --r-col: #f2c96d; }

.sharp-scale-pill:hover {
  background: rgba(38, 31, 22, 0.95);
  border-color: var(--gold-barrens);
  color: var(--text-ivory);
}

.sharp-scale-pill.active {
  background: linear-gradient(180deg, rgba(212, 164, 76, 0.24) 0%, rgba(224, 122, 46, 0.14) 100%);
  border-color: var(--gold-barrens);
  color: var(--gold-crest);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(212, 164, 76, 0.22);
}

.sharp-scale-pill.active .scale-num {
  color: #ffffff;
}

/* ==========================================================================
   8. STEP LAYOUTS, INPUTS, CALLOUTS & BUTTONS
   ========================================================================== */
.step1-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.step1-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100%;
}

.step1-buttons .sharp-choice-pill {
  width: 100%;
  justify-content: center;
}

.raiding-feasibility-note {
  margin: 0;
  padding: 2px 6px;
  background: rgba(16, 14, 12, 0.65);
  border: none;
  border-left: 2px solid var(--gold-barrens);
  font-size: 10.5px;
  color: var(--text-dust);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.raiding-feasibility-note > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.raiding-feasibility-note > .inline-wow-icon {
  width: 13px;
  height: 13px;
  border-radius: 0px;
  object-fit: cover;
  border: 1px solid var(--border-bronze);
  flex-shrink: 0;
}

/* Step 2 Horde PvE Notice Banner (Single-Line Compact Note) */
.horde-pve-notice-banner {
  margin-top: 6px;
  padding: 4px 10px;
  background: rgba(185, 28, 28, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-left: 3px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.notice-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #fecaca;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.notice-banner-content > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-banner-content > .pill-wow-icon {
  width: 16px;
  height: 16px;
  border-radius: 0px;
  object-fit: cover;
  border: 1px solid rgba(239, 68, 68, 0.5);
  flex-shrink: 0;
}

/* Step 3 Authentication & Inputs (50% Vertically Reduced + Passcode & Load Existing Side-by-Side) */
#stepCard3 .step-card-body {
  padding: 6px 12px !important;
}

.auth-compact-grid {
  display: grid;
  grid-template-columns: auto auto minmax(125px, 0.85fr) minmax(130px, 0.9fr) minmax(420px, 2.35fr);
  gap: 6px;
  align-items: center;
}

#stepCard3 .sharp-choice-pill {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 8px 0 4px !important;
  gap: 5px !important;
  font-size: 11px !important;
}

#stepCard3 .sharp-choice-pill > .pill-wow-icon {
  width: 16px !important;
  height: 16px !important;
}

#stepCard3 .sharp-choice-pill .pill-main-title {
  font-size: 11px !important;
}

.sharp-choice-pill.bnet-card {
  background: rgba(14, 116, 144, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: #e0f2fe;
}

.sharp-choice-pill.bnet-card:hover {
  background: rgba(2, 132, 199, 0.32);
  border-color: #7dd3fc;
  color: #ffffff;
}

.sharp-choice-pill.discord-card {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(129, 140, 248, 0.5);
  color: #e0e7ff;
}

.sharp-choice-pill.discord-card:hover {
  background: rgba(88, 101, 242, 0.35);
  border-color: #a5b4fc;
  color: #ffffff;
}

.inline-input-group {
  display: flex;
  align-items: center;
  height: 32px;
  background: var(--bg-input);
  border: 1px solid var(--border-bronze);
  padding: 0 6px 0 5px;
  gap: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#stepCard3 .inline-input-group {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 5px 0 4px;
  gap: 5px;
}

.inline-input-group:focus-within {
  border-color: var(--gold-barrens);
  box-shadow: 0 0 0 2px rgba(212, 164, 76, 0.22);
}

.inline-input-group .field-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 6px;
  border-right: 1px solid var(--border-earth);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-parchment);
  white-space: nowrap;
}

.inline-input-group .field-label > .inline-wow-icon {
  width: 15px;
  height: 15px;
  border-radius: 0px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.inline-input-group .gold-input {
  border: none !important;
  box-shadow: none !important;
  height: 100% !important;
  min-height: 0 !important;
  flex: 1;
  min-width: 0;
  padding: 0 4px;
  font-size: 11.5px;
}

.gold-input {
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-bronze);
  color: var(--text-ivory);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select.gold-input {
  color-scheme: dark;
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a44c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

select.gold-input option {
  background-color: var(--bg-panel);
  color: var(--text-ivory);
}

.gold-input:focus {
  border-color: var(--gold-barrens);
  box-shadow: 0 0 0 2px rgba(212, 164, 76, 0.22);
}

/* Tab 3 Officer Filters Row */
.officer-filters-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.consensus-windows-banner {
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-parchment);
}

/* Paired Passcode Input + Load Existing Passcode Cluster (50% Reduced Vertical Space) */
.passcode-pair-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  height: 24px;
}

.passcode-pair-cluster .passcode-input-box {
  flex: 1 1 160px;
  min-width: 145px;
}

.recover-existing-row {
  margin: 0 !important;
  padding: 0 4px 0 6px !important;
  border-top: none !important;
  border: 1px solid var(--border-bronze);
  border-left: 2px solid var(--gold-barrens);
  background: rgba(16, 14, 12, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  height: 24px;
  flex-shrink: 0;
}

.recover-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-crest);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.recover-label > .inline-wow-icon {
  width: 13px;
  height: 13px;
}

.recover-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recover-controls .gold-input {
  width: 82px;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 5px;
  font-size: 10.5px !important;
}

#btnRecoverSignup {
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 6px !important;
  font-size: 9.5px !important;
  gap: 3px !important;
}

#btnRecoverSignup > .btn-wow-icon {
  width: 11px !important;
  height: 11px !important;
}

/* Step 4 Grids */
.step4-top-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.step4-class-spec-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.step4-profs-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 12px;
}

/* Inline Racials Chips inside the Race Subsection Header */
.form-racials-inline {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
}

.form-racial-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 19px;
  padding: 0 6px 0 2px;
  border-radius: var(--radius-pill);
  background: rgba(212, 164, 76, 0.12);
  border: 1px solid rgba(212, 164, 76, 0.38);
  color: var(--gold-crest);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.form-racial-item:hover {
  background: rgba(212, 164, 76, 0.24);
  border-color: var(--gold-barrens);
  color: #ffffff;
}

.form-racial-icon {
  width: 14px;
  height: 14px;
  border-radius: 0px;
  object-fit: cover;
}

/* Conditional Off-Spec Panel */
.conditional-offspec-panel {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: rgba(16, 14, 12, 0.92);
  border: 1px solid var(--border-bronze);
  border-left: 3px solid var(--gold-barrens);
}

.offspec-inline-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.offspec-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.offspec-inline-label > .inline-wow-icon {
  width: 18px;
  height: 18px;
  border-radius: 0px;
  border: 1px solid var(--border-bronze);
}

.offspec-question-title {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-ivory);
  white-space: nowrap;
}

.offspec-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-barrens);
  white-space: nowrap;
}

/* Step 5: 3-Column Playstyle Cards — Strictly Identical Layout, 1-Line Titles, Equal Button Dimensions */
.playstyle-3col-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.playstyle-col-card {
  background: rgba(16, 14, 12, 0.78);
  border: 1px solid var(--border-earth);
  padding: 8px 10px !important;
  display: grid !important;
  grid-template-rows: 22px 30px 26px !important;
  gap: 6px !important;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.playstyle-col-card .subsection-label-row {
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding-bottom: 3px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.playstyle-col-card .subsection-label-text {
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1 !important;
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.playstyle-col-card .aligned-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  height: 30px !important;
  width: 100% !important;
}

.playstyle-col-card .aligned-grid-2 .sharp-choice-pill {
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 6px !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  box-sizing: border-box !important;
}

.playstyle-col-card .aligned-grid-2 .sharp-choice-pill > .pill-wow-icon {
  width: 16px !important;
  height: 16px !important;
}

.playstyle-col-card .aligned-grid-2 .pill-main-title {
  font-size: 11px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.playstyle-col-card .aligned-grid-5 {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 4px !important;
  height: 26px !important;
  width: 100% !important;
}

.playstyle-col-card .aligned-grid-5 .sharp-scale-pill {
  width: 100% !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  padding: 0 2px !important;
  gap: 3px !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.playstyle-col-card .aligned-grid-5 .scale-num {
  font-size: 10px !important;
  line-height: 1 !important;
}

.playstyle-col-card .aligned-grid-5 .scale-lbl {
  font-size: 9.5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Step 6: Raid Nights & Available Hours Pills (50% Reduced Vertical Height & Smaller Crisp Text) */
.step6-controls-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  margin-bottom: 8px;
  align-items: end;
}

#raidNightsPillBar {
  gap: 4px !important;
}

#raidNightsPillBar .day-pill,
.day-pill {
  height: 19px !important;
  min-height: 19px !important;
  max-height: 19px !important;
  padding: 0 4px !important;
  gap: 4px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  justify-content: center !important;
}

.day-pill > .inline-wow-icon {
  width: 12px !important;
  height: 12px !important;
}

.day-pill > span {
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.step6-brush-and-presets {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.step6-brush-and-presets .sharp-choice-pill,
.step6-brush-and-presets .sharp-action-btn,
.mobile-time-blocks-grid .sharp-choice-pill {
  flex: 1 1 auto;
  min-width: 0;
  height: 19px !important;
  min-height: 19px !important;
  max-height: 19px !important;
  padding: 0 6px !important;
  gap: 4px !important;
  font-size: 9.5px !important;
  line-height: 1 !important;
  justify-content: center !important;
}

.step6-brush-and-presets .pill-main-title,
.step6-brush-and-presets .sharp-action-btn > span,
.mobile-time-blocks-grid .pill-main-title {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.step6-brush-and-presets .btn-wow-icon,
.mobile-time-blocks-grid .btn-wow-icon {
  width: 12px !important;
  height: 12px !important;
}

.paint-mode-btn.available.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.75);
  color: #86efac;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.paint-mode-btn.blackout.active {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.75);
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

/* Timezone Pill Bar in Step 6 Header */
.tz-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.tz-pill {
  height: 18px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: rgba(22, 19, 16, 0.92);
  border: 1px solid var(--border-bronze);
  color: var(--text-parchment);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tz-pill:hover {
  background: rgba(38, 31, 22, 0.95);
  border-color: var(--gold-barrens);
  color: var(--text-ivory);
}

.tz-pill.active {
  background: linear-gradient(180deg, rgba(212, 164, 76, 0.24) 0%, rgba(224, 122, 46, 0.14) 100%);
  border-color: var(--gold-barrens);
  color: var(--gold-crest);
  box-shadow: 0 0 10px rgba(212, 164, 76, 0.22);
}

/* 7 x 18 Availability Matrix (50% Reduced Vertical Cell Height & Smaller Crisp Text) */
.availability-grid-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-bronze);
  background: var(--bg-abyss);
}

.availability-matrix {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.availability-matrix th {
  height: 18px;
  background: rgba(16, 14, 12, 0.98);
  color: var(--gold-barrens);
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--border-earth);
  border-bottom: 2px solid var(--border-bronze);
  text-align: center;
  padding: 0 1px;
}

.availability-matrix td {
  height: 17px;
  border: 1px solid var(--border-earth);
  text-align: center;
  cursor: pointer;
  user-select: none;
  padding: 0;
  background: rgba(22, 19, 16, 0.85);
  color: var(--text-dust);
  font-size: 9.5px;
  transition: background 0.1s ease;
}

.availability-matrix tbody tr:nth-child(even) td:not(.day-row-header):not(.state-available):not(.state-blackout) {
  background: rgba(16, 14, 12, 0.92);
}

.availability-matrix td:hover:not(.day-row-header) {
  border-color: var(--gold-barrens);
}

.availability-matrix td.day-row-header {
  width: 52px;
  background: rgba(16, 14, 12, 0.98);
  color: var(--text-ivory);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-right: 2px solid var(--border-bronze);
}

.availability-matrix td.state-available {
  background: rgba(34, 197, 94, 0.28);
  color: #ecfdf5;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.55);
}

.availability-matrix td.state-blackout {
  background: rgba(239, 68, 68, 0.28);
  color: #ffe4e6;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.55);
}

/* Step 7 Referrer Quick Chips & Submit Row */
.referrer-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.referrer-chips-row .builder-tile {
  width: auto;
  min-height: 28px;
  padding: 2px 10px 2px 5px;
  border-radius: var(--radius-pill);
}

.referrer-chips-row .builder-tile > .tile-icon {
  width: 18px;
  height: 18px;
  border-radius: 0px;
}

.alt-builder-drawer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-bronze);
}

.submit-action-row {
  margin-top: 12px;
  padding: 14px 0 6px;
  border-top: 1px solid var(--border-bronze);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.submit-feedback {
  width: 100%;
  max-width: 580px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-btn);
}

.submit-feedback.error {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-left: 3px solid #ef4444;
  color: #fecaca;
}

.submit-feedback.success {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-left: 3px solid #22c55e;
  color: #bbf7d0;
}

/* Action & Submit Buttons (Matches Main Roster `.btn-secondary` & `.btn-primary-neon`) */
.sharp-action-btn,
.sharp-toggle-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(22, 19, 16, 0.92);
  border: 1px solid var(--border-bronze);
  color: var(--text-parchment);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sharp-action-btn > .btn-wow-icon,
.sharp-toggle-btn > .btn-wow-icon {
  width: 16px;
  height: 16px;
  border-radius: 0px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sharp-toggle-btn.compact,
.step-card-header .sharp-toggle-btn.compact {
  height: 20px;
  min-height: 20px;
  padding: 0 7px;
  font-size: 9.5px;
  gap: 5px;
  line-height: 1;
}

.sharp-toggle-btn.compact > .btn-wow-icon,
.step-card-header .sharp-toggle-btn.compact > .btn-wow-icon {
  width: 13px;
  height: 13px;
}

.sharp-action-btn:hover,
.sharp-toggle-btn:hover {
  background: rgba(38, 31, 22, 0.96);
  border-color: var(--gold-barrens);
  color: var(--text-ivory);
}

.sharp-action-btn.gold,
.sharp-toggle-btn.active {
  background: linear-gradient(180deg, rgba(212, 164, 76, 0.24) 0%, rgba(224, 122, 46, 0.14) 100%);
  border-color: var(--gold-barrens);
  color: var(--gold-crest);
  font-weight: 800;
}

.sharp-action-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.sharp-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
}

.btn-molten-submit {
  position: relative;
  min-width: 440px;
  max-width: 580px;
  width: 100%;
  height: 76px;
  padding: 0 36px;
  border-radius: var(--radius-btn);
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.14) 0%, rgba(8, 7, 6, 0.36) 100%),
    url('/apply/horde-signup-btn-bg.jpg?v=7.0') center center / 100% 100% no-repeat;
  border: 2px solid var(--gold-crest);
  color: #fff8e7;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.98), 0 0 14px rgba(242, 201, 109, 0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.88), 0 0 24px rgba(224, 122, 46, 0.45), inset 0 0 18px rgba(242, 201, 109, 0.25);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-molten-submit:hover {
  filter: brightness(1.12);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.92), 0 0 32px rgba(242, 201, 109, 0.78), inset 0 0 22px rgba(242, 201, 109, 0.38);
  transform: translateY(-2px) scale(1.015);
}

.btn-molten-submit > .btn-wow-icon {
  width: 28px;
  height: 28px;
  border-radius: 0px;
  object-fit: cover;
  border: 1px solid var(--gold-crest);
  box-shadow: 0 0 10px rgba(242, 201, 109, 0.65);
  flex-shrink: 0;
}

/* ==========================================================================
   9. TAB 2: CHARACTER ROSTER TABLE & RAID PLANNER (Identical to Main Roster)
   ========================================================================== */
.pill-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  min-height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: rgba(16, 14, 12, 0.88);
  border: 1px solid var(--border-bronze);
  color: var(--text-dust, #8c7f6f);
  opacity: 0.72;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.toggle-pill:has(.toggle-pill-icon) {
  padding-left: 4px;
}

.toggle-pill-icon {
  width: 14px;
  height: 14px;
  border-radius: 0px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-pill:not(.active) .toggle-pill-icon {
  filter: grayscale(1) opacity(0.45);
  border-color: rgba(255, 255, 255, 0.15);
}

.toggle-pill:hover {
  background: rgba(38, 31, 22, 0.95);
  border-color: var(--gold-barrens);
  color: var(--text-ivory);
  opacity: 1;
}

.toggle-pill.active {
  background: linear-gradient(180deg, rgba(212, 164, 76, 0.28) 0%, rgba(224, 122, 46, 0.16) 100%);
  border-color: var(--gold-barrens);
  color: var(--gold-crest);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(212, 164, 76, 0.28), inset 0 1px 0 rgba(255, 232, 163, 0.22);
  opacity: 1;
}

.toggle-pill.active .toggle-pill-icon {
  filter: none;
  opacity: 1;
  border-color: var(--gold-crest);
}

.toggle-pill.active:hover {
  background: linear-gradient(180deg, rgba(212, 164, 76, 0.38) 0%, rgba(224, 122, 46, 0.24) 100%);
  border-color: var(--gold-crest);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(212, 164, 76, 0.42), inset 0 1px 0 rgba(255, 232, 163, 0.3);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.roster-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 13px;
}

.roster-table th {
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-barrens);
  background: rgba(16, 14, 12, 0.98);
  border-bottom: 1.5px solid var(--border-bronze);
  white-space: nowrap;
}

.roster-table td {
  padding: 7px 10px;
  background: rgba(22, 19, 16, 0.85);
  border-bottom: 1px solid var(--border-earth);
  vertical-align: middle;
  white-space: nowrap;
  font-size: 13.5px;
}

.roster-table tbody tr:nth-child(even) td {
  background: rgba(16, 14, 12, 0.92);
}

.roster-table tbody tr:hover td {
  background: rgba(38, 31, 22, 0.92);
}

.roster-table th + th,
.roster-table td + td {
  border-left: 1px solid var(--border-earth);
}

.col-icon { width: 1%; text-align: center; }
.col-center { text-align: center; }
.col-actions { width: 1%; text-align: right; }

.char-name {
  font-size: 14px;
  font-weight: 800;
}

#rosterTable td.col-name .char-name-stack {
  position: relative;
  z-index: 1;
  display: inline-grid !important;
  place-items: center !important;
  padding-left: 0.06em !important;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

#rosterTable td.col-name .char-name-stroke,
#rosterTable td.col-name .char-name-fill {
  grid-area: 1 / 1 !important;
  display: inline-block !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

@supports not (text-box-trim: trim-both) {
  #rosterTable td.col-name .char-name-stack {
    transform: translateY(0.08em);
  }
}

#rosterTable td.col-name .char-name-stroke {
  color: #040302 !important;
  -webkit-text-stroke: 4.2px #040302 !important;
  paint-order: stroke fill !important;
  text-shadow:
    0 1px 0 #000000,
    0 2px 0 #000000,
    0 3px 6px rgba(0, 0, 0, 0.98),
    0 0 10px rgba(0, 0, 0, 0.95),
    0 0 16px color-mix(in srgb, var(--char-color, #ffffff) 65%, transparent) !important;
  user-select: none !important;
  pointer-events: none !important;
}

#rosterTable td.col-name .char-name-fill {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--char-color, #ffffff) 84%, #ffffff) 0%,
    color-mix(in srgb, var(--char-color, #ffffff) 52%, #ffffff) 50%,
    color-mix(in srgb, var(--char-color, #ffffff) 84%, #ffffff) 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

#rosterTable td.col-name .char-glyph-no-desc {
  display: inline-block;
  transform: scaleY(0.775);
  transform-origin: 50% 15%;
}

#rosterTable td.col-name .char-name-fill .char-glyph-no-desc {
  background: inherit !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.icon-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.ro-icon {
  width: var(--icon);
  height: var(--icon);
  display: block;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ro-icon--sec {
  width: var(--icon-sec);
  height: var(--icon-sec);
}

.socials-cell,
.row-actions {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.social-icon-btn,
.btn-row-action {
  width: var(--icon);
  height: var(--icon);
  border-radius: var(--radius-btn);
  background: rgba(22, 19, 16, 0.92);
  border: 1px solid var(--border-bronze);
  color: var(--text-parchment);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  transition: all 0.15s ease;
}

.btn-row-action .ro-action-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.06);
  transition: transform 0.15s ease, filter 0.15s ease;
  pointer-events: none;
}

.btn-row-action:hover .ro-action-icon {
  filter: brightness(1.18) contrast(1.08);
  transform: scale(1.08);
}

.social-icon-btn:hover:not([disabled]),
.btn-row-action:hover {
  border-color: var(--gold-barrens);
  color: #ffffff;
  background: rgba(212, 164, 76, 0.18);
  box-shadow: 0 0 8px rgba(212, 164, 76, 0.35);
}

.social-icon-btn[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
}

.social-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Raid & Campfire Buffs Planner */
.planner-title-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.planner-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.control-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dust);
}

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

.btn-add-roster,
.btn-reset-session {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  min-height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.btn-add-roster {
  background: rgba(212, 164, 76, 0.16);
  border: 1px solid var(--gold-barrens);
  color: var(--gold-crest);
}

.btn-add-roster:hover {
  background: rgba(212, 164, 76, 0.28);
  color: #ffffff;
}

.btn-reset-session {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-reset-session:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #ffffff;
}

.planner-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
}

.planner-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--border-bronze);
  background: rgba(16, 14, 12, 0.94);
}

.planner-panel:last-child {
  border-right: none;
}

.officer-export-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.step-card-header .sharp-action-btn.compact {
  height: 22px;
  min-height: 22px;
  padding: 0 9px;
  font-size: 10.5px;
  line-height: 1;
}

.step-card-header .sharp-action-btn.compact > .btn-wow-icon {
  width: 14px;
  height: 14px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  background: linear-gradient(180deg, #1d1814 0%, #100e0c 100%);
  border-bottom: 1.5px solid var(--border-bronze);
}

.panel-header h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-crest);
}

.panel-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-crest);
}

.panel-search {
  padding: 8px;
  border-bottom: 1px solid var(--border-earth);
}

.panel-search .gold-input {
  height: 32px;
  font-size: 12px;
}

.panel-list {
  flex: 1;
  min-height: 180px;
  max-height: 500px;
  overflow-y: auto;
}

.panel-hint {
  font-size: 10.5px;
  color: var(--text-dust);
  padding: 6px 10px;
  border-top: 1px solid var(--border-earth);
}

.planner-char {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-earth);
  border-left: 3px solid var(--class-col, var(--gold-barrens));
  cursor: pointer;
}

.planner-char:hover {
  background: rgba(38, 31, 22, 0.85);
}

.planner-char-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.planner-char-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--class-col, #ffffff);
}

.planner-char-spec {
  font-size: 10.5px;
  color: var(--text-dust);
  margin-left: auto;
}

.planner-prof-icon {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.raid-group {
  background: var(--bg-input);
  border: 1px solid var(--border-bronze);
  display: flex;
  flex-direction: column;
}

.raid-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-crest);
  background: linear-gradient(180deg, #1d1814 0%, #100e0c 100%);
  border-bottom: 1px solid var(--border-bronze);
}

.group-slot {
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 11.5px;
  border-bottom: 1px solid var(--border-earth);
  border-left: 3px solid transparent;
}

.group-slot:last-child {
  border-bottom: none;
}

.group-slot.is-filled {
  border-left-color: var(--class-col, var(--gold-barrens));
  background: color-mix(in srgb, var(--class-col, #d4a44c) 9%, transparent);
  cursor: pointer;
}

.group-slot.is-empty {
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.18);
}

.group-slot-icon {
  width: 16px;
  height: 16px;
}

.group-slot-name {
  font-weight: 700;
  color: var(--class-col, #ffffff);
}

/* Tracker Sections */
.tracker-body {
  max-height: 600px;
  overflow-y: auto;
}

.tracker-section {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-earth);
}

.tracker-section:last-child {
  border-bottom: none;
}

.tracker-section-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 5px;
  background: rgba(22, 19, 16, 0.95);
  border: 1px solid var(--border-bronze);
  border-radius: var(--radius-btn);
  color: var(--text-ivory);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.tracker-section-btn:hover {
  border-color: var(--gold-barrens);
}

.tracker-section-btn.is-open .btn-chevron {
  transform: rotate(90deg);
}

.tracker-section-title {
  flex: 1;
  text-align: left;
}

.tracker-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tracker-icon--lg {
  width: 20px;
  height: 20px;
}

.tracker-section-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold-crest);
}

.tracker-section-count.is-on {
  color: var(--color-on);
}

.tracker-section-body {
  padding-top: 6px;
}

.tracker-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font-size: 11.5px;
  text-decoration: none;
  color: var(--text-parchment);
  border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-image: none !important;
}

.tracker-row.is-on {
  color: var(--text-ivory);
  border-left-color: var(--color-on);
  background-color: hsla(var(--hue-on), var(--harmony-s), var(--harmony-l), 0.06);
  background-image: none !important;
}

.tracker-row.is-off {
  color: var(--text-dust);
  border-left-color: var(--off-border);
  opacity: 0.65;
}

.tracker-row.is-off .tracker-icon {
  filter: grayscale(0.85);
  opacity: 0.6;
}

.tracker-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
  background-image: none !important;
}

.tracker-status {
  width: 12px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  flex-shrink: 0;
}

.tracker-row.is-on .tracker-status { color: var(--color-on); }
.tracker-row.is-off .tracker-status { color: var(--color-off); }

.tracker-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tracker-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-on);
}

.tracker-meta-icons {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
}

.tracker-missing-class-icon {
  width: 15px;
  height: 15px;
}

/* Campfire Cards & Missing Icons */
.camp-card {
  background: var(--bg-input);
  border: 1px solid var(--border-bronze);
}

.camp-card + .camp-card {
  margin-top: 6px;
}

.camp-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-bronze);
  border-left: 2px solid var(--color-on);
}

.camp-card-head:hover {
  color: var(--gold-crest);
}

.camp-tiers {
  list-style: none;
  margin: 0;
  padding: 2px 0;
}

.camp-tiers li {
  display: flex;
  gap: 6px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-parchment);
}

.tier-req {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  min-width: 24px;
  text-align: right;
  flex-shrink: 0;
}

.tier-1 { color: hsl(45, 85%, 60%); }
.tier-2 { color: hsl(32, 85%, 58%); }
.tier-3 { color: hsl(18, 80%, 58%); }

.tier-text b {
  color: #ffffff;
  font-weight: 700;
}

.camp-missing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding-top: 6px;
  width: 100%;
}

.camp-missing-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dust);
  margin-right: 2px;
  flex-shrink: 0;
}

.camp-missing-icons {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.camp-missing a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.camp-missing-icon {
  width: 18px;
  height: 18px;
  display: block;
  filter: grayscale(1);
  opacity: 0.5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0px;
  transition: all 0.12s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.camp-missing a:hover .camp-missing-icon {
  filter: none;
  opacity: 1;
  border-color: var(--gold-barrens);
}

/* ==========================================================================
   10. STICKY LIVE SUMMARY BAR & FLOATING WOWHEAD TOOLTIP
   ========================================================================== */
.live-summary-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  height: 44px;
  background: linear-gradient(90deg, #080706 0%, #161310 50%, #080706 100%);
  border-top: 2px solid var(--gold-barrens);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.85);
}

.summary-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-status-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-ivory);
  min-width: 0;
}

.summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-crest);
  box-shadow: 0 0 8px rgba(242, 201, 109, 0.65);
  flex-shrink: 0;
}

/* Streamlined Compact Footer (Matches /polls) */
.app-footer.compact-footer {
  padding: 10px 16px;
  margin-top: 32px;
  border-top: 1px solid var(--border-bronze, #473621);
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.96) 0%, rgba(8, 7, 6, 0.99) 100%);
  color: var(--text-dust, #9a8f7e);
}

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

.footer-brand-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
}

.footer-brand-link {
  color: var(--gold-barrens, #d4a44c);
  font-weight: 800;
  text-decoration: none;
}

.footer-brand-link:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(212, 164, 76, 0.6);
}

.footer-compact-sep {
  color: #475569;
}

.footer-compact-desc {
  color: #64748b;
  font-size: 11px;
}

.footer-gateway-dropdown-wrap {
  position: relative;
}

.btn-footer-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.btn-footer-dropdown:hover {
  color: #ffffff;
  border-color: var(--gold-barrens, #d4a44c);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.footer-caret {
  font-size: 9px;
  color: var(--gold-barrens, #d4a44c);
  transition: transform 0.2s ease;
}

.footer-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #060a12;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.85);
  padding: 4px 0;
  min-width: 220px;
  z-index: 100;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}

.footer-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.footer-dropdown-item:hover {
  background: rgba(0, 240, 255, 0.15);
  color: #ffffff;
}

.footer-wow-icon {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  vertical-align: -2px;
  margin-right: 4px;
}

.wow-floating-tooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  background: rgba(10, 10, 14, 0.97);
  border: 1px solid var(--gold-barrens);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 14px rgba(212, 164, 76, 0.25);
  padding: 8px 12px;
  min-width: 170px;
  max-width: 280px;
  font-family: var(--font-sans);
}

.tt-header { display: flex; align-items: center; gap: 8px; }
.tt-icon { width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, 0.2); }
.tt-name { font-weight: 800; color: #ffffff; font-size: 13px; }
.tt-type { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--gold-barrens); }
.tt-desc { font-size: 11px; color: var(--text-parchment); line-height: 1.4; margin-top: 4px; }

/* ==========================================================================
   11. RESPONSIVE & MOBILE EASE-OF-USE (<= 1120px, <= 960px, <= 768px, <= 680px)
   ========================================================================== */
.mobile-time-blocks-panel,
.mobile-only-view-toggle,
.mob-only-spec-text,
.planner-mobile-tabs {
  display: none;
}

.availability-grid-wrapper.is-mob-collapsed {
  display: none;
}

@media (max-width: 1120px) {
  .guild-nav-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .step1-horizontal-layout,
  .step4-top-grid,
  .step4-class-spec-grid,
  .step4-profs-grid,
  .step6-controls-row,
  .auth-compact-grid,
  .planner-grid,
  .offspec-inline-row,
  .officer-filters-row {
    grid-template-columns: 1fr;
  }

  .wow-logo-header {
    padding: 8px 12px;
  }

  .wow-logo-emblem {
    width: 36px;
    height: 36px;
    border-radius: 0px;
    border: 1px solid var(--border-bronze);
  }

  .groups-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Prevent iOS Safari & Chrome Mobile auto-zoom on input focus */
  input[type="text"],
  input[type="password"],
  input[type="search"],
  select,
  textarea,
  .gold-input,
  .gold-input.compact {
    font-size: 16px !important;
    min-height: 40px !important;
  }

  .page-container {
    padding: 12px 12px 48px;
  }

  .hero-banner-container,
  .hero-card.hero-banner-compact .hero-banner-container,
  .hero-banner-container.hero-banner-compact {
    height: 75px !important;
    min-height: 75px !important;
    max-height: 75px !important;
  }

  .btn-molten-submit {
    min-width: 0;
    width: 100%;
    height: 60px;
    padding: 0 18px;
    font-size: 14px;
  }

  .passcode-pair-cluster {
    flex-wrap: wrap;
    height: auto;
  }

  .hero-guild-title {
    font-size: clamp(1.45rem, 4.5vw, 2.2rem);
    letter-spacing: 0.2em;
    padding-left: 0.2em;
  }

  .launch-strip {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 12px;
    gap: 8px;
  }

  .subnav-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .subnav-tab {
    padding: 0 8px;
    font-size: 11px;
  }

  .aligned-grid-6,
  .aligned-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aligned-grid-4,
  .aligned-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playstyle-3col-grid {
    grid-template-columns: 1fr;
  }

  #offspecScaleButtons,
  #levelingScaleButtons,
  #sweatScaleButtons,
  #pvpScaleButtons {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .sharp-scale-pill {
    flex-direction: column;
    gap: 2px;
    padding: 4px 2px;
    border-radius: var(--radius-btn);
  }

  .sharp-scale-pill > .scale-wow-icon {
    display: none;
  }

  /* Step 6 Quick Time-Block Bar */
  .mobile-time-blocks-panel {
    display: block;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--border-bronze);
    background: rgba(16, 14, 12, 0.92);
  }

  .mobile-time-blocks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  /* Tab 2 Raid Planner: 3-Way Segmented Mobile Switcher */
  .planner-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--border-bronze);
    background: rgba(16, 14, 12, 0.96);
  }

  .planner-mob-tab {
    min-height: 36px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-bronze);
    background: rgba(22, 19, 16, 0.92);
    color: var(--text-parchment);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }

  .planner-mob-tab.active {
    background: rgba(212, 164, 76, 0.22);
    border-color: var(--gold-barrens);
    color: var(--gold-crest);
  }

  #plannerGridContainer[data-active-mob-tab="available"] > .planner-panel:not([data-mob-panel="available"]),
  #plannerGridContainer[data-active-mob-tab="groups"] > .planner-panel:not([data-mob-panel="groups"]),
  #plannerGridContainer[data-active-mob-tab="tracker"] > .planner-panel:not([data-mob-panel="tracker"]) {
    display: none;
  }
}

@media (max-width: 680px) {
  .guild-nav-bar {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px;
    padding-bottom: 2px;
  }

  .guild-nav-bar::-webkit-scrollbar {
    display: none;
  }

  .guild-nav-bar .nav-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
  }

  .mobile-only-view-toggle {
    display: inline-flex;
  }

  /* Zero-Scroll Mobile Raider Card Layout for #rosterTable */
  .table-wrapper.mobile-cards-mode {
    overflow-x: visible;
  }

  .table-wrapper.mobile-cards-mode .roster-table,
  .table-wrapper.mobile-cards-mode .roster-table tbody {
    display: block;
    width: 100%;
  }

  .table-wrapper.mobile-cards-mode .roster-table thead {
    display: none;
  }

  .table-wrapper.mobile-cards-mode .roster-table tr.roster-mob-card-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas:
      "fac race name actions"
      "spec spec profs socials";
    align-items: center;
    gap: 6px 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-bronze);
    background: rgba(22, 19, 16, 0.92);
  }

  .table-wrapper.mobile-cards-mode .roster-table td {
    padding: 0;
    border: none;
    height: auto;
    background: transparent !important;
  }

  .table-wrapper.mobile-cards-mode .roster-table td[data-label="Realm"],
  .table-wrapper.mobile-cards-mode .roster-table td[data-label="Racials"] {
    display: none;
  }

  .table-wrapper.mobile-cards-mode .roster-table td[data-label="Raider"] { grid-area: fac; }
  .table-wrapper.mobile-cards-mode .roster-table td[data-label="Race"] { grid-area: race; }
  .table-wrapper.mobile-cards-mode .roster-table td[data-label="Character"] { grid-area: name; font-size: 14px; }
  .table-wrapper.mobile-cards-mode .roster-table td[data-label="Actions"] { grid-area: actions; justify-self: end; }
  .table-wrapper.mobile-cards-mode .roster-table td[data-label="Class & Spec"] { grid-area: spec; justify-self: start; }
  .table-wrapper.mobile-cards-mode .roster-table td[data-label="Primary Crafts"] { grid-area: profs; justify-self: start; }
  .table-wrapper.mobile-cards-mode .roster-table td[data-label="Secondary Crafts"] { display: none; }
  .table-wrapper.mobile-cards-mode .roster-table td[data-label="Socials"] { grid-area: socials; justify-self: end; }
}

/* Desktop Character Roster Overhaul (Raider Sonic, Big Class Names, 95%/5% Split) */
@media (min-width: 769px) {
  #rosterTable {
    --ro-tile: 48px;
    --ro-gap: 3px;
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  #rosterTable thead th {
    padding: 6px 4px !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    vertical-align: middle !important;
  }

  #rosterTable tbody td {
    padding: 4px !important;
    height: 57px !important;
    line-height: 0 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
  }

  #rosterTable th.col-raider,
  #rosterTable td.col-raider {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    padding: 4px !important;
    text-align: center !important;
  }

  #rosterTable th.col-race,
  #rosterTable td.col-race {
    width: 57px !important;
    min-width: 57px !important;
    max-width: 57px !important;
    padding: 4px !important;
    text-align: center !important;
  }

  #rosterTable th.col-name,
  #rosterTable td.col-name {
    width: auto !important;
    min-width: 220px !important;
    padding: 4px !important;
    text-align: center !important;
  }

  #rosterTable th.col-class-spec,
  #rosterTable td.col-class-spec {
    width: 159px !important;
    min-width: 159px !important;
    max-width: 159px !important;
    padding: 4px !important;
    text-align: center !important;
  }

  #rosterTable th.col-racials,
  #rosterTable td.col-racials {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
    padding: 4px !important;
    text-align: center !important;
  }

  #rosterTable th.col-primary-profs,
  #rosterTable td.col-primary-profs {
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    padding: 4px !important;
    text-align: center !important;
  }

  #rosterTable th.col-secondary-profs,
  #rosterTable td.col-secondary-profs {
    width: 159px !important;
    min-width: 159px !important;
    max-width: 159px !important;
    padding: 4px !important;
    text-align: center !important;
  }

  #rosterTable th.col-socials,
  #rosterTable td.col-socials {
    width: 43px !important;
    min-width: 43px !important;
    max-width: 43px !important;
    padding: 4px !important;
    text-align: center !important;
  }

  #rosterTable thead th.col-socials {
    padding: 6px 1px !important;
    font-size: 7.5px !important;
    letter-spacing: 0.01em !important;
  }

  #rosterTable th.col-actions,
  #rosterTable td.col-actions {
    width: 43px !important;
    min-width: 43px !important;
    max-width: 43px !important;
    padding: 4px !important;
    text-align: center !important;
  }

  #rosterTable thead th.col-actions {
    padding: 6px 2px !important;
    font-size: 8.5px !important;
    letter-spacing: 0.03em !important;
  }

  #rosterTable td.col-name .char-name {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: var(--ro-tile) !important;
    min-height: var(--ro-tile) !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    font-family: var(--font-display, 'Cinzel', serif) !important;
    font-size: clamp(22px, 2vw, 29px) !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    background:
      linear-gradient(
        90deg,
        color-mix(in srgb, var(--char-color, #ffffff) 24%, #090705) 0%,
        color-mix(in srgb, var(--char-color, #ffffff) 46%, #120e0a) 24%,
        color-mix(in srgb, var(--char-color, #ffffff) 60%, #17120c) 50%,
        color-mix(in srgb, var(--char-color, #ffffff) 46%, #120e0a) 76%,
        color-mix(in srgb, var(--char-color, #ffffff) 24%, #090705) 100%
      ) !important;
    border-style: solid !important;
    border-width: 1.5px !important;
    border-top-color: color-mix(in srgb, var(--char-color, #ffffff) 90%, #ffffff) !important;
    border-left-color: color-mix(in srgb, var(--char-color, #ffffff) 78%, #e6c687) !important;
    border-right-color: color-mix(in srgb, var(--char-color, #ffffff) 78%, #e6c687) !important;
    border-bottom-color: color-mix(in srgb, var(--char-color, #ffffff) 62%, #1e150d) !important;
    outline: 1px solid rgba(0, 0, 0, 0.95) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -1px 0 rgba(0, 0, 0, 0.85),
      inset 0 0 18px color-mix(in srgb, var(--char-color, #ffffff) 36%, transparent),
      inset 0 0 10px rgba(0, 0, 0, 0.55),
      0 2px 6px rgba(0, 0, 0, 0.92),
      0 0 12px color-mix(in srgb, var(--char-color, #ffffff) 22%, transparent) !important;
    -webkit-text-stroke: 0px transparent;
    text-shadow: none !important;
    overflow: hidden !important;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, filter 0.14s ease !important;
  }

  #rosterTable td.col-name .char-name::before {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid color-mix(in srgb, var(--char-color, #ffffff) 38%, rgba(255, 255, 255, 0.16));
    pointer-events: none;
  }

  #rosterTable td.col-name .char-name:hover {
    border-top-color: #ffffff !important;
    border-left-color: color-mix(in srgb, var(--char-color, #ffd700) 92%, #ffffff) !important;
    border-right-color: color-mix(in srgb, var(--char-color, #ffd700) 92%, #ffffff) !important;
    border-bottom-color: color-mix(in srgb, var(--char-color, #ffd700) 75%, #473621) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      inset 0 -1px 0 rgba(0, 0, 0, 0.95),
      inset 0 0 16px color-mix(in srgb, var(--char-color, #ffffff) 32%, transparent),
      0 3px 10px rgba(0, 0, 0, 0.95),
      0 0 14px color-mix(in srgb, var(--char-color, #ffffff) 48%, transparent) !important;
    filter: brightness(1.08) !important;
  }

  #rosterTable .icon-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--ro-gap) !important;
    width: max-content !important;
    height: var(--ro-tile) !important;
    margin: 0 auto !important;
    line-height: 1 !important;
    vertical-align: middle !important;
  }

  #rosterTable .icon-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--ro-tile) !important;
    height: var(--ro-tile) !important;
    flex: 0 0 var(--ro-tile) !important;
    vertical-align: middle !important;
  }

  #rosterTable td.col-race > .icon-link {
    display: flex !important;
    margin: 0 auto !important;
  }

  #rosterTable .ro-icon,
  #rosterTable .ro-icon--sec {
    width: var(--ro-tile) !important;
    height: var(--ro-tile) !important;
    min-width: var(--ro-tile) !important;
    min-height: var(--ro-tile) !important;
    object-fit: cover !important;
    display: block !important;
    border: 1.5px solid rgba(212, 164, 76, 0.42) !important;
    box-sizing: border-box !important;
    background: #050403 !important;
  }

  #rosterTable .raider-hedgehog-wrap {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--ro-tile) !important;
    height: var(--ro-tile) !important;
    margin: 0 auto !important;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--hedgehog-glow, #ffd700) 26%, rgba(10, 8, 6, 0.96)) 0%, #050403 100%) !important;
    border: 1.5px solid color-mix(in srgb, var(--hedgehog-glow, #ffd700) 72%, #473621) !important;
    box-shadow: inset 0 0 10px color-mix(in srgb, var(--hedgehog-glow, #ffd700) 24%, transparent), 0 0 8px color-mix(in srgb, var(--hedgehog-glow, #ffd700) 32%, transparent) !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  #rosterTable .raider-hedgehog-wrap.is-gold {
    border-color: #ffd700 !important;
    box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.35), 0 0 10px rgba(255, 215, 0, 0.55) !important;
  }

  #rosterTable .ro-icon--hedgehog {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    padding: 1px !important;
    border: none !important;
    background: transparent !important;
    filter: drop-shadow(0 0 5px var(--hedgehog-glow, rgba(255, 215, 0, 0.85))) !important;
  }

  #rosterTable .raider-slot-empty,
  #rosterTable .ro-slot-empty {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--ro-tile) !important;
    height: var(--ro-tile) !important;
    flex: 0 0 var(--ro-tile) !important;
    background: rgba(8, 7, 6, 0.72) !important;
    border: 1px dashed rgba(212, 164, 76, 0.22) !important;
    color: rgba(214, 203, 184, 0.28) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
  }

  #rosterTable td.col-raider > .raider-slot-empty {
    display: flex !important;
    margin: 0 auto !important;
  }

  #rosterTable td.col-socials .socials-cell,
  #rosterTable td.col-actions .row-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2px !important;
    width: 34px !important;
    height: var(--ro-tile) !important;
    margin: 0 auto !important;
  }

  #rosterTable td.col-socials .social-icon-btn,
  #rosterTable td.col-actions .btn-row-action {
    width: 34px !important;
    height: 23px !important;
    min-width: 34px !important;
    min-height: 23px !important;
    box-sizing: border-box !important;
  }
}
