/* ==========================================================================
   RUNE CLAN WARS - CORE MODERN OSRS STYLE SHEET
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  --color-bg: #0b0a08;
  --color-bg-darker: #050504;
  --color-panel: #1b1814;
  --color-panel-border: #322a20;
  --color-panel-light: #28241e;
  
  --color-gold: #ffc107;
  --color-gold-hover: #ffdb70;
  --color-gold-dark: #b8860b;
  --color-text-gold: #ecdcc5;
  --color-text-main: #f0ebd9;
  --color-text-muted: #9c9284;
  
  --color-sara: #2c6cb0;
  --color-sara-bg: #152538;
  --color-sara-border: #234366;
  --color-sara-glow: rgba(44, 108, 176, 0.4);

  --color-zam: #c53030;
  --color-zam-bg: #351515;
  --color-zam-border: #632020;
  --color-zam-glow: rgba(197, 48, 48, 0.4);

  --color-danger: #e53e3e;
  --color-success: #38a169;
  
  --font-display: 'Cinzel', serif;
  --font-brand: 'Cinzel Decorative', serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 15px rgba(255, 193, 7, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--color-panel-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* Reset & Global Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(27, 24, 20, 0.4) 0%, rgba(5, 5, 4, 0.9) 80%),
    url("https://www.transparenttextures.com/patterns/dark-matter.png");
  color: var(--color-text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Vignette */
.bg-vignette {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

/* App Layout Container */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, #15120f 80%, rgba(21, 18, 15, 0.9) 100%);
  border-bottom: 2px solid var(--color-panel-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  max-width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--color-gold);
  filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.4));
}

.logo-text {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff7db 0%, var(--color-gold) 60%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-nav {
  display: flex;
  gap: 1rem;
}

/* Nav Buttons */
.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  color: var(--color-text-main);
  background: rgba(255,255,255,0.03);
}

.nav-btn.active {
  color: var(--color-gold);
  background: var(--color-panel-light);
  border: 1px solid var(--color-panel-border);
  box-shadow: var(--shadow-gold), inset 0 0 10px rgba(255, 193, 7, 0.1);
  filter: drop-shadow(0 0 2px rgba(255,193,7,0.2));
}

/* App Main Content Area */
.app-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* App Views display switcher */
.app-view {
  display: none;
}
.app-view.active {
  display: block;
}

/* ==========================================================================
   VIEW: WELCOME / LOGIN SCREEN
   ========================================================================== */
#view-welcome {
  display: none;
  min-height: calc(100vh - 8rem);
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

#view-welcome.active {
  display: flex;
}

.welcome-card {
  max-width: 480px;
  width: 100%;
  margin: auto;
  text-align: center;
  padding: 3rem 2.2rem;
  border: 2px solid var(--color-panel-border);
  background: linear-gradient(145deg, #1b1814 0%, #100f0d 100%);
  box-shadow: 0 25px 60px rgba(0,0,0,0.85), var(--shadow-gold);
  animation: modal-slide-up 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.welcome-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.logo-icon-large {
  font-size: 3.5rem;
  color: var(--color-gold);
  filter: drop-shadow(0 0 12px rgba(255, 193, 7, 0.45));
}

.welcome-title {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff7db 0%, var(--color-gold) 60%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-tagline {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 2.2rem;
}

.welcome-form .form-group input {
  font-size: 1.05rem;
  padding: 0.8rem 1.2rem;
  text-align: center;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.btn-lg {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border-radius: 6px;
}

/* ==========================================================================
   LOBBY USER WELCOME PORTAL BAR
   ========================================================================== */
.lobby-user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #14120f;
  border: 1px solid var(--color-panel-border);
  border-radius: 6px;
  padding: 0.8rem 1.4rem;
  margin-bottom: 2rem;
}

.user-bar-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--color-text-main);
}

.user-bar-icon {
  font-size: 1.1rem;
  color: var(--color-gold);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--color-gold);
  text-shadow: 0 0 5px rgba(255, 193, 7, 0.4);
}

/* ==========================================================================
   CARDS & REUSABLE PANELS
   ========================================================================== */
.card {
  background: var(--color-panel);
  border: 1.5px solid var(--color-panel-border);
  border-radius: 6px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  margin-bottom: 2rem;
}

/* Event Banner Accent */
.event-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.8rem 2.2rem;
}

.event-banner-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sara) 0%, var(--color-gold) 50%, var(--color-zam) 100%);
}

.event-info {
  flex: 1;
}

.event-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.event-description {
  color: var(--color-text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
  max-width: 750px;
}

/* Team Stats Indicators */
.event-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.vs-divider {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-panel-border);
  background: #0f0e0c;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-panel-border);
}

.team-cap-badge {
  background: var(--color-bg-darker);
  border-radius: 6px;
  padding: 0.8rem 1.4rem;
  min-width: 140px;
  width: auto;
  max-width: 220px;
  text-align: center;
  border: 1px solid var(--color-panel-border);
}

.team-cap-badge.saradomin { border-top: 3px solid var(--color-sara); }
.team-cap-badge.zamorak { border-top: 3px solid var(--color-zam); }

.badge-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.badge-count {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.badge-bar {
  background: #191714;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.badge-fill {
  height: 100%;
  transition: width 0.5s ease-out;
}
.saradomin .badge-fill { background: var(--color-sara); box-shadow: 0 0 6px var(--color-sara); }
.zamorak .badge-fill { background: var(--color-zam); box-shadow: 0 0 6px var(--color-zam); }

/* ==========================================================================
   ACTIVE EVENT REGISTRATION STATUS BANNER
   ========================================================================== */
.active-registration-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1b1610 0%, #2a1f12 100%);
  border: 1.5px solid #d4a373;
  box-shadow: 0 0 20px rgba(212, 163, 115, 0.2);
  border-radius: 6px;
  padding: 1.2rem 1.8rem;
  margin-bottom: 2.5rem;
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 15px rgba(212, 163, 115, 0.15); }
  50% { box-shadow: 0 0 25px rgba(212, 163, 115, 0.3); }
  100% { box-shadow: 0 0 15px rgba(212, 163, 115, 0.15); }
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.banner-icon {
  font-size: 1.3rem;
  color: var(--color-gold);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   VIEWS - LOBBY
   ========================================================================== */
.lobby-team-picker {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-gold);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 850px;
  margin: 0 auto;
}

/* Team Selection Card */
.team-select-card {
  background: var(--color-panel);
  border: 2px solid var(--color-panel-border);
  border-radius: 8px;
  padding: 2.2rem 1.8rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.team-select-card.saradomin::before,
.team-select-card.zamorak::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  transition: var(--transition-normal);
  pointer-events: none;
}

.team-select-card.saradomin::before {
  background: radial-gradient(circle, var(--color-sara) 0%, transparent 70%);
}
.team-select-card.zamorak::before {
  background: radial-gradient(circle, var(--color-zam) 0%, transparent 70%);
}

.team-shield {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-select-card.saradomin .team-shield { color: var(--color-sara); filter: drop-shadow(0 0 10px rgba(44,108,176,0.3)); }
.team-select-card.zamorak .team-shield { color: var(--color-zam); filter: drop-shadow(0 0 10px rgba(197,48,48,0.3)); }

.team-select-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 0.5px;
}

.selection-indicator {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

/* Team Select Hovers & Actives */
.team-select-card:hover {
  border-color: var(--color-gold-dark);
  transform: translateY(-4px);
}
.team-select-card:hover .team-shield {
  transform: scale(1.1);
}

.team-select-card.saradomin.selected {
  border-color: var(--color-sara);
  background: var(--color-sara-bg);
  box-shadow: 0 0 25px var(--color-sara-glow);
}
.team-select-card.zamorak.selected {
  border-color: var(--color-zam);
  background: var(--color-zam-bg);
  box-shadow: 0 0 25px var(--color-zam-glow);
}

.team-select-card.selected .selection-indicator {
  opacity: 1;
  transform: translateY(0);
}
.team-select-card.saradomin.selected .selection-indicator { color: var(--color-sara); }
.team-select-card.zamorak.selected .selection-indicator { color: var(--color-zam); }

/* Classes Section Block */
.lobby-classes-section {
  border-top: 1px dashed var(--color-panel-border);
  padding-top: 2.5rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lobby-classes-section.disabled {
  opacity: 0.25;
  pointer-events: none;
  filter: grayscale(80%);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.step-guide-text {
  font-size: 0.9rem;
  color: var(--color-gold);
  font-weight: 600;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 2rem;
}

/* Class Display Card */
.class-card {
  background: var(--color-panel);
  border: 1.5px solid var(--color-panel-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-main);
  transition: var(--transition-normal);
}

.class-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-panel-border);
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

.class-card-header {
  padding: 1.2rem 1.4rem;
  background: #1f1b16;
  border-bottom: 1.5px solid var(--color-panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.class-card-header h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-text-gold);
  letter-spacing: 0.5px;
}

.class-qty-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: var(--color-bg-darker);
  border: 1px solid var(--color-panel-border);
  color: var(--color-text-muted);
}
.class-qty-badge.available {
  border-color: rgba(56, 161, 105, 0.3);
  color: var(--color-success);
  background: rgba(56, 161, 105, 0.08);
}
.class-qty-badge.full {
  border-color: rgba(229, 62, 98, 0.3);
  color: var(--color-danger);
  background: rgba(229, 62, 98, 0.08);
}

.class-card-body {
  padding: 1.2rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.class-card-body:hover {
  background: rgba(255, 255, 255, 0.015);
}

.class-card-body::after {
  content: '🔍 Click Card to Inspect Full Gear & Inventory';
  position: absolute;
  bottom: 0.4rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold);
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition-fast);
  pointer-events: none;
}

.class-card-body:hover::after {
  opacity: 0.8;
  transform: translateY(0);
}

.class-card-desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  min-height: 56px;
}

/* Equipment Preview Icons row */
.class-gear-previews {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--color-bg-darker);
  padding: 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--color-panel-border);
}

.preview-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-gold);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--color-panel-border);
  padding-bottom: 0.4rem;
  width: 100%;
}

.gear-preview-icons-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
}

.preview-item-slot {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 80px;
  max-height: 80px;
  min-width: 52px;
  border-radius: 6px;
  background: radial-gradient(circle, #3d3226 0%, #120f0c 100%);
  border: 1.5px solid #5a4b38;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.85), 0 2px 5px rgba(0,0,0,0.5);
  transition: var(--transition-fast);
}

.preview-item-slot:hover {
  border-color: var(--color-gold);
  background: radial-gradient(circle, #4d3f30 0%, #16120e 100%);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.85), var(--shadow-gold);
}

.preview-item-slot img {
  max-width: 95%;
  max-height: 95%;
  width: 90%;
  height: 90%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.9)) brightness(1.25) contrast(1.15);
}

.preview-item-slot.empty::before {
  content: '';
  width: 15%;
  height: 15%;
  background: #332a20;
  border-radius: 50%;
}

.class-spellbook-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Dynamic Spellbook Symbols for badges */
.spellbook-symbol-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}
.spellbook-symbol-icon.standard { background: radial-gradient(circle, #ff5722 0%, #8d2b0b 80%); }
.spellbook-symbol-icon.ancient { background: radial-gradient(circle, #00bcd4 0%, #006064 80%); }
.spellbook-symbol-icon.lunar { background: radial-gradient(circle, #3f51b5 0%, #1a237e 80%); }
.spellbook-symbol-icon.arceuus { background: radial-gradient(circle, #9c27b0 0%, #4a148c 80%); }

/* Claim Lobby Card Footer Form */
.class-card-footer {
  padding: 1.2rem 1.4rem;
  background: #161411;
  border-top: 1.5px solid var(--color-panel-border);
  position: relative;
  z-index: 10;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-gold {
  background: linear-gradient(to bottom, #ffd043 0%, var(--color-gold) 60%, var(--color-gold-dark) 100%);
  color: #000;
  border: 1px solid #ffd043;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.btn-gold:hover:not(:disabled) {
  background: linear-gradient(to bottom, #ffe082 0%, var(--color-gold-hover) 100%);
  box-shadow: var(--shadow-gold);
}
.btn-gold:active:not(:disabled) {
  transform: scale(0.98);
}
.btn-gold:disabled {
  background: #201e1a;
  border-color: #2b2823;
  color: var(--color-text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: var(--color-panel-light);
  border: 1px solid var(--color-panel-border);
  color: var(--color-text-main);
}
.btn-secondary:hover {
  background: var(--color-panel-border);
  color: var(--color-gold);
}

.btn-red {
  background: linear-gradient(to bottom, #e53e3e 0%, var(--color-zam) 100%);
  border: 1px solid #fc8181;
  color: #fff;
}
.btn-red:hover {
  background: #f56565;
  box-shadow: 0 0 10px rgba(229, 62, 62, 0.4);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   VIEWS - LIVE ROSTER
   ========================================================================== */
.roster-split-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.roster-column {
  background: var(--color-panel);
  border: 1.5px solid var(--color-panel-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-main);
}

.roster-header {
  padding: 1.5rem 1.8rem;
  background: #14120f;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 2px solid var(--color-panel-border);
}

.header-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.roster-column.saradomin .header-decor { background: var(--color-sara); }
.roster-column.zamorak .header-decor { background: var(--color-zam); }

.team-icon {
  font-size: 1.5rem;
}
.saradomin .team-icon { color: var(--color-sara); }
.zamorak .team-icon { color: var(--color-zam); }

.roster-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.roster-list {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  min-height: 400px;
  align-content: start;
}

.roster-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  gap: 0.6rem;
  font-size: 0.9rem;
  text-align: center;
}
.roster-placeholder i {
  font-size: 2.2rem;
  opacity: 0.15;
}

/* Roster Row Player Card */
.roster-row {
  background: linear-gradient(135deg, #161411 0%, #0f0e0c 100%);
  border: 1.5px solid var(--color-panel-border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* Hover highlights by alignment */
.saradomin .roster-row:hover {
  border-color: rgba(44, 108, 176, 0.6);
  background: linear-gradient(135deg, #1b1c24 0%, #0e0f14 100%);
  box-shadow: 0 6px 16px rgba(44, 108, 176, 0.18), 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.zamorak .roster-row:hover {
  border-color: rgba(197, 48, 48, 0.6);
  background: linear-gradient(135deg, #241616 0%, #140e0e 100%);
  box-shadow: 0 6px 16px rgba(197, 48, 48, 0.18), 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Highlight the user's own roster card */
.roster-row.is-self {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, #221d15 0%, #120f0a 100%);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.15), inset 0 0 10px rgba(255, 193, 7, 0.05);
}

.roster-row.is-self::after {
  content: 'YOU';
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--color-gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 2;
}

.player-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-avatar {
  background: radial-gradient(circle, #2d261e 0%, #17130f 100%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  border: 2px solid var(--color-panel-border);
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.saradomin .player-avatar {
  color: var(--color-sara);
  border-color: rgba(44, 108, 176, 0.6);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8), 0 0 8px rgba(44, 108, 176, 0.25);
}

.zamorak .player-avatar {
  color: var(--color-zam);
  border-color: rgba(197, 48, 48, 0.6);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8), 0 0 8px rgba(197, 48, 48, 0.25);
}

.player-avatar img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)) brightness(1.2) contrast(1.15);
}

.player-name-wrapper {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.player-class-badge {
  font-size: 0.82rem;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.player-class-badge i {
  font-size: 0.75rem;
  opacity: 0.85;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.registered-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.btn-unregister {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-unregister:hover {
  color: var(--color-danger);
  background: rgba(229, 62, 62, 0.12);
}

/* ==========================================================================
   VIEWS - PRIVATE ADMIN SUITE
   ========================================================================== */
.admin-auth-card {
  max-width: 500px;
  margin: 4rem auto;
  text-align: center;
  padding: 3rem 2rem;
}

.auth-icon {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.3));
}

.admin-auth-card p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
  font-size: 0.92rem;
}

.auth-input-wrapper {
  display: flex;
  gap: 0.6rem;
}

.auth-input-wrapper input {
  flex: 1;
  background: var(--color-bg-darker);
  border: 1px solid var(--color-panel-border);
  color: var(--color-text-main);
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
}
.auth-input-wrapper input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.auth-error-msg {
  display: block;
  margin-top: 1rem;
  color: var(--color-danger);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Admin Dashboard Container */
.admin-dashboard-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

/* Sidebar Layout */
.admin-sidebar {
  padding: 0;
  align-self: start;
}

.admin-info-badge {
  padding: 1.2rem;
  background: #14120f;
  border-bottom: 1.5px solid var(--color-panel-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-badge-icon {
  font-size: 1.6rem;
  color: var(--color-gold);
}

.badge-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
}

.badge-status {
  font-size: 0.72rem;
  color: var(--color-success);
  font-weight: 600;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
  gap: 0.4rem;
}

.admin-nav-btn {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.admin-nav-btn:hover {
  background: rgba(255,255,255,0.03);
  color: var(--color-text-main);
}

.admin-nav-btn.active {
  background: var(--color-panel-light);
  border: 1px solid var(--color-panel-border);
  color: var(--color-gold);
}

.admin-nav-btn.danger {
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-panel-border);
  padding-top: 1rem;
  border-radius: 0;
}
.admin-nav-btn.danger:hover {
  color: var(--color-danger);
  background: rgba(229, 62, 62, 0.05);
}

/* Admin Tabs Content */
.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}

.tab-header-card {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.tab-header-card.space-between {
  justify-content: space-between;
}

.tab-header-card h3 {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.tab-header-card p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* Event Setup Settings Layout */
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.settings-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-gold);
  border-bottom: 1.5px solid var(--color-panel-border);
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--color-bg-darker);
  border: 1px solid var(--color-panel-border);
  border-radius: 4px;
  color: var(--color-text-main);
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-row-double {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.section-hint-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

/* Admin Class Limits List */
.admin-classes-limits-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.class-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-darker);
  border: 1px solid var(--color-panel-border);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

.class-limit-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.class-limit-checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-gold);
  cursor: pointer;
}

.class-limit-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.class-limit-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.class-limit-input-wrapper input {
  width: 50px;
  text-align: center;
  background: var(--color-panel);
  border: 1px solid var(--color-panel-border);
  color: var(--color-text-main);
  padding: 0.3rem;
  border-radius: 4px;
}

/* Administrative Danger Zone panel */
.danger-card {
  border-color: rgba(229, 62, 62, 0.25);
  background: linear-gradient(to right, var(--color-panel), rgba(197, 48, 48, 0.03));
}

.danger-card .settings-section-title {
  color: #feb2b2;
  border-color: rgba(229, 62, 62, 0.25);
}

.danger-row-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.danger-text strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #feb2b2;
}

.danger-text p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 700px;
}

.full-width {
  grid-column: 1 / span 2;
}

/* Classes Tab Admin Rows Grid */
.classes-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.class-admin-row {
  background: var(--color-panel);
  border: 1.5px solid var(--color-panel-border);
  padding: 1.2rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-main);
}

.class-admin-meta h5 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text-gold);
  margin-bottom: 0.3rem;
}

.class-admin-meta p {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.class-admin-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--color-panel-border);
  background: var(--color-panel-light);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  color: var(--color-text-main);
  background: var(--color-panel-border);
}
.btn-icon.edit-btn:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.btn-icon.delete-btn:hover {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

/* ==========================================================================
   MODALS - LAYOUTS & STYLES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: var(--color-panel);
  border: 2px solid var(--color-panel-border);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  max-width: 95%;
  animation: modal-slide-up 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes modal-slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1.2rem 1.5rem;
  background: #14120f;
  border-bottom: 1.5px solid var(--color-panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  color: var(--color-text-main);
}

.modal-body {
  padding: 1.5rem;
}

/* ==========================================================================
   CLASS GEAR & INVENTORY BUILDER LAYOUT
   ========================================================================== */
.class-builder-card {
  width: 1100px;
  max-width: 95vw;
}

.class-builder-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.5rem;
  padding: 1.8rem 2.2rem;
}

.builder-meta-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1.5px solid var(--color-panel-border);
  padding-right: 1.5rem;
}

.builder-actions {
  display: flex;
  gap: 0.8rem;
  border-top: 1px solid var(--color-panel-border);
  padding-top: 1.2rem;
  margin-top: 1rem;
}

.spellbook-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.spellbook-radio {
  cursor: pointer;
}
.spellbook-radio input {
  display: none;
}

.spellbook-radio-card {
  background: var(--color-bg-darker);
  border: 1px solid var(--color-panel-border);
  border-radius: 6px;
  padding: 0.7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.spellbook-symbol {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.standard .spellbook-symbol { background: radial-gradient(circle, #ff5722 0%, #8d2b0b 80%); box-shadow: 0 0 5px rgba(255, 87, 34, 0.2); }
.ancient .spellbook-symbol { background: radial-gradient(circle, #00bcd4 0%, #006064 80%); box-shadow: 0 0 5px rgba(0, 188, 212, 0.2); }
.lunar .spellbook-symbol { background: radial-gradient(circle, #3f51b5 0%, #1a237e 80%); box-shadow: 0 0 5px rgba(63, 81, 181, 0.2); }
.arceuus .spellbook-symbol { background: radial-gradient(circle, #9c27b0 0%, #4a148c 80%); box-shadow: 0 0 5px rgba(156, 39, 176, 0.2); }

.spellbook-radio input:checked + .spellbook-radio-card {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(255, 193, 7, 0.04);
}
.spellbook-radio input:checked + .spellbook-radio-card.standard { box-shadow: 0 0 10px rgba(255, 87, 34, 0.15); }
.spellbook-radio input:checked + .spellbook-radio-card.ancient { box-shadow: 0 0 10px rgba(0, 188, 212, 0.15); }
.spellbook-radio input:checked + .spellbook-radio-card.lunar { box-shadow: 0 0 10px rgba(63, 81, 181, 0.15); }
.spellbook-radio input:checked + .spellbook-radio-card.arceuus { box-shadow: 0 0 10px rgba(156, 39, 176, 0.15); }

/* Visual Builders Side by Side columns */
.builder-visual-area {
  display: flex;
  justify-content: space-around;
  gap: 1.5rem;
}

.panel-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-text-gold);
  margin-bottom: 0.2rem;
  text-align: center;
}

.panel-hint {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 1rem;
}

/* ==========================================================================
   OSRS EQUIPMENT GRID RECONSTRUCTION
   ========================================================================== */
.osrs-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  grid-template-rows: repeat(5, 72px);
  gap: 8px;
  justify-content: center;
  background: #14120f;
  padding: 14px;
  border-radius: 8px;
  border: 2px solid var(--color-panel-border);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.7);
  width: 260px;
  height: 420px;
  margin: 0 auto;
}

/* Equipment Grid slot placements */
.osrs-equipment-grid > div {
  width: 72px;
  height: 72px;
}

/* Specific alignments matching the in-game tab */
.equipment-slot-container {
  position: relative;
}

.equipment-slot {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #2d261e 0%, #0b0a09 100%);
  border: 1.5px solid #4a3e30;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.85);
}

.equipment-slot:hover {
  background: radial-gradient(circle, #3d3226 0%, #151310 100%);
  border-color: var(--color-gold);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.85), var(--shadow-gold);
}

.slot-placeholder-icon {
  width: 32px;
  height: 32px;
  fill: #3a3227;
  transition: var(--transition-fast);
  opacity: 0.45;
}

.equipment-slot:hover .slot-placeholder-icon {
  fill: #5a4f3e;
  opacity: 0.8;
}

/* Clicked populated items style */
.equipment-slot img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.85)) brightness(1.25) contrast(1.15);
}

.slot-remove-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.75rem;
  color: var(--color-danger);
  cursor: pointer;
  display: none;
  z-index: 10;
}

.equipment-slot-container:hover .slot-remove-btn {
  display: block;
}

/* Slot grid positioning */
.osrs-equipment-grid div[data-slot="head"]   { grid-column: 2; grid-row: 1; }
.osrs-equipment-grid div[data-slot="cape"]   { grid-column: 1; grid-row: 2; }
.osrs-equipment-grid div[data-slot="neck"]   { grid-column: 2; grid-row: 2; }
.osrs-equipment-grid div[data-slot="ammo"]   { grid-column: 3; grid-row: 2; }
.osrs-equipment-grid div[data-slot="weapon"] { grid-column: 1; grid-row: 3; }
.osrs-equipment-grid div[data-slot="body"]   { grid-column: 2; grid-row: 3; }
.osrs-equipment-grid div[data-slot="shield"] { grid-column: 3; grid-row: 3; }
.osrs-equipment-grid div[data-slot="legs"]   { grid-column: 2; grid-row: 4; }
.osrs-equipment-grid div[data-slot="hands"]  { grid-column: 1; grid-row: 5; }
.osrs-equipment-grid div[data-slot="feet"]   { grid-column: 2; grid-row: 5; }
.osrs-equipment-grid div[data-slot="ring"]   { grid-column: 3; grid-row: 5; }

/* ==========================================================================
   OSRS INVENTORY GRID RECONSTRUCTION
   ========================================================================== */
.osrs-inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  grid-template-rows: repeat(7, 60px);
  gap: 6px;
  background: #14120f;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid var(--color-panel-border);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.7);
  width: 282px;
  height: 480px;
  margin: 0 auto;
}

.inventory-slot-container {
  position: relative;
  width: 60px;
  height: 60px;
}

.inventory-slot {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #221d18 0%, #090807 100%);
  border: 1.5px solid #3d3327;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.85);
}

.inventory-slot:hover {
  background: radial-gradient(circle, #332a20 0%, #151310 100%);
  border-color: var(--color-gold);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.85), var(--shadow-gold);
}

.inventory-slot img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9)) brightness(1.25) contrast(1.15);
}

.inventory-slot-container:hover .slot-remove-btn {
  display: block;
}

/* ==========================================================================
   WIKI ITEM SEARCH MODAL LAYOUT
   ========================================================================== */
.item-search-card {
  width: 480px;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.search-input-wrapper input {
  width: 100%;
  background: var(--color-bg-darker);
  border: 1px solid var(--color-panel-border);
  border-radius: 4px;
  color: var(--color-text-main);
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
}
.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.search-spinner-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1rem;
}
.search-spinner-icon.spinning {
  animation: spin 1s linear infinite;
  color: var(--color-gold);
}

@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.search-results-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid var(--color-panel-border);
  background: var(--color-bg-darker);
  border-radius: 4px;
  padding: 0.5rem;
  min-height: 180px;
}

.search-placeholder-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex: 1;
  text-align: center;
  padding: 2rem 1rem;
  gap: 0.8rem;
  font-size: 0.88rem;
}

.search-decor-icon {
  font-size: 2rem;
  opacity: 0.15;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.8rem;
  background: var(--color-panel);
  border: 1px solid var(--color-panel-border);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-result-row:hover {
  background: var(--color-panel-light);
  border-color: var(--color-gold);
}

.search-result-thumb {
  width: 32px;
  height: 32px;
  background: #100f0d;
  border: 1px solid #1c1813;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-thumb img {
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
}

.search-result-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 500;
}

.toast {
  background: var(--color-panel);
  border: 1.5px solid var(--color-panel-border);
  border-radius: 6px;
  padding: 0.9rem 1.4rem;
  color: var(--color-text-main);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 280px;
  max-width: 400px;
  animation: toast-slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes toast-slide-in {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--color-success); }
.toast.error { border-left: 4px solid var(--color-danger); }
.toast.info { border-left: 4px solid var(--color-gold); }

.toast-icon.success { color: var(--color-success); }
.toast-icon.error { color: var(--color-danger); }
.toast-icon.info { color: var(--color-gold); }

.toast-message {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

/* ==========================================================================
   READ ONLY INSPECTOR FIXES
   ========================================================================== */
#modal-class-inspector .equipment-slot,
#modal-class-inspector .inventory-slot {
  cursor: default !important;
}

#modal-class-inspector .equipment-slot:hover,
#modal-class-inspector .inventory-slot:hover {
  background: #0b0a09;
  border-color: #2d261e;
}

#modal-class-inspector .inventory-slot:hover {
  background: #090807;
  border-color: #1c1813;
}

/* ==========================================================================
   UTILITY HELPER CLASSES
   ========================================================================== */
.hidden {
  display: none !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .admin-dashboard-container {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    width: 100%;
  }
  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .admin-nav-btn.danger {
    margin-top: 0;
    border-top: none;
    padding-top: 0.7rem;
  }
  .class-builder-layout {
    grid-template-columns: 1fr;
  }
  .builder-meta-form {
    border-right: none;
    border-bottom: 1.5px solid var(--color-panel-border);
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
  }
  .builder-visual-area {
    flex-wrap: wrap;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .event-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .team-cards-grid {
    grid-template-columns: 1fr;
  }
  .roster-split-layout {
    grid-template-columns: 1fr;
  }
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: 1;
  }
  .classes-admin-grid {
    grid-template-columns: 1fr;
  }
}
