﻿/* LandLords Ladder CSS - concatenated bundle (auto-generated) */
/* Source: bundle.css @import chain - flattened to eliminate serial download waterfall */

/* LandLords Ladder Bundle - Imports all ladder components in order */

/* === core/variables.css === */
/**
 * LandLords: Epos — Ladder CSS Variables Bridge
 *
 * Canonical tokens: www/css/design-tokens.css
 * This file exists for backward compatibility.
 *
 * Previously contained role/server-type tokens and ladder-specific
 * animations + panel layout — all moved upstream to design-tokens.css.
 *
 * @version 4.0.0
 * @last-modified 2026-07-26
 */
/* === ../../../css/design-tokens.css === */
/**
 * LandLords: Epos вЂ” Canonical Design Tokens
 *
 * SINGLE SOURCE OF TRUTH for ALL CSS custom properties consumed by
 * ladder, viewer, HUD, app-shell, and all frontend parts.
 *
 * Layer architecture: reset в†’ tokens в†’ layout в†’ components в†’ utilities
 *
 * Imported by:
 *   www/css/core/variables.css в†’ www/css/design-tokens.css
 *   www/ladder/css/core/variables.css в†’ www/css/design-tokens.css
 *
 * WHY ONLY 3 FILES IMPORT THIS (of 59 CSS files):
 * The ladder, admin, and HUD CSS bundles are isolated TypeScript compilation
 * units (`ladder/tsconfig.json`, `ladder/tsconfig.admin.json`, `hud/tsconfig.json`).
 * Each has its own `core/variables.css` that acts as a single import gateway вЂ”
 * all other CSS files in that bundle inherit tokens via CSS custom property
 * cascade, not via repeated @import. This avoids duplicate imports in bundled
 * output and keeps the dependency graph a tree. The 3 importers are the 3
 * bundle entry points: viewer.css, ladder core/variables.css, viewer core/variables.css.
 *
 * DO NOT define the same token elsewhere. Extend here only.
 *
 * @version 3.0.0
 * @last-modified 2026-08-03
 */

@layer tokens {

:root {
  /* ==========================================================================
     1. COLORS вЂ” PRIMARY (earth, leather, wood)
     ========================================================================== */
  --color-primary: #8B4513;
  --color-primary-dark: #654321;
  --color-primary-light: #A0522D;

  /* ==========================================================================
     2. COLORS вЂ” SECONDARY (parchment, sand)
     ========================================================================== */
  --color-secondary: #CD853F;
  --color-secondary-light: #DEB887;

  /* ==========================================================================
     3. COLORS вЂ” ACCENT (gold, royal)
     ========================================================================== */
  --color-accent: #FFD700;
  --color-accent-hover: #FFC700;
  --color-accent-dim: rgba(255, 215, 0, 0.15);

  /* ==========================================================================
     4. COLORS вЂ” BACKGROUNDS (dark default вЂ” NO LIGHT MODE)
     ========================================================================== */
  --color-bg: #1a1a1a;
  --color-bg-light: #2d2d2d;
  --color-surface: #252525;
  --color-surface-hover: #2f2f2f;

  /* ==========================================================================
     5. COLORS вЂ” TEXT
     ========================================================================== */
  --color-text: #F5DEB3;
  --color-text-muted: #888;
  --color-text-light: #fff;
  --color-text-disabled: #555;

  /* ==========================================================================
     6. COLORS вЂ” STATUS
     ========================================================================== */
  --color-success: #4CAF50;
  --color-success-light: #66BB6A;
  --color-warning: #FF9800;
  --color-warning-light: #FFB74D;
  --color-error: #F44336;
  --color-error-light: #EF5350;
  --color-info: #2196F3;
  --color-info-light: #42A5F5;

  /* ==========================================================================
     7. COLORS вЂ” PARCHMENT
     ========================================================================== */
  --color-parchment: #3a2a1a;
  --color-parchment-light: #4a3a2a;
  --color-parchment-edge: #2a1a0a;

  /* ==========================================================================
     8. COLORS вЂ” GOLD EFFECTS
     ========================================================================== */
  --color-gold-dim: rgba(255, 215, 0, 0.15);
  --color-gold-glow: rgba(255, 215, 0, 0.4);
  --color-gold-inner-border: rgba(255, 215, 0, 0.12);
  --color-gold-accent-line: rgba(255, 215, 0, 0.3);

  /* ==========================================================================
     9. COLORS вЂ” VIEWER MEDIEVAL PALETTE
     ========================================================================== */
  --color-bg-dark: #0f0e0a;
  --color-gradient-start: #1a1610;
  --color-gradient-end: #12100a;
  --color-primary-gradient-start: #8B4513;
  --color-primary-gradient-end: #CD853F;
  --color-spinner-border: rgba(255, 215, 0, 0.15);
  --color-spinner-top: #FFD700;
  --color-status-default: #A0906A;
  --color-info-bg: rgba(139, 69, 19, 0.15);
  --color-row-border: rgba(205, 133, 63, 0.2);
  --color-btn-shadow: rgba(255, 215, 0, 0.3);
  --color-fps-bg: rgba(0, 0, 0, 0.6);
  --color-hud-info-bg: rgba(0, 0, 0, 0.5);
  --color-hud-info-text: #A0906A;
  --color-console-bg: rgba(0, 0, 0, 0.85);
  --color-console-border: #8B4513;

  /* ==========================================================================
     10. COLORS вЂ” BORDERS
     ========================================================================== */
  --color-border: #3a3a3a;          /* Generic border вЂ” used in forum, simulator, admin pages */
  --color-border-light: #4a4a4a;    /* Slightly lighter border variant */

  /* ==========================================================================
     11. COLORS вЂ” LADDER: ROLE BADGES
     ========================================================================== */
  --color-role-player: #888;
  --color-role-moderator: #4CAF50;
  --color-role-admin: #FF5722;
  --color-role-cheater: #9E9E9E;

  /* ==========================================================================
     12. COLORS вЂ” LADDER: SERVER TYPE BADGES
     ========================================================================== */
  --color-type-pvp: #FFD700;
  --color-type-pve: #42A5F5;
  --color-type-rpg: #AB47BC;
  --color-type-casual: #66BB6A;

  /* ==========================================================================
     13. TYPOGRAPHY вЂ” FONT FAMILIES
     ========================================================================== */
  --font-heading: 'Cinzel', 'Crimson Text', georgia, serif;
  --font-body: 'Literata', georgia, serif;
  --font-micro: 'Inter', system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* ==========================================================================
     14. TYPOGRAPHY вЂ” FONT SIZES
     ========================================================================== */
  --text-8: 8px;
  --text-9: 9px;
  --text-10: 10px;
  --text-11: 11px;
  --text-12: 12px;
  --text-13: 13px;
  --text-14: 14px;
  --text-16: 16px;
  --text-18: 18px;
  --text-20: 20px;
  --text-24: 24px;
  --text-28: 28px;
  --text-30: 30px;
  --text-32: 32px;
  --text-36: 36px;
  --text-48: 48px;

  /* ==========================================================================
     15. TYPOGRAPHY вЂ” FONT WEIGHTS
     ========================================================================== */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* ==========================================================================
     16. TYPOGRAPHY вЂ” LINE HEIGHTS
     ========================================================================== */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ==========================================================================
     17. SPACING
     ========================================================================== */
  --spacing-0: 0;
  --spacing-1: 1px;
  --spacing-2: 2px;
  --spacing-4: 4px;
  --spacing-6: 6px;
  --spacing-8: 8px;
  --spacing-10: 10px;
  --spacing-12: 12px;
  --spacing-14: 14px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-64: 64px;

  /* ==========================================================================
     18. BORDERS & RADIUS
     ========================================================================== */
  --radius-4: 4px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-full: 9999px;
  --border-thin: 1px solid rgba(0, 0, 0, 0.1);
  --border-thick: 2px solid var(--color-primary);
  --border-gold: 1px solid var(--color-gold-accent-line);

  /* ==========================================================================
     19. SHADOWS
     ========================================================================== */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
  --shadow-gold: 0 0 15px rgba(255, 215, 0, 0.2), 0 0 30px rgba(255, 215, 0, 0.1);
  --shadow-inset: inset 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-depth: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.05);

  /* ==========================================================================
     20. TRANSITIONS & EASING
     ========================================================================== */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ==========================================================================
     21. ANIMATIONS вЂ” LADDER
     ========================================================================== */

  /* Server status pulse animations */
  --animation-pulse-slow: 2.5s ease-in-out infinite;
  --animation-pulse-fast: 1.5s ease-in-out infinite;
  --animation-spin: 1s linear infinite;

  /* Server list stagger */
  --server-item-animation-delay-base: 0.03s;

  /* ==========================================================================
     22. Z-INDEX
     ========================================================================== */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-modal-overlay: 1000;
  --z-modal: 1001;
  --z-tooltip: 1100;
  --z-notification: 1200;
  --z-loading: 9999;

  /* ==========================================================================
     23. LAYOUT
     ========================================================================== */
  --header-height: 60px;
  --footer-height: 60px;
  --container-max: 1200px;
  --container-gutter: var(--spacing-16);
  --sidebar-width: 250px;
  --sidebar-width-collapsed: 70px;
  --news-width: 300px;
  --chat-widget-width: 360px;
  --chat-widget-height: 460px;
  --chat-widget-collapsed-height: 44px;

  /* ==========================================================================
     24. LAYOUT вЂ” LADDER PANELS
     ========================================================================== */
  --panel-header-height: 52px;
  --panel-border-width: 2px;
}

/* Close @layer tokens */
}


/* === core/animations.css === */
/* ============================================================
   LandLords Ladder РІР‚вЂќ Shared Animations
   Single source of truth for all @keyframes.
   Imported via bundle.css РІР‚вЂќ do NOT duplicate in components.
   ============================================================ */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(48px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(48px) rotate(-360deg); }
}

@keyframes counter-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(76, 175, 80, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(76, 175, 80, 0.5); }
}

@keyframes fullPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes serverSlideIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === ladder.css === */
/* ============================================================
   LandLords Ladder - Main Styles
   ============================================================
   Imports: variables.css, components/*, pages/*
   This file contains ONLY styles not in component files.
   Breakpoints: 360/576/768/992/1200
   ============================================================ */

/* ============================================================
   Base РІР‚вЂќ Body Layout (flex column, no overflow)
   Header / Main / Footer are flex children.
   Login & Callback pages use their own CSS РІР‚вЂќ not affected.
   Admin pages override via body:has(.admin-nav-sidebar).
   ============================================================ */
html {
  height: 100%;
}

/* Themed scrollbar вЂ” medieval dark wood & gold */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--color-secondary) 0%,
    var(--color-primary) 100%
  );
  border-radius: 5px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--color-secondary-light) 0%,
    var(--color-primary-light) 100%
  );
}

::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(0, 0, 0, 0.35);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

/* Desktop: lock main page to a single screen height and scroll inside panels */
@media (width >= 1024px) {
  body {
    height: 100vh !important;

    /* overflow: hidden !important; вЂ” removed, broke scrolling on register, simulator, etc */
  }
}

/* ============================================================
   Loading States
   ============================================================ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-muted);
  font-size: 18px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-accent-dim);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: var(--spacing-16);
  box-shadow: 0 0 10px var(--color-gold-dim);
}

/* ============================================================
   Error States
   ============================================================ */
.error-message {
  background: rgba(244, 67, 54, 0.08);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-6);
  padding: var(--spacing-16);
  color: var(--color-error);
  text-align: center;
  font-family: var(--font-heading);
  box-shadow: inset 0 0 20px rgba(244, 67, 54, 0.05);
}

/* ============================================================
   Admin Navigation Modifiers
   ============================================================ */
.admin-nav-link--muted {
  color: var(--color-text-muted);
}

.admin-nav-link--muted:hover {
  color: var(--color-accent);
}

/* ============================================================
   Animations (keyframes in core/animations.css)
   ============================================================ */

.animate-fade-in {
  animation: fadeIn var(--transition-normal) ease forwards;
}

.animate-slide-up {
  animation: slideUp var(--transition-slow) ease forwards;
}



/* === components/header.css === */
/* ============================================================
   LandLords Ladder - Header Component
   Dependencies: core/variables.css (via bundle)
   ============================================================ */

.ladder-header {
  position: relative;
  flex-shrink: 0;
  height: var(--header-height);
  background:
    linear-gradient(135deg,
      rgba(26, 26, 26, 1) 0%,
      rgba(45, 45, 45, 0.95) 40%,
      rgba(45, 45, 45, 0.95) 60%,
      rgba(26, 26, 26, 1) 100%
    );
  border-bottom: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-16);
  z-index: 1000;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 215, 0, 0.1) inset;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-16);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.logo-img {
  height: 24px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: all var(--transition-fast);
}

.logo:hover .logo-img {
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transform: scale(1.03);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-16);
}

.player-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
}

.player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  object-fit: cover;
  box-shadow: 0 0 8px rgba(205, 133, 63, 0.3);
}

.player-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-text);
}

.player-role {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-6);
  background: var(--color-primary);
  color: var(--color-text-light);
}

.player-role:empty {
  display: none;
}

.notification-bell {
  position: relative;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.notification-bell:hover {
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--color-error);
  color: var(--color-text-light);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 18px;
  text-align: center;
}

.logout-btn {
  background: transparent;
  border: 2px solid var(--color-error);
  color: var(--color-error);
  padding: var(--spacing-4) var(--spacing-16);
  border-radius: var(--radius-6);
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.logout-btn:hover {
  background: var(--color-error);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Logout button color variants вЂ” replaces inline border/color overrides */
.logout-btn--secondary {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.logout-btn--secondary:hover {
  background: var(--color-secondary);
  color: var(--color-text-light);
}

.logout-btn--info {
  border-color: var(--color-info);
  color: var(--color-info);
}

.logout-btn--info:hover {
  background: var(--color-info);
  color: var(--color-text-light);
}

/* Forum and Feedback header buttons */
.header-btn {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: var(--spacing-4) var(--spacing-16);
  border-radius: var(--radius-6);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-btn:hover {
  background: var(--color-secondary);
  color: var(--color-text-light);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 133, 63, 0.3);
}

/* ============================================================
   MOBILE RESPONSIVE (max-width: 767px)
   ============================================================ */
@media (width <= 767px) {
  .ladder-header {
    height: var(--header-height-mobile, 56px);
    padding: 0 var(--spacing-12);
    justify-content: space-between;
  }

  .header-left {
    flex: 1;
    min-width: 0;
  }

  .logo-img {
    height: 24px;
  }

  /* Hide player info on mobile header */
  .player-info {
    display: none;
  }

  /* Mobile header right - only show hamburger + minimal buttons */
  .header-right {
    gap: var(--spacing-8);
    flex-shrink: 0;
  }

  /* Header buttons - icon only on mobile */
  .header-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-8);
    font-size: 1.2rem;
  }

  .header-btn span:last-child,
  .header-btn::after {
    display: none !important;
  }

  /* Notification bell - compact */
  .notification-bell {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Logout button - compact */
  .logout-btn {
    padding: var(--spacing-8) var(--spacing-12);
    font-size: 0.85rem;
  }
}

/* ============================================================
   MOBILE MENU DRAWER
   ============================================================ */
.mobile-menu-drawer {
  position: fixed;
  top: var(--header-height-mobile, 56px);
  left: 0;
  right: 0;
  background:
    linear-gradient(180deg,
      rgba(26, 26, 26, 0.98) 0%,
      rgba(45, 45, 45, 0.98) 100%
    );
  border-bottom: 2px solid var(--color-primary);
  padding: var(--spacing-16);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.mobile-menu-drawer.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer .menu-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  margin: var(--spacing-12) 0;
}

/* Hide mobile menu drawer on desktop */
@media (width >= 768px) {
  .mobile-menu-drawer {
    display: none;
  }

}

/* ============================================================
   TABLET RESPONSIVE (768px - 1023px)
   ============================================================ */
@media (width >= 768px) and (width <= 1023px) {
  .header-btn span:last-child {
    display: none;
  }

  .header-btn {
    padding: var(--spacing-8);
    width: 44px;
    height: 44px;
    justify-content: center;
  }

  .player-name {
    display: none;
  }
}

/* ============================================================
   DESKTOP (1024px+)
   ============================================================ */
@media (width >= 1024px) {
  .mobile-menu-drawer {
    display: none;
  }
}

/* === components/app-nav.css === */
/* ============================================================
   LandLords Ladder - Unified Navigation Component
   Replaces site-nav.css + footer.css + .mobile-menu-btn from header.css
   Dependencies: core/variables.css (via bundle)
   ============================================================ */

/* в”Ђв”Ђ Site nav container (desktop header) в”Ђв”Ђ */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

/* в”Ђв”Ђ Ladder footer container в”Ђв”Ђ */
.ladder-footer {
  position: relative;
  flex-shrink: 0;
  height: var(--footer-height);
  background:
    linear-gradient(135deg,
      rgba(26, 26, 26, 1) 0%,
      rgba(45, 45, 45, 0.95) 40%,
      rgba(45, 45, 45, 0.95) 60%,
      rgba(26, 26, 26, 1) 100%
    );
  border-top: 2px solid var(--color-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow:
    0 -4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 215, 0, 0.08);
}

/* в”Ђв”Ђ Mobile menu button в”Ђв”Ђ */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-8);
  color: var(--color-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover,
.mobile-menu-btn.active {
  background: var(--color-secondary);
  color: var(--color-text-light);
  border-color: var(--color-accent);
}

/* ============================================================
   BASE вЂ” Shared across all navigation surfaces
   ============================================================ */
.app-nav__link,
.app-nav__link--drawer,
.app-nav__link--footer {
  /* Layout */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;

  /* Typography */
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;

  /* Color */
  color: var(--color-text-muted);

  /* Transition */
  transition: all var(--transition-fast);

  /* Hidden (role-gated) */
  &[hidden] { display: none; }
}

/* ============================================================
   CONTEXT MODIFIERS
   ============================================================ */

/* в”Ђв”Ђ Header (desktop) в”Ђв”Ђ */
.app-nav__link {
  padding: var(--spacing-4) var(--spacing-12);
  border-radius: var(--radius-6);
  border: 2px solid transparent;
}

/* в”Ђв”Ђ Drawer (mobile) в”Ђв”Ђ */
.app-nav__link--drawer {
  display: flex;
  padding: var(--spacing-12) var(--spacing-16);
  border-radius: var(--radius-8);
  margin-bottom: var(--spacing-8);
  gap: var(--spacing-12);

  .app-nav__icon { font-size: 1.3rem; width: 32px; text-align: center; }
  .app-nav__label { font-size: 1rem; }
}

/* в”Ђв”Ђ Footer (mobile) в”Ђв”Ђ */
.app-nav__link--footer {
  flex-direction: column;
  gap: var(--spacing-4);
  padding: var(--spacing-8) var(--spacing-16);
  font-size: 0.85rem;
  background: transparent;
  border: none;
  position: relative;
  text-decoration: none;
  cursor: pointer;

  .app-nav__icon { font-size: 1.5rem; }
}

/* ============================================================
   ITEM COLOR MODIFIERS (CSS custom properties)
   ============================================================ */
.app-nav__link--home     { --nav-color: #FFD700; --nav-color-hover: #FFE44D; --nav-bg: rgba(255, 215, 0, 0.1); }
.app-nav__link--ladder   { --nav-color: #4CAF50; --nav-color-hover: #66BB6A; --nav-bg: rgba(76, 175, 80, 0.1); }
.app-nav__link--forum    { --nav-color: #2196F3; --nav-color-hover: #42A5F5; --nav-bg: rgba(33, 150, 243, 0.1); }
.app-nav__link--feedback { --nav-color: #FF9800; --nav-color-hover: #FFB74D; --nav-bg: rgba(255, 152, 0, 0.1); }
.app-nav__link--simulator{ --nav-color: #C62828; --nav-color-hover: #EF5350; --nav-bg: rgba(198, 40, 40, 0.1); }
.app-nav__link--plans    { --nav-color: #9C27B0; --nav-color-hover: #BA68C8; --nav-bg: rgba(156, 39, 176, 0.1); }
.app-nav__link--admin    { --nav-color: #FF5722; --nav-color-hover: #FF7043; --nav-bg: rgba(255, 87, 34, 0.1); }

/* ============================================================
   ACTIVE STATE
   ============================================================ */

/* Header active */
.app-nav__link.active {
  color: var(--nav-color, var(--color-accent));
  border-color: var(--nav-color, var(--color-accent));
  background: var(--nav-bg, rgba(255, 215, 0, 0.08));
  text-shadow: 0 0 8px var(--nav-bg, rgba(255, 215, 0, 0.2));
}

/* Drawer active */
.app-nav__link--drawer.active {
  background: rgba(139, 69, 19, 0.3);
  color: var(--color-accent);
}

/* Footer active */
.app-nav__link--footer.active {
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.app-nav__link--footer.active::after {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* ============================================================
   HOVER STATE
   ============================================================ */

/* Header hover */
.app-nav__link:hover {
  color: var(--nav-color, var(--color-text));
  background: var(--nav-bg, rgba(255, 215, 0, 0.05));
  border-color: var(--nav-color, var(--color-accent));
}

/* Drawer hover */
.app-nav__link--drawer:hover {
  background: rgba(139, 69, 19, 0.3);
  color: var(--color-accent);
}

/* Footer hover */
.app-nav__link--footer:hover {
  color: var(--color-text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: header nav -> icon-only */
@media (width <= 1024px) {
  .app-nav__link {
    padding: var(--spacing-4) var(--spacing-8);
    .app-nav__label { display: none; }
  }
}

/* Mobile: hide header nav entirely */
@media (width <= 767px) {
  .site-nav { display: none; }
}

/* Desktop: hide footer, mobile menu button, and drawer */
@media (width >= 768px) {
  .ladder-footer { display: none; }
  .mobile-menu-btn { display: none; }
  .mobile-menu-drawer { display: none; }
}


/* site-nav.css was merged into app-nav.css вЂ” remove when legacy references are gone */
/* === components/footer.css === */
/* ============================================================
   LandLords Ladder - Footer Component
   Dependencies: core/variables.css (via bundle)
   ============================================================ */

.ladder-footer {
  position: relative;
  flex-shrink: 0;
  height: var(--footer-height);
  background:
    linear-gradient(
      135deg,
      rgba(26, 26, 26, 1) 0%,
      rgba(45, 45, 45, 0.95) 40%,
      rgba(45, 45, 45, 0.95) 60%,
      rgba(26, 26, 26, 1) 100%
    );
  border-top: 2px solid var(--color-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow:
    0 -4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 215, 0, 0.08);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
  padding: var(--spacing-8) var(--spacing-16);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}

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

.nav-tab.active {
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* Active tab gold indicator */
.nav-tab.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    transparent
  );
}

.nav-icon {
  font-size: 1.5rem;
}

/* Hide desktop navigation */
@media (width >= 768px) {
  .ladder-footer {
    display: none;
  }
}

/* === components/panels.css === */
/* ============================================================
   LandLords Ladder - Panels Component
   Dependencies: core/variables.css (via bundle)
   ============================================================ */

/* Main Container */
.ladder-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-16);
  padding: var(--spacing-16);
  min-height: 0;
}

/* ============================================================
   MOBILE RESPONSIVE (max-width: 767px)
   Full-width panels with minimal spacing
   ============================================================ */
@media (width <= 767px) {
  .ladder-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-12);
    padding: var(--spacing-12);
  }

  /* Panels take full width on mobile */
  .panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: var(--radius-12);
    margin: 0;
  }

  /* Reduce panel padding on mobile */
  .panel-header {
    padding: var(--spacing-12) var(--spacing-16);
    font-size: 1rem;
  }

  .panel-content {
    padding: var(--spacing-12);
  }

  /* Hide news panel on mobile (accessible via tab) */
  .news-panel {
    display: none;
  }

  /* Forum and feedback panels - full screen overlay on mobile */
  .forum-panel,
  .feedback-panel {
    position: fixed;
    top: var(--header-height-mobile, 56px);
    left: 0;
    right: 0;
    bottom: var(--footer-height);
    z-index: 100;
    border-radius: 0;
    margin: 0;
  }

  .forum-panel:not(.is-hidden),
  .feedback-panel:not(.is-hidden) {
    display: flex;
  }

  /* Make sure hidden panels don't take space */
  .forum-panel.is-hidden,
  .feedback-panel.is-hidden {
    display: none;
  }

  /* Servers panel - compact header */
  .servers-panel .panel-header {
    padding: var(--spacing-10) var(--spacing-14);
  }

  /* Server filter - horizontal scroll */
  .server-filter {
    padding: var(--spacing-10);
  }

  .region-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .region-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* ============================================================
   TABLET RESPONSIVE (768px - 1023px)
   Two-column layout
   ============================================================ */
@media (width >= 768px) and (width <= 1023px) {
  .ladder-container {
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: 1fr auto;
  }

  .servers-panel {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .main-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .news-panel {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    max-height: 200px;
  }

  /* Forum panel вЂ” center column, same slot as main-panel */
  .forum-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  /* Feedback panel вЂ” center column, same slot as main-panel */
  .feedback-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
}

/* Desktop: Three column layout */
@media (width >= 1024px) {
  .ladder-container {
    grid-template-columns: 320px 1fr 380px;
    grid-template-rows: minmax(0, 1fr);
    height: calc(100vh - var(--header-height)) !important;
    max-height: calc(100vh - var(--header-height)) !important;
    overflow: hidden !important;
  }

  .panel {
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box;
  }

  .panel-content {
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
  }

  .servers-panel {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .main-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .news-panel {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  /* Forum panel вЂ” center column, overlays main-panel when active */
  .forum-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  /* Feedback panel вЂ” center column, overlays main-panel when active */
  .feedback-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
}

/* Forum & Feedback panels вЂ” visible when active (is-hidden class removed).
   Uses flex to preserve .panel's column layout (header + scrollable content). */
.forum-panel:not(.is-hidden),
.feedback-panel:not(.is-hidden) {
  display: flex;
}

/* Panels (Shared Styles) вЂ” Medieval Parchment */
.panel {
  position: relative;
  background:
    linear-gradient(
      145deg,
      var(--color-parchment) 0%,
      var(--color-parchment-light) 30%,
      var(--color-parchment) 70%,
      var(--color-parchment-edge) 100%
    );
  border: 2px solid var(--color-primary-dark);
  border-radius: var(--radius-16);
  box-shadow:
    var(--shadow-depth),
    inset 0 1px 0 rgba(255, 215, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Gold inner border */
.panel::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: calc(var(--radius-16) - 3px);
  pointer-events: none;
  z-index: 1;
}

/* Corner ornaments вЂ” top-left & top-right */
.panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    transparent 15%,
    transparent 85%,
    var(--color-accent) 100%
  );
  border-radius: var(--radius-16) var(--radius-16) 0 0;
  z-index: 2;
  pointer-events: none;
}

.panel-header {
  position: relative;
  padding: var(--spacing-16);
  background:
    linear-gradient(
      135deg,
      var(--color-primary) 0%,
      var(--color-primary-dark) 60%,
      rgba(101, 67, 33, 0.9) 100%
    );
  border-bottom: 2px solid var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

/* Gold accent line under panel header */
.panel-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    transparent
  );
}

.panel-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
}

.panel-content {
  flex: 1;
  padding: var(--spacing-16);
  position: relative;
  z-index: 1;
}

/* === components/server-list.css === */
/* ============================================================
   LandLords Ladder - Server List Component
   Dependencies: core/variables.css, core/animations.css (via bundle)
   ============================================================ */

.server-filter {
  padding: var(--spacing-16);
  border-bottom: 1px solid rgba(139, 69, 19, 0.3);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      transparent 100%
    );
}

/* --- Search Input --- */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper::before {
  content: 'рџ”Ќ';
  position: absolute;
  left: 10px;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.search-input-wrapper:focus-within::before {
  opacity: 0.9;
}

.search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 32px 10px 34px;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.3) 100%
    );
  border: 1px solid rgba(139, 69, 19, 0.4);
  border-radius: 20px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.search-input:focus {
  border-color: var(--color-accent);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 215, 0, 0.12),
    0 0 16px rgba(255, 215, 0, 0.15);
}

.search-input::placeholder {
  color: rgba(245, 222, 179, 0.35);
}

.search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: all var(--transition-fast);
  line-height: 1;
  display: none;
}

.search-clear:hover {
  color: var(--color-text-light);
  background: rgba(255, 255, 255, 0.1);
}

.search-input:not(:placeholder-shown) ~ .search-clear {
  display: block;
}

/* --- Region Tabs --- */
.region-tabs {
  display: flex;
  gap: var(--spacing-4);
  overflow-x: auto;
  padding-bottom: var(--spacing-4);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.region-tabs::-webkit-scrollbar {
  height: 4px;
}

.region-tabs::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

.region-tabs::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.region-tabs::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-secondary));
  border-color: rgba(255, 215, 0, 0.25);
}

.region-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.2) 100%
    );
  border: 2px solid transparent;
  border-radius: var(--radius-6);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: none;
  user-select: none;
  user-select: none;
  min-width: 44px;
}

.region-tab:hover {
  background: rgba(205, 133, 63, 0.1);
  border-color: var(--color-secondary);
  box-shadow: none;
}

.region-tab:active {
  transform: none;
}

.region-tab.active {
  background: rgba(205, 133, 63, 0.15);
  border-color: var(--color-secondary);
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
  box-shadow: none;
}

.region-tab.all-tab::before {
  content: 'рџЊЌ';
  font-size: 0.85rem;
}

/* --- Server List --- */
.server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--spacing-16);
  flex: 1;
  overflow-y: auto !important;
  min-height: 0;
}

/* --- Server Item вЂ” Premium Card --- */
.server-item {
  position: relative;
  padding: 14px 16px;
  background:
    linear-gradient(
      170deg,
      rgba(0, 0, 0, 0.32) 0%,
      rgba(0, 0, 0, 0.18) 40%,
      rgba(0, 0, 0, 0.12) 100%
    );
  border: 1px solid rgba(139, 69, 19, 0.25);
  border-radius: var(--radius-6);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  animation: serverSlideIn 0.4s ease forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
}

.server-item:nth-child(1) { animation-delay: 0.03s; }
.server-item:nth-child(2) { animation-delay: 0.06s; }
.server-item:nth-child(3) { animation-delay: 0.09s; }
.server-item:nth-child(4) { animation-delay: 0.12s; }
.server-item:nth-child(5) { animation-delay: 0.15s; }
.server-item:nth-child(6) { animation-delay: 0.18s; }
.server-item:nth-child(7) { animation-delay: 0.21s; }
.server-item:nth-child(8) { animation-delay: 0.24s; }
.server-item:nth-child(9) { animation-delay: 0.27s; }
.server-item:nth-child(10) { animation-delay: 0.3s; }

@keyframes serverSlideIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.server-item::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 3px;
  height: calc(100% - 16px);
  background: linear-gradient(
    180deg,
    transparent,
    var(--color-accent),
    transparent
  );
  border-radius: 0 2px 2px 0;
  transition: all 0.25s ease;
}

.server-item[data-type="pvp"]::before {
  background: linear-gradient(180deg, transparent, var(--color-type-pvp), transparent);
}

.server-item[data-type="pve"]::before {
  background: linear-gradient(180deg, transparent, var(--color-type-pve), transparent);
}

.server-item[data-type="rpg"]::before {
  background: linear-gradient(180deg, transparent, var(--color-type-rpg), transparent);
}

.server-item[data-type="casual"]::before {
  background: linear-gradient(180deg, transparent, var(--color-type-casual), transparent);
}

.server-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.08),
    transparent
  );
  transition: all 0.25s ease;
}

.server-item:hover {
  background:
    linear-gradient(
      170deg,
      rgba(205, 133, 63, 0.12) 0%,
      rgba(205, 133, 63, 0.06) 40%,
      rgba(0, 0, 0.08) 100%
    );
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(255, 215, 0, 0.1);
}

.server-item:hover::before {
  width: 4px;
  top: 4px;
  height: calc(100% - 8px);
}

.server-item:hover::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.2),
    transparent
  );
}

.server-item.selected {
  border-color: var(--color-accent);
  background:
    linear-gradient(
      170deg,
      rgba(255, 215, 0, 0.08) 0%,
      rgba(255, 215, 0, 0.03) 50%,
      rgba(0, 0, 0, 0.12) 100%
    );
  box-shadow:
    0 0 18px rgba(255, 215, 0, 0.2),
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 0 24px rgba(255, 215, 0, 0.04);
  transform: translateX(6px) scale(1.02);
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.server-item.selected::before {
  width: 4px;
  top: 0;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    var(--color-accent),
    var(--color-accent),
    transparent
  );
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.server-item.selected::after {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.25),
    rgba(255, 215, 0, 0.1),
    rgba(255, 215, 0, 0.25)
  );
}

.server-item.selected .server-name::after {
  content: 'вњ“';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  margin-left: 6px;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 50%;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* --- Server Name Row --- */
.server-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-light);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

/* --- Server Region Flag --- */
.server-region-flag {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* --- Server Info Row (Flag + Players) --- */
.server-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Server Type Badge --- */
.server-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.server-type-badge.pvp {
  background: linear-gradient(135deg, #B8860B, #FFD700, #DAA520);
  color: #1a1a1a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.server-type-badge.pve {
  background: linear-gradient(135deg, #1565C0, #42A5F5, #1E88E5);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.server-type-badge.rpg {
  background: linear-gradient(135deg, #7B1FA2, #AB47BC, #8E24AA);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.server-type-badge.casual {
  background: linear-gradient(135deg, #2E7D32, #66BB6A, #43A047);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* --- Server Players with Progress Bar --- */
.server-players {
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.server-players-bar {
  width: 60px;
  height: 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.server-players-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.server-players-fill.low {
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.server-players-fill.medium {
  background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.server-players-fill.high {
  background: linear-gradient(90deg, #F44336, #EF5350);
}

.server-players-fill.full {
  background: linear-gradient(90deg, #B71C1C, #F44336);
  animation: fullPulse 1.5s ease-in-out infinite;
}

@keyframes fullPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* --- Ping Indicator --- */
.server-ping {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

.server-ping::before {
  content: 'рџ“¶';
  font-size: 0.7rem;
}

.server-ping.good {
  color: #66BB6A;
  text-shadow: 0 0 6px rgba(102, 187, 106, 0.3);
}

.server-ping.medium {
  color: #FFB74D;
  text-shadow: 0 0 6px rgba(255, 183, 77, 0.3);
}

.server-ping.bad {
  color: #EF5350;
  text-shadow: 0 0 6px rgba(239, 83, 80, 0.3);
}

/* --- Server List Empty State --- */
.server-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-32) var(--spacing-16);
  text-align: center;
  animation: fadeIn var(--transition-normal) ease forwards;
}

.server-list-empty::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 140px;
  height: 140px;
  background:
    radial-gradient(
      ellipse at center,
      rgba(139, 69, 19, 0.12) 0%,
      transparent 70%
    );
  border-radius: 50%;
  pointer-events: none;
}

.server-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-16);
  filter: grayscale(0.3);
  position: relative;
}

.server-empty-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.3),
    transparent
  );
  margin: var(--spacing-8) 0;
}

.server-empty-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.server-empty-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-24);
}

.server-empty-clear {
  padding: 8px 24px;
  background:
    linear-gradient(
      135deg,
      var(--color-primary-dark) 0%,
      var(--color-primary) 40%,
      var(--color-primary-light) 100%
    );
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.server-empty-clear:hover {
  background:
    linear-gradient(
      135deg,
      var(--color-primary) 0%,
      var(--color-primary-light) 40%,
      #B8652B 100%
    );
  transform: translateY(-2px);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(255, 215, 0, 0.15),
    inset 0 1px 0 rgba(255, 215, 0, 0.15);
}

/* --- Responsive Touch Targets --- */
@media (width <= 767px) {
  .server-item {
    min-height: 44px;
  }

  .region-tab {
    min-height: 36px;
    padding: 8px 14px;
  }

  .server-list {
    padding: var(--spacing-8);
  }
}

@media (hover: none) {
  .server-item:hover {
    transform: none;
    box-shadow: none;
  }

  .server-item:active {
    background:
      linear-gradient(
        170deg,
        rgba(205, 133, 63, 0.15) 0%,
        rgba(205, 133, 63, 0.08) 40%,
        rgba(0, 0, 0, 0.08) 100%
      );
    border-color: rgba(255, 215, 0, 0.3);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================================
   Redesigned Server Card (capacity + status + action)
   ============================================================ */

.server-card-row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-10);
  width: 100%;
}

.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-12);
  width: 100%;
}

.server-card-bottom {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.server-card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.server-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-text-muted);
  box-shadow: 0 0 6px currentcolor;
}

.server-status-dot.online {
  background: var(--color-success);
  color: var(--color-success);
}

.server-status-dot.offline {
  background: var(--color-error);
  color: var(--color-error);
}

.server-status-dot.starting {
  background: var(--color-warning);
  color: var(--color-warning);
  animation: pulse 1.5s ease-in-out infinite;
}

.server-status-dot.maintenance {
  background: var(--color-info);
  color: var(--color-info);
}

.server-card-header .server-name {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.server-card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  font-size: var(--text-12);
  color: var(--color-text-muted);
}

.server-world-name {
  color: var(--color-secondary-light);
  font-size: var(--text-11);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.server-capacity-row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
  width: 100%;
}

.server-capacity {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  width: 100%;
  min-width: 0;
  font-size: var(--text-11);
  color: var(--color-text-muted);
}

.server-capacity .capacity-label {
  flex-shrink: 0;
  min-width: 72px;
}

.server-capacity .capacity-bar {
  flex: 1;
  height: 5px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.server-capacity .capacity-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.server-capacity .capacity-fill.king {
  background: linear-gradient(90deg, #D4AF37, #FFD700);
}

.server-capacity .capacity-fill.governor {
  background: linear-gradient(90deg, #8B4513, #CD853F);
}

.server-capacity .capacity-value {
  flex-shrink: 0;
  font-family: var(--font-mono);
  min-width: 44px;
  text-align: right;
}

.server-capacity--missing {
  justify-content: center;
  color: var(--color-warning);
}

.server-action-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--color-gold-accent-line);
  border-radius: var(--radius-6);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: var(--text-12);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 215, 0, 0.1);
  white-space: nowrap;
}

.server-action-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 215, 0, 0.15), inset 0 1px 0 rgba(255, 215, 0, 0.15);
  transform: translateY(-1px);
}

.server-action-btn.play {
  background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
  border-color: #66BB6A;
  color: #fff;
}

.server-action-btn.play:hover:not(:disabled) {
  background: linear-gradient(135deg, #388E3C 0%, #66BB6A 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 12px rgba(102, 187, 106, 0.2);
}

.server-action-btn:disabled,
.server-action-btn.disabled {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-disabled);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@media (width <= 767px) {
  .server-card-row {
    gap: var(--spacing-8);
  }

  .server-card-top {
    flex-wrap: wrap;
    gap: var(--spacing-8);
  }

  .server-card-bottom {
    width: 100%;
  }

  .server-action-btn {
    width: 100%;
    padding: 10px;
  }

  .server-world-name {
    max-width: 100%;
    width: 100%;
  }
}

/* === components/profile.css === */
/* ============================================================
   LandLords Ladder - Profile Component (Realm Dashboard)
   ============================================================ */

.profile-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-16);
  min-height: 0;
}

.profile-portrait {
  position: relative;
  text-align: center;
  padding: var(--spacing-24);
  background: radial-gradient(ellipse at center, rgba(139, 69, 19, 0.6) 0%, rgba(101, 67, 33, 0.8) 50%, rgba(42, 26, 10, 0.95) 100%);
  border-radius: var(--radius-12);
  border: 2px solid var(--color-primary-dark);
  box-shadow: var(--shadow-depth), inset 0 0 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-8);
}

.profile-portrait::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 0;
}

.profile-portrait::after {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: calc(var(--radius-12) - 4px);
  pointer-events: none;
  z-index: 0;
}

.profile-portrait-frame {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 215, 0, 0.25), 0 0 50px rgba(255, 215, 0, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8B4513, #CD853F);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-username {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-accent);
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.5);
  word-break: break-word;
  max-width: 100%;
}

.profile-display-name {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0;
}

.profile-roles {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: var(--spacing-8);
  flex-wrap: wrap;
}

.role-badge {
  padding: var(--spacing-4) var(--spacing-16);
  border-radius: var(--radius-6);
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--color-text-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.role-badge.player { background: linear-gradient(135deg, #777, #999); }
.role-badge.moderator { background: linear-gradient(135deg, #3d8b40, #4CAF50); }
.role-badge.admin { background: linear-gradient(135deg, #d84315, #FF5722); }
.role-badge.cheater { background: linear-gradient(135deg, #757575, #9E9E9E); }

.settlement-card {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-8);
  padding: var(--spacing-16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.settlement-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-4);
}

.settlement-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.profile-section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-accent);
  margin: var(--spacing-16) 0 var(--spacing-8) 0;
  padding-bottom: var(--spacing-8);
  border-bottom: 1px solid rgba(139, 69, 19, 0.4);
}

.achievement-seals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-12);
  align-items: center;
}

.achievement-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.1);
  cursor: help;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-seal:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.2);
}

.achievement-more {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-style: italic;
}

.profile-empty-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.server-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}

.profile-actions {
  padding: var(--spacing-16);
  margin-top: auto;
}

/* Mobile: compact portrait */
@media (width <= 768px) {
  .profile-portrait-frame {
    width: 90px;
    height: 90px;
  }

  .profile-avatar-initials {
    font-size: 2rem;
  }

  .profile-username {
    font-size: 1.25rem;
  }
}

/* === components/ranking.css === */
/* ============================================================
   LandLords Ladder - Ranking Panel (Realm Dashboard)
   ============================================================ */

.ranking-panel {
  background: var(--color-surface);
  border-radius: var(--radius-8);
  border: 1px solid var(--color-primary-dark);
  padding: var(--spacing-16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ranking-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-accent);
  margin: 0 0 var(--spacing-12) 0;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  padding: var(--spacing-8) 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.ranking-row:last-child {
  border-bottom: none;
}

.ranking-icon {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
}

.ranking-label {
  flex: 1;
  color: var(--color-text);
  font-size: 0.95rem;
}

.ranking-rank {
  font-family: var(--font-heading);
  font-weight: bold;
  width: 50px;
  text-align: center;
}

.ranking-bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  max-width: 120px;
  border: 1px solid rgba(139, 69, 19, 0.4);
}

.ranking-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-accent));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.ranking-score {
  width: 45px;
  text-align: right;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.85rem;
}

.ranking-overall {
  text-align: center;
  margin-top: var(--spacing-12);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  padding: var(--spacing-8);
  border-radius: var(--radius-6);
  border: 1px solid rgba(255, 215, 0, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.rank-gold { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.rank-silver { color: #C0C0C0; }
.rank-bronze { color: #CD7F32; }
.rank-default { color: var(--color-text-muted); }

@media (width <= 768px) {
  .ranking-row {
    gap: var(--spacing-8);
  }

  .ranking-bar {
    max-width: 80px;
  }

  .ranking-rank {
    width: 40px;
  }
}

/* === components/news.css === */
/* ============================================================
   LandLords Ladder вЂ” News Panel
   Styled to match server cards
   Dependencies: core/variables.css (via bundle)
   ============================================================ */

/* Container */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  position: relative;
  padding: 10px;
  overflow-y: auto !important;
  min-height: 0;
}

/* ---------- News Card вЂ” Match Server Style ---------- */
.news-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(
    170deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.18) 40%,
    rgba(0, 0, 0, 0.12) 100%
  );
  border: 1px solid rgba(139, 69, 19, 0.25);
  border-radius: var(--radius-6);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  align-items: center;
  animation: newsSlideIn 0.4s ease forwards;
  opacity: 0;
}

/* Staggered animation delays */
.news-card:nth-child(1) { animation-delay: 0.03s; }
.news-card:nth-child(2) { animation-delay: 0.06s; }
.news-card:nth-child(3) { animation-delay: 0.09s; }
.news-card:nth-child(4) { animation-delay: 0.12s; }
.news-card:nth-child(5) { animation-delay: 0.15s; }
.news-card:nth-child(6) { animation-delay: 0.18s; }
.news-card:nth-child(7) { animation-delay: 0.21s; }
.news-card:nth-child(8) { animation-delay: 0.24s; }
.news-card:nth-child(9) { animation-delay: 0.27s; }
.news-card:nth-child(10) { animation-delay: 0.3s; }

@keyframes newsSlideIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animated left border strip */
.news-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 3px;
  height: calc(100% - 16px);
  background: linear-gradient(
    180deg,
    transparent,
    var(--color-accent),
    transparent
  );
  border-radius: 0 2px 2px 0;
  transition: all 0.25s ease;
}

/* Top highlight line */
.news-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.08),
    transparent
  );
  transition: all 0.25s ease;
}

.news-card:hover {
  background: linear-gradient(
    170deg,
    rgba(205, 133, 63, 0.12) 0%,
    rgba(205, 133, 63, 0.06) 40%,
    rgba(0, 0, 0, 0.08) 100%
  );
  border-color: rgba(255, 215, 0, 0.35);
  transform: translateX(6px);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(255, 215, 0, 0.1);
}

.news-card:hover::before {
  width: 4px;
  top: 4px;
  height: calc(100% - 8px);
}

.news-card:hover::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.2),
    transparent
  );
}

/* Thumbnail image (left side) */
.news-thumbnail {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 69, 19, 0.3);
}

/* Content area (right of thumbnail) */
.news-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

/* Pinned news highlight */
.news-card[data-pinned="true"] {
  border-color: rgba(255, 215, 0, 0.4);
  background: linear-gradient(
    170deg,
    rgba(255, 215, 0, 0.06) 0%,
    rgba(255, 215, 0, 0.02) 40%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.news-card[data-pinned="true"] .news-thumbnail {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.news-card[data-pinned="true"] .news-title {
  color: var(--color-accent);
}

/* Pin indicator */
.news-card[data-pinned="true"] .news-meta::before {
  content: 'рџ“Њ ';
  font-size: 0.7rem;
  margin-right: 4px;
}

/* Title */
.news-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Meta row: date */
.news-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.8;
  gap: 8px;
}

.news-date {
  color: var(--color-secondary);
}

/* === components/modals.css === */
/* ============================================================
   LandLords Ladder - Modals Component
   Dependencies: core/variables.css, core/animations.css (via bundle)
   ============================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background:
    linear-gradient(
      145deg,
      var(--color-parchment) 0%,
      var(--color-parchment-light) 30%,
      var(--color-parchment) 70%,
      var(--color-parchment-edge) 100%
    );
  border: 2px solid var(--color-primary-dark);
  border-radius: var(--radius-12);
  padding: var(--spacing-24);
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(-20px);
  transition: transform var(--transition-normal);
  box-shadow:
    var(--shadow-depth),
    inset 0 1px 0 rgba(255, 215, 0, 0.08);
  overscroll-behavior: contain;
}

/* Modal gold inner border */
.modal-content::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: calc(var(--radius-12) - 4px);
  pointer-events: none;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* Modal size variants вЂ” replaces inline max-width overrides */
.modal-content--narrow {
  max-width: 400px;
}

.modal-content--wide {
  max-width: 600px;
}

.modal-content--full {
  max-width: 90%;
}

.modal-header {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: var(--spacing-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

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

.modal-close:hover {
  color: var(--color-text-light);
}

.modal-body {
  margin-bottom: var(--spacing-24);
}

.modal-footer {
  display: flex;
  gap: var(--spacing-16);
  justify-content: flex-end;
}

.btn {
  padding: var(--spacing-8) var(--spacing-24);
  border-radius: var(--radius-6);
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background:
    linear-gradient(
      135deg,
      var(--color-primary-dark) 0%,
      var(--color-primary) 40%,
      var(--color-primary-light) 100%
    );
  color: var(--color-text-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.btn-primary:hover {
  background:
    linear-gradient(
      135deg,
      var(--color-primary) 0%,
      var(--color-primary-light) 40%,
      #B8652B 100%
    );
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-gold),
    inset 0 1px 0 rgba(255, 215, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: rgba(205, 133, 63, 0.15);
  color: var(--color-text-light);
  border-color: var(--color-accent);
}

.btn-danger {
  background: linear-gradient(135deg, #D32F2F, var(--color-error));
  color: var(--color-text-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--color-error), #EF5350);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

@media (width <= 767px) {
  .modal-content {
    padding: var(--spacing-16);
    max-height: 90vh;
    width: 95%;
  }
  
  .modal-header {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-16);
  }
  
  .modal-body {
    margin-bottom: var(--spacing-16);
    max-height: 60vh;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: var(--spacing-8);
  }
  
  .btn {
    width: 100%;
    padding: var(--spacing-12) var(--spacing-24);
  }
}

/* === components/game-button.css === */
/* ============================================================
   LandLords Ladder вЂ” Play Button (PNG + SVG beveled gold)
   ============================================================ */

.game-button {
  position: relative;
  width: 234px;
  height: 100px;
  background: url('../../../assets/png/button.png') no-repeat center;
  background-size: cover;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  outline: none;
  padding: 0;
  margin: 0;
  z-index: 1;
  align-self: center;
  transition: transform 0.12s ease;
}

/* Retina / 2x */
@media (min-device-pixel-ratio: 2),
       (resolution >= 192dpi) {
  .game-button {
    background-image: url('../../../assets/png/button-x2.png');
  }
}

/* в”Ђв”Ђ SVG text "PLAY" в”Ђв”Ђ */

.game-button__svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.game-button__svg text {
  font-family: Cinzel, serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* в”Ђв”Ђ Hover в”Ђв”Ђ */

.game-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.game-button:hover:not(:disabled) .game-button__svg {
  filter: drop-shadow(0 0 8px rgba(255, 160, 0, 0.4));
}

/* в”Ђв”Ђ Active в”Ђв”Ђ */

.game-button:active:not(:disabled) {
  transform: translateY(2px);
}

.game-button:active:not(:disabled) .game-button__svg {
  filter: brightness(0.8);
}

/* в”Ђв”Ђ Focus в”Ђв”Ђ */

.game-button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* в”Ђв”Ђ Disabled в”Ђв”Ђ */

.game-button:disabled,
.game-button--disabled {
  cursor: not-allowed;
  filter: grayscale(0.65) brightness(0.7);
  transform: none;
}

/* в”Ђв”Ђ Reduced motion в”Ђв”Ђ */

@media (prefers-reduced-motion: reduce) {
  .game-button {
    transition: none;
  }
}

/* в”Ђв”Ђ Mobile в”Ђв”Ђ */

@media (width <= 767px) {
  .game-button {
    width: 187px;
    height: 80px;
  }
}

/* === components/plans.css === */
/* ============================================================
   LandLords Ladder - Plans / Changelog Component Styles
   Dependencies: core/variables.css, core/design-tokens.css (via bundle)
   ============================================================ */

.plans-summary {
  margin-bottom: var(--spacing-24);
  text-align: center;
}

.plans-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--spacing-8);
}

.plans-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-success), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.plans-progress-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.plan-version {
  margin-bottom: var(--spacing-24);
  padding-bottom: var(--spacing-24);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.plan-version:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.plan-version-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--spacing-16);
}

.plan-version-header h3 {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: 1.1rem;
  margin: 0;
}

.plan-version-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.plan-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-12);
  padding: var(--spacing-10) var(--spacing-12);
  border-radius: var(--radius-6);
  transition: background var(--transition-fast);
}

.plan-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.plan-item-icon {
  flex-shrink: 0;
  font-size: 1rem;
  width: 24px;
  text-align: center;
  margin-top: 2px;
}

.plan-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  min-width: 0;
}

.plan-item-title {
  font-size: 0.95rem;
  color: var(--color-text);
}

.plan-item-description {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.plan-item-status {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-4);
  white-space: nowrap;
  margin-top: 2px;
}

.plan-done .plan-item-status {
  background: rgba(76, 175, 80, 0.15);
  color: var(--color-success-light);
}

.plan-in-progress .plan-item-status {
  background: rgba(255, 152, 0, 0.15);
  color: var(--color-warning-light);
}

.plan-planned .plan-item-status {
  background: rgba(33, 150, 243, 0.15);
  color: var(--color-info-light);
}

/* Mobile */
@media (width <= 767px) {
  .plan-version-header {
    flex-direction: column;
    gap: var(--spacing-4);
  }

  .plan-item {
    flex-wrap: wrap;
    gap: var(--spacing-4);
    padding: var(--spacing-12);
  }

  .plan-item-icon {
    margin-top: 0;
  }

  .plan-item-body {
    flex: 1 1 calc(100% - 40px);
    min-width: 0;
  }

  .plan-item-status {
    margin-left: 36px;
    margin-top: 0;
  }
}

/* === forum.css === */
/* ============================================================
   LandLords Forum вЂ” Component Bundle
   Medieval theme: #8B4513 / #CD853F / #FFD700 / #F5DEB3
   Dependencies: core/variables.css, core/animations.css (via bundle)
   ============================================================
   This file is a bundle of 3 component files.
   All HTML pages link to this single file вЂ” backward compatible.
   ============================================================ */

/* === ./forum-list.css === */
/* ============================================================
   LandLords Forum РІР‚вЂќ List / Category / Topic / Sidebar Styles
   Medieval theme: #8B4513 / #CD853F / #FFD700 / #F5DEB3
   Part of forum.css split (forum-list.css)
   ============================================================ */

/* ============================================================
   Page Layout
   ============================================================ */

.forum-page {
    background: var(--color-bg);
    min-height: 0;
}

.forum-content {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing-16) var(--spacing-16);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: var(--spacing-16);
    align-items: flex-start;
}

.forum-main-wrap {
    flex: 1;
    min-width: 0;
}

/* ============================================================
   Sidebar
   ============================================================ */

.forum-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-12);
}

.forum-sidebar-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-8);
    padding: var(--spacing-12);
}

.forum-sidebar-panel h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-accent);
    margin: 0 0 var(--spacing-8) 0;
    padding-bottom: var(--spacing-6);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--spacing-6);
}

.forum-sidebar-tree {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.forum-sidebar-category {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-secondary);
    padding: var(--spacing-4) 0;
    cursor: pointer;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: var(--spacing-6);
}

.forum-sidebar-category:hover {
    color: var(--color-accent);
}

.forum-sidebar-subforum {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    padding: 2px 0 2px var(--spacing-12);
    cursor: pointer;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.forum-sidebar-subforum:hover {
    color: var(--color-text);
    border-left-color: var(--color-secondary);
}

.forum-sidebar-subforum.active {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    background: rgba(255, 215, 0, 0.06);
    margin: 0 calc(-1 * var(--spacing-12));
    padding-left: var(--spacing-12);
    padding-right: var(--spacing-12);
}

.forum-sidebar-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-4) 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
}

.forum-sidebar-stat:last-child {
    border-bottom: none;
}

.forum-sidebar-stat-value {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 0.9rem;
}

.forum-sidebar-recent-topic {
    padding: var(--spacing-6) 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    cursor: pointer;
    transition: background 0.15s;
}

.forum-sidebar-recent-topic:last-child {
    border-bottom: none;
}

.forum-sidebar-recent-topic:hover {
    background: rgba(255, 215, 0, 0.04);
    margin: 0 calc(-1 * var(--spacing-12));
    padding-left: var(--spacing-12);
    padding-right: var(--spacing-12);
}

.forum-sidebar-recent-title {
    font-size: 0.82rem;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-sidebar-recent-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ============================================================
   Loading State
   ============================================================ */

.forum-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-32);
    gap: var(--spacing-12);
    color: var(--color-text-muted);
}

.forum-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Back Button
   ============================================================ */

.forum-back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-4);
    padding: var(--spacing-4) var(--spacing-10);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-4);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: var(--spacing-8);
}

.forum-back-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(205, 133, 63, 0.08);
}

/* ============================================================
   Toolbar: Search + Nav Tabs
   ============================================================ */

.forum-toolbar {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: var(--spacing-8) var(--spacing-16);
    display: flex;
    align-items: center;
    gap: var(--spacing-16);
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    box-sizing: border-box;
}

.forum-search-bar {
    display: flex;
    flex: 1;
    max-width: 320px;
}

.forum-search-input {
    flex: 1;
    padding: 6px 12px;
    background: rgba(139, 69, 19, 0.15);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.forum-search-input:focus {
    border-color: var(--color-accent);
    background: rgba(139, 69, 19, 0.25);
}

.forum-search-input::placeholder {
    color: var(--color-text-muted);
}

.forum-search-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: 1px solid var(--color-accent);
    border-radius: 0 6px 6px 0;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 0.9rem;
}

.forum-search-btn:hover {
    background: linear-gradient(135deg, #A0522D, #6B3410);
}

.forum-nav {
    display: flex;
    gap: 4px;
}

.forum-nav-tab {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.forum-nav-tab:hover {
    color: var(--color-accent);
    background: rgba(255, 215, 0, 0.08);
}

.forum-nav-tab.active {
    color: var(--color-accent);
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
}

/* ============================================================
   Breadcrumb
   ============================================================ */

.forum-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
    padding: var(--spacing-8) var(--spacing-16);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.forum-breadcrumb__item {
    color: var(--color-text-muted);
    cursor: default;
    transition: color 0.15s;
}

.forum-breadcrumb__item:hover { color: var(--color-accent); }
.forum-breadcrumb__item.active { color: var(--color-accent); }

.forum-breadcrumb__sep {
    color: var(--color-text-disabled);
    margin: 0 2px;
}

/* ============================================================
   Sort Bar
   ============================================================ */

.forum-sort-bar {
    display: flex;
    gap: 4px;
    padding: var(--spacing-8) 0;
    margin-bottom: var(--spacing-8);
    border-bottom: 1px solid var(--color-border);
}

.forum-sort-btn {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.forum-sort-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.forum-sort-btn.active {
    background: var(--color-secondary);
    border-color: var(--color-accent);
    color: var(--color-text-light);
}

/* ============================================================
   Category Grid
   ============================================================ */

.forum-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--spacing-12);
    align-items: start;
}

.forum-category-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ============================================================
   Category Cards
   ============================================================ */

.forum-category-card {
    background: var(--color-surface);
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--radius-12);
    padding: var(--spacing-16);
    display: flex;
    align-items: center;
    gap: var(--spacing-16);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 0;
}

.forum-category-card:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.12);
}

.forum-category-icon {
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-10);
    color: var(--color-text-light);
    flex-shrink: 0;
}

.forum-category-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-text);
    margin: 0 0 2px;
}

.forum-category-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ============================================================
   Accordion: Category Card Chevron
   ============================================================ */

.forum-category-chevron {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.forum-category-card[aria-expanded="true"] .forum-category-chevron {
    color: var(--color-accent);
    transform: rotate(90deg);
}

/* ============================================================
   Accordion Panel (subforum tree under category)
   ============================================================ */

.forum-accordion-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-12) var(--radius-12);
    margin: -2px 0 0;
    overflow: hidden;
}

.forum-accordion-empty {
    padding: var(--spacing-16);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Accordion Subforum Row */
.forum-accordion-subforum {
    display: flex;
    align-items: center;
    gap: var(--spacing-10);
    padding: var(--spacing-8) var(--spacing-16);
    border-bottom: 1px solid rgba(139, 69, 19, 0.08);
    cursor: pointer;
    transition: background 0.12s ease;
}

.forum-accordion-subforum:hover {
    background: var(--color-surface-hover);
}

.forum-accordion-subforum:last-child {
    border-bottom: none;
}

.forum-accordion-subforum-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.forum-accordion-subforum-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.forum-accordion-subforum-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-text);
}

.forum-accordion-subforum-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-accordion-subforum-stats {
    display: flex;
    gap: var(--spacing-12);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* ============================================================
   Sidebar Chevron
   ============================================================ */

.sidebar-chevron {
    font-size: 0.6rem;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.15s ease;
}

.forum-sidebar-subforums.is-hidden {
    display: none;
}

/* ============================================================
   Subforum Rows
   ============================================================ */

.forum-subforum-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-16);
    padding: var(--spacing-12) var(--spacing-16);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.15s;
}

.forum-subforum-row:hover {
    background: var(--color-surface-hover);
}

.forum-subforum-row:last-child { border-bottom: none; }

.forum-subforum-main {
    flex: 1;
    min-width: 0;
}

.forum-subforum-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-accent);
    display: block;
}

.forum-subforum-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: 2px;
}

.forum-subforum-stats {
    display: flex;
    gap: var(--spacing-16);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.forum-subforum-last-post {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: right;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.forum-last-post-author { color: var(--color-secondary); font-weight: 600; }
.forum-last-post-time { font-size: 0.75rem; }

/* ============================================================
   Topic Rows
   ============================================================ */

.forum-topic-list {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-8);
    overflow: hidden;
}

.forum-topic-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-16);
    padding: var(--spacing-14) var(--spacing-18);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    background: var(--color-surface);
}

.forum-topic-row:last-child { border-bottom: none; }

.forum-topic-row:hover {
    background: var(--color-surface-hover);
    border-bottom-color: var(--color-secondary);
}

.forum-topic-row.pinned {
    border-left: 3px solid var(--color-accent);
    background: rgba(255, 215, 0, 0.04);
}

.forum-topic-row.locked { opacity: 0.6; }

.forum-topic-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forum-topic-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-text);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
}

.forum-topic-row:hover .forum-topic-title { color: var(--color-accent); }

.forum-topic-meta-line {
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.forum-author { color: var(--color-secondary); font-weight: 600; }
.forum-topic-time { font-size: 0.75rem; }

.forum-topic-tags {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.forum-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    font-size: 0.7rem;
    background: rgba(205, 133, 63, 0.15);
    border: 1px solid rgba(205, 133, 63, 0.3);
    border-radius: 3px;
    color: var(--color-secondary);
    font-family: var(--font-body);
    white-space: nowrap;
    flex-shrink: 0;
}

.forum-topic-stats {
    display: flex;
    gap: var(--spacing-12);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 70px;
    justify-content: flex-end;
}

.forum-topic-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forum-topic-last-post {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-align: right;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

/* ============================================================
   Topic Actions Bar
   ============================================================ */

.forum-topic-actions-bar {
    display: flex;
    gap: var(--spacing-8);
    padding: var(--spacing-8) 0;
    margin-bottom: var(--spacing-8);
    border-bottom: 1px solid var(--color-border);
}

/* ============================================================
   Topic Header (improved)
   ============================================================ */

.forum-topic-header {
    padding: var(--spacing-16);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-8);
    margin-bottom: var(--spacing-12);
}

.forum-topic-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-accent);
    margin: 0 0 var(--spacing-8) 0;
    line-height: 1.3;
}

.forum-topic-header-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.forum-topic-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

.forum-topic-author-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid var(--color-primary);
}

/* ============================================================
   Search Results
   ============================================================ */

.forum-search-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-accent);
    margin: var(--spacing-16) 0 var(--spacing-8) 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-border);
}

.forum-search-post {
    padding: var(--spacing-12);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.15s;
}

.forum-search-post:hover { background: var(--color-surface-hover); }

.forum-search-post__topic {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 4px;
}

.forum-search-post__content {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
}

.forum-search-post__content mark {
    background: rgba(255, 215, 0, 0.3);
    color: var(--color-accent);
    padding: 0 2px;
    border-radius: 2px;
}

.forum-search-post__meta {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ============================================================
   Activity Feed
   ============================================================ */

.forum-activity-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-12);
    padding: var(--spacing-10) var(--spacing-16);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.15s;
}

.forum-activity-item:hover { background: var(--color-surface-hover); }

.forum-activity__icon { font-size: 1.2rem; flex-shrink: 0; }

.forum-activity__main {
    flex: 1;
    min-width: 0;
}

.forum-activity__title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-activity__meta {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ============================================================
   Pagination
   ============================================================ */

.forum-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: var(--spacing-12) 0;
}

.forum-pagination button {
    padding: 4px 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.forum-pagination button:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.forum-pagination button.active {
    background: var(--color-secondary);
    border-color: var(--color-accent);
    color: var(--color-text-light);
}

/* ============================================================
   Empty / Error / Panel
   ============================================================ */

.forum-empty {
    text-align: center;
    padding: var(--spacing-32) var(--spacing-16);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.forum-panel { background: var(--color-surface); }

/* ============================================================
   New Topic Bar
   ============================================================ */

.forum-new-topic-bar {
    display: flex;
    justify-content: flex-end;
    padding-bottom: var(--spacing-8);
    margin-bottom: var(--spacing-4);
}

/* ============================================================
   Static Pages
   ============================================================ */

.forum-static-page {
    padding: var(--spacing-16);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-8);
}

.forum-static-page h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin: 0 0 var(--spacing-12) 0;
    padding-bottom: var(--spacing-8);
    border-bottom: 2px solid var(--color-primary);
}

.forum-static-page-content {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

.forum-static-page-content p {
    margin: 0 0 0.75em;
}

.forum-static-page-content p:last-child {
    margin-bottom: 0;
}

.forum-static-page-content h1,
.forum-static-page-content h2,
.forum-static-page-content h3,
.forum-static-page-content h4,
.forum-static-page-content h5,
.forum-static-page-content h6 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 1.2em 0 0.4em;
}

.forum-static-page-content h1 {
    font-size: 1.6rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 6px;
}

.forum-static-page-content h2 { font-size: 1.35rem; }
.forum-static-page-content h3 { font-size: 1.15rem; }
.forum-static-page-content h4 { font-size: 1.05rem; }
.forum-static-page-content h5 { font-size: 0.95rem; }
.forum-static-page-content h6 { font-size: 0.9rem; color: var(--color-text-muted); }

.forum-static-page-content code {
    background: rgba(139, 69, 19, 0.3);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono, 'Fira Code', monospace);
    font-size: 0.9em;
}

.forum-static-page-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-6);
    padding: var(--spacing-10);
    overflow-x: auto;
    font-family: var(--font-mono, 'Fira Code', monospace);
    font-size: 0.88em;
    line-height: 1.5;
    margin: 0.75em 0;
}

.forum-static-page-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.forum-static-page-content blockquote {
    border-left: 3px solid var(--color-secondary);
    padding: var(--spacing-4) var(--spacing-12);
    margin: 0.75em 0;
    background: rgba(205, 133, 63, 0.06);
    border-radius: 0 var(--radius-4) var(--radius-4) 0;
    color: var(--color-text-muted);
    font-style: italic;
}

.forum-static-page-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.forum-static-page-content a:hover {
    color: var(--color-secondary);
}

.forum-static-page-content ul,
.forum-static-page-content ol {
    padding-left: 1.5em;
    margin: 0.5em 0;
}

.forum-static-page-content ul { list-style-type: disc; }
.forum-static-page-content ol { list-style-type: decimal; }
.forum-static-page-content li { margin-bottom: 0.25em; }

.forum-static-page-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.5em 0;
}

.forum-static-page-content del {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.forum-static-page-content ins {
    text-decoration: none;
    background: rgba(76, 175, 80, 0.15);
    padding: 0 2px;
    border-radius: 2px;
}

.forum-static-page-content img {
    max-width: 100%;
    border-radius: var(--radius-4);
    border: 1px solid var(--color-border);
}

/* Tables in static pages */
.forum-static-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75em 0;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
}

.forum-static-page-content thead {
    background: linear-gradient(135deg, var(--color-primary), #6B3410);
    color: var(--color-text-light);
}

.forum-static-page-content th {
    padding: var(--spacing-6) var(--spacing-10);
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.forum-static-page-content td {
    padding: var(--spacing-6) var(--spacing-10);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.forum-static-page-content tbody tr:nth-child(even) {
    background: rgba(139, 69, 19, 0.06);
}

.forum-static-page-content tbody tr:hover {
    background: rgba(255, 215, 0, 0.06);
}

/* Task lists */
.forum-static-page-content input[type="checkbox"] {
    margin-right: 6px;
    accent-color: var(--color-accent);
    cursor: default;
}

.forum-static-page-footer {
    margin-top: var(--spacing-20);
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.forum-static-page-footer::before {
    content: '\01F4C5';
    font-size: 0.9rem;
}

/* ============================================================
   Page List (index of static pages)
   ============================================================ */

.forum-page-list {
    display: flex;
    flex-direction: column;
}

.forum-page-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-10) var(--spacing-16);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.15s ease;
    gap: var(--spacing-12);
}

.forum-page-list-item:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-secondary);
}

.forum-page-list-item:last-child {
    border-bottom: none;
}

.forum-page-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
}

.forum-page-title::before {
    content: '\01F4C4';
    font-size: 1rem;
    flex-shrink: 0;
}

.forum-page-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   Moderator Topic Actions Dropdown
   ============================================================ */

.forum-mod-menu {
    position: relative;
    display: inline-block;
}

.forum-mod-menu-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s;
}

.forum-mod-menu-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.forum-mod-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-6);
    padding: var(--spacing-4);
    min-width: 140px;
    z-index: 100;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.forum-mod-menu.open .forum-mod-dropdown {
    display: flex;
}

.forum-mod-dropdown button {
    background: transparent;
    border: none;
    color: var(--color-text);
    padding: var(--spacing-4) var(--spacing-8);
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 3px;
    transition: background 0.15s;
}

.forum-mod-dropdown button:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-accent);
}

/* ============================================================
   Responsive РІР‚вЂќ list-specific
   ============================================================ */

/* Tablet landscape */
@media (width <= 1200px) {
    .forum-content,
    .forum-toolbar,
    .forum-breadcrumb {
        padding-left: var(--spacing-16);
        padding-right: var(--spacing-16);
    }
}

/* Tablet portrait */
@media (width <= 992px) {
    .forum-toolbar {
        gap: var(--spacing-8);
    }
}

@media (width <= 768px) {
    .forum-toolbar {
        flex-direction: column;
        gap: var(--spacing-8);
    }

    .forum-search-bar { max-width: 100%; }

    .forum-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .forum-content {
        flex-direction: column;
    }

    .forum-sidebar {
        width: 100%;
        order: 1;
    }

    .forum-main-wrap {
        order: 0;
    }

    .forum-topic-stats,
    .forum-topic-last-post { display: none; }

    .forum-subforum-stats,
    .forum-subforum-last-post { display: none; }

    .forum-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Phone */
@media (width <= 576px) {
    .forum-content {
        flex-direction: column;
        padding-left: var(--spacing-8);
        padding-right: var(--spacing-8);
    }

    .forum-sidebar {
        width: 100%;
        order: 1;
    }

    .forum-main-wrap {
        order: 0;
    }

    .forum-breadcrumb {
        padding-left: var(--spacing-8);
        padding-right: var(--spacing-8);
    }

    .forum-categories-grid {
        grid-template-columns: 1fr;
    }

    /* Accordion: less indentation on mobile */
    .forum-accordion-subforum {
        padding-left: var(--spacing-8) !important;
        padding-right: var(--spacing-8);
    }

    .forum-accordion-subforum-stats {
        display: none;
    }
}

/* === ./forum-post.css === */
/* ============================================================
   LandLords Forum РІР‚вЂќ Post / Reply / Poll / Attachment Styles
   Medieval theme: #8B4513 / #CD853F / #FFD700 / #F5DEB3
   Part of forum.css split (forum-post.css)
   ============================================================ */

/* ============================================================
   Post Layout (improved РІР‚вЂќ avatar left, content right)
   ============================================================ */

.forum-post {
    display: flex;
    gap: var(--spacing-12);
    padding: var(--spacing-12);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-8);
    margin-bottom: var(--spacing-8);
    transition: border-color 0.15s;
}

.forum-post:hover {
    border-color: rgba(205, 133, 63, 0.4);
}

.forum-post.deleted {
    opacity: 0.4;
    padding: var(--spacing-8);
}

.forum-post-deleted {
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.forum-post-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 90px;
    max-width: 90px;
    padding: var(--spacing-4);
    text-align: center;
    flex-shrink: 0;
}

.forum-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid var(--color-primary);
    overflow: hidden;
}

.forum-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-post-username {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--color-accent);
    word-break: break-all;
    line-height: 1.2;
}

.forum-post-role {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(139, 69, 19, 0.3);
    color: var(--color-secondary);
    font-weight: 600;
}

.forum-post-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-4);
}

.forum-post-timestamp {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.forum-post-number {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
}

.forum-post-content {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.forum-post-content p { margin: 0 0 0.5em; }
.forum-post-content p:last-child { margin-bottom: 0; }
.forum-post-content code { background: rgba(139, 69, 19, 0.3); padding: 1px 4px; border-radius: 3px; font-size: 0.9em; }
.forum-post-content pre { background: rgba(0,0,0,0.3); padding: 8px; border-radius: 4px; overflow-x: auto; }
.forum-post-content blockquote { border-left: 3px solid var(--color-secondary); padding-left: 8px; margin: 4px 0; color: var(--color-text-muted); }
.forum-post-content a { color: var(--color-accent); }
.forum-post-content img { max-width: 100%; border-radius: 4px; }

/* ============================================================
   Post Actions
   ============================================================ */

.forum-post-actions {
    display: flex;
    gap: 4px;
    padding-top: var(--spacing-6);
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    align-items: center;
}

.btn-reaction {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s;
}

.btn-reaction:hover { border-color: var(--color-secondary); color: var(--color-secondary); }
.btn-reaction.active { background: rgba(205, 133, 63, 0.2); border-color: var(--color-accent); color: var(--color-accent); }

.btn-reaction-sm {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 4px;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.btn-reaction-sm:hover { opacity: 1; }
.btn-reaction-sm.active { opacity: 1; }

.reaction-bar {
    display: flex;
    gap: 2px;
    margin-left: 4px;
    padding-left: 6px;
    border-left: 1px solid var(--color-border);
}

/* ============================================================
   Poll
   ============================================================ */

.forum-poll {
    background: var(--color-surface);
    border: 1px solid var(--color-secondary);
    border-radius: var(--radius-8);
    padding: var(--spacing-12);
    margin-bottom: var(--spacing-12);
}

.forum-poll h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text);
    margin: 0 0 var(--spacing-8) 0;
}

.forum-poll__option {
    position: relative;
    margin-bottom: 6px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.forum-poll__option.voted { border-color: var(--color-secondary); }
.forum-poll__option.clickable { cursor: pointer; }
.forum-poll__option.clickable:hover { border-color: var(--color-accent); }
.forum-poll__option.selected { border-color: var(--color-accent); background: rgba(255, 215, 0, 0.08); }

.forum-poll__bar {
    height: 28px;
    background: linear-gradient(90deg, rgba(205, 133, 63, 0.25), rgba(205, 133, 63, 0.1));
    transition: width 0.3s ease;
}

.forum-poll__label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    height: 28px;
    font-size: 0.85rem;
    color: var(--color-text);
}

.forum-poll__count { color: var(--color-text-muted); font-size: 0.78rem; }
.forum-poll__voted-info { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 4px; }

/* ============================================================
   Image Lightbox
   ============================================================ */

.forum-post-image {
    cursor: zoom-in;
    transition: opacity 0.15s ease;
}

.forum-post-image:hover {
    opacity: 0.9;
}

.forum-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-overlay, 1000);
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

.forum-lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.forum-lightbox-close {
    position: fixed;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-text-light, #fff);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    z-index: calc(var(--z-modal-overlay, 1000) + 1);
    line-height: 1;
}

.forum-lightbox-close:hover {
    opacity: 1;
}

/* ============================================================
   Attachment Gallery
   ============================================================ */

.forum-attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-8);
    margin-top: var(--spacing-8);
    padding: var(--spacing-8);
    background: rgba(0, 0, 0, 0.12);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-6);
}

.forum-attachment-item {
    position: relative;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-6);
    padding: var(--spacing-4);
    background: var(--color-surface);
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.forum-attachment-item:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.forum-attachment-item img {
    max-width: 120px;
    max-height: 80px;
    border-radius: var(--radius-4);
    cursor: zoom-in;
    transition: opacity 0.15s;
}

.forum-attachment-item img:hover {
    opacity: 0.85;
}

.forum-attachment-icon {
    font-size: 2rem;
    color: var(--color-text-muted);
    text-align: center;
}

.forum-attachment-name {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.forum-attachment-delete {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: rgba(200, 40, 40, 0.85);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
    padding: 0;
}

.forum-attachment-item:hover .forum-attachment-delete {
    opacity: 1;
}

.forum-attachment-delete:hover {
    background: rgba(220, 50, 50, 1);
    transform: scale(1.1);
}

/* ============================================================
   Quote Button
   ============================================================ */

.forum-post-quote-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.15s;
}

.forum-post-quote-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

/* ============================================================
   @Mentions
   ============================================================ */

.forum-mention {
    color: var(--color-accent);
    font-weight: 600;
    background: rgba(255, 215, 0, 0.08);
    padding: 1px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}

.forum-mention:hover {
    background: rgba(255, 215, 0, 0.2);
}

/* ============================================================
   Markdown Tables (in post content)
   ============================================================ */

.forum-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5em 0;
    font-size: 0.88rem;
    overflow-x: auto;
    display: block;
}

.forum-post-content thead {
    background: linear-gradient(135deg, var(--color-primary), #6B3410);
    color: var(--color-text-light);
}

.forum-post-content th {
    padding: var(--spacing-5) var(--spacing-8);
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.forum-post-content td {
    padding: var(--spacing-5) var(--spacing-8);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.forum-post-content tbody tr:nth-child(even) {
    background: rgba(139, 69, 19, 0.06);
}

.forum-post-content tbody tr:hover {
    background: rgba(255, 215, 0, 0.06);
}

/* Strikethrough in posts */
.forum-post-content del {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

/* Task lists in posts */
.forum-post-content input[type="checkbox"] {
    margin-right: 6px;
    accent-color: var(--color-accent);
    cursor: default;
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.forum-animate-in {
    animation: fadeInUp 0.25s ease forwards;
}

.forum-post {
    animation: fadeIn 0.2s ease forwards;
}

/* Stagger animation for posts */
.forum-post:nth-child(1) { animation-delay: 0.02s; }
.forum-post:nth-child(2) { animation-delay: 0.04s; }
.forum-post:nth-child(3) { animation-delay: 0.06s; }
.forum-post:nth-child(4) { animation-delay: 0.08s; }
.forum-post:nth-child(5) { animation-delay: 0.10s; }

/* ============================================================
   Responsive РІР‚вЂќ post-specific
   ============================================================ */

@media (width <= 768px) {
    .forum-post {
        flex-direction: column;
    }

    .forum-post-author {
        flex-direction: row;
        min-width: auto;
        gap: var(--spacing-8);
    }

    .forum-post-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
}

@media (width <= 576px) {
    .forum-lightbox-image {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* === ./forum-editor.css === */
/* ============================================================
   LandLords Forum вЂ” Editor / Toolbar / Quick Reply / Upload Styles
   Medieval theme: #8B4513 / #CD853F / #FFD700 / #F5DEB3
   Part of forum.css split (forum-editor.css)
   ============================================================ */

/* ============================================================
   Editor Containers
   ============================================================ */

.forum-post-editor,
.forum-topic-creator {
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-8);
    padding: var(--spacing-12);
    margin-top: var(--spacing-12);
}

.forum-post-editor textarea,
.forum-topic-creator textarea,
.forum-topic-title-input,
.forum-tags-input {
    width: 100%;
    background: rgba(139, 69, 19, 0.15);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: var(--spacing-8);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-8);
    resize: vertical;
    outline: none;
}

.forum-post-editor textarea:focus,
.forum-topic-creator textarea:focus,
.forum-topic-title-input:focus,
.forum-tags-input:focus {
    border-color: var(--color-accent);
    background: rgba(139, 69, 19, 0.25);
}

.forum-topic-title-input { font-family: var(--font-heading); font-size: 1rem; }
.forum-tags-input { font-size: 0.85rem; }

.forum-edit-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(139, 69, 19, 0.15);
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    padding: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.forum-file-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

.forum-file-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================================
   Markdown Toolbar
   ============================================================ */

.forum-md-toolbar {
    display: flex;
    gap: 2px;
    padding: var(--spacing-4);
    background: rgba(139, 69, 19, 0.12);
    border: 1px solid var(--color-border);
    border-bottom: none;
    border-radius: var(--radius-4) var(--radius-4) 0 0;
    flex-wrap: wrap;
}

.forum-md-toolbar button {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-body);
}

.forum-md-toolbar button:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-text);
}

.forum-md-toolbar button:active {
    background: rgba(255, 215, 0, 0.2);
}

/* ============================================================
   Quick Reply
   ============================================================ */

.forum-quick-reply {
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-8);
    padding: var(--spacing-12);
    margin-top: var(--spacing-16);
}

.forum-quick-reply h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-accent);
    margin: 0 0 var(--spacing-8) 0;
}

/* ============================================================
   Drag-and-Drop File Upload
   ============================================================ */

.forum-post-editor.forum-dragover {
    border-color: var(--color-accent, #FFD700);
    background: rgba(255, 215, 0, 0.08);
    outline: 2px dashed var(--color-accent, #FFD700);
    outline-offset: -4px;
}

.forum-file-preview {
    margin-top: var(--spacing-8);
    padding: var(--spacing-4);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-6, 6px);
    display: inline-block;
}

/* ============================================================
   File Upload Validation Feedback
   ============================================================ */

.forum-file-error {
    color: #e74c3c;
    font-size: 0.82rem;
    padding: var(--spacing-4) var(--spacing-8);
    margin-top: var(--spacing-4);
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: var(--radius-4);
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    animation: fadeIn 0.2s ease;
}

.forum-file-error::before {
    content: '\26A0\FE0F';
    flex-shrink: 0;
}

.forum-paste-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-4);
    padding: var(--spacing-4) var(--spacing-10);
    margin-top: var(--spacing-4);
    background: rgba(139, 69, 19, 0.15);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-4);
    color: var(--color-text-muted);
    font-size: 0.82rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* === feedback.css === */
/* ============================================================
   LandLords Ladder - Feedback / Ticket Styles
   Dependencies: core/variables.css, core/animations.css (via bundle)
   ============================================================ */

/* Feedback Full-Page Layout */
.feedback-page {
  background: var(--color-bg);

  --border-thin: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-content {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--spacing-16);
}

/* Breadcrumb */
.feedback-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: var(--spacing-12) var(--spacing-16);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 960px;
  margin: 0 auto;
}

/* Toolbar */
.feedback-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto var(--spacing-16) auto;
  padding: 0 var(--spacing-16);
  max-width: 960px;
}

.feedback-toolbar-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 0;
}

#new-ticket-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: var(--spacing-8) var(--spacing-16);
  font-size: 0.9rem;
}

/* Feedback Panel (legacy РІР‚вЂќ kept for compat) */
.feedback-panel {
  background: var(--color-surface);
}

.feedback-list-view,
.feedback-form-view,
.feedback-ticket-view {
  padding: var(--spacing-16);
  padding-top: var(--spacing-24);
}

/* Ticket Card */
.feedback-ticket-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-16);
  margin-bottom: var(--spacing-16);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.feedback-ticket-card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feedback-ticket__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-8);
}

.feedback-ticket__status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-6);
  background: rgba(76, 175, 80, 0.2);
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback-ticket__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text);
  flex: 1;
}

.feedback-ticket__meta {
  display: flex;
  gap: var(--spacing-16);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.feedback-form {
  background: var(--color-surface); border: var(--border-thick); border-radius: var(--radius-12);
  padding: var(--spacing-24); display: flex; flex-direction: column; gap: var(--spacing-16);
}
.feedback-form label { font-family: var(--font-heading); font-size: 0.9rem; color: var(--color-text); margin-bottom: var(--spacing-4); }

/* Form field wrapper */
.feedback-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

/* Form label */
.feedback-form__label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 600;
}

/* Form helper text */
.feedback-form__helper {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-2);
}

/* Form actions row */
.feedback-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-12);
  margin-top: var(--spacing-8);
}

/* Form elements inside feedback-form */
.feedback-form select,
.feedback-form input[type="text"],
.feedback-form textarea {
  width: 100%; padding: var(--spacing-8) var(--spacing-16);
  background: var(--color-bg); border: var(--border-thin); border-radius: var(--radius-6);
  color: var(--color-text); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.feedback-form select:focus,
.feedback-form input[type="text"]:focus,
.feedback-form textarea:focus { border-color: var(--color-accent); }
.feedback-form textarea { min-height: 120px; resize: vertical; }

/* File input */
.feedback-form input[type="file"] {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.feedback-file-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Category Select */
.feedback-category-select {
  width: 100%; padding: var(--spacing-8) var(--spacing-16);
  background: var(--color-bg); border: var(--border-thin); border-radius: var(--radius-6);
  color: var(--color-text); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; cursor: pointer; transition: border-color var(--transition-fast);
}
.feedback-category-select:focus { border-color: var(--color-accent); }

/* Title Input */
.feedback-title-input {
  width: 100%; padding: var(--spacing-8) var(--spacing-16);
  background: var(--color-bg); border: var(--border-thin); border-radius: var(--radius-6);
  color: var(--color-text); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color var(--transition-fast);
}
.feedback-title-input:focus { border-color: var(--color-accent); }

/* Description Textarea */
.feedback-description {
  width: 100%; min-height: 150px; padding: var(--spacing-16);
  background: var(--color-bg); border: var(--border-thin); border-radius: var(--radius-6);
  color: var(--color-text); font-family: var(--font-body); font-size: 0.95rem;
  resize: vertical; outline: none; transition: border-color var(--transition-fast);
}
.feedback-description:focus { border-color: var(--color-accent); }

/* Priority Pills */
.feedback-priority { display: flex; gap: var(--spacing-8); flex-wrap: wrap; }
.feedback-priority input[type="radio"] { display: none; }

.feedback-priority label {
  padding: var(--spacing-4) var(--spacing-16); background: var(--color-bg);
  border: var(--border-thin); border-radius: var(--radius-12);
  color: var(--color-text-muted); font-family: var(--font-heading); font-size: 0.85rem;
  cursor: pointer; transition: all var(--transition-fast);
}
.feedback-priority input[type="radio"]:checked + label { background: var(--color-secondary); border-color: var(--color-accent); color: var(--color-text-light); }
.feedback-priority label:hover { border-color: var(--color-secondary); color: var(--color-text); }

/* Priority color coding */
.feedback-priority label[for="prio-low"] { border-color: var(--color-info); }
.feedback-priority label[for="prio-normal"] { border-color: var(--color-success); }
.feedback-priority label[for="prio-high"] { border-color: var(--color-warning); }
.feedback-priority label[for="prio-critical"] { border-color: var(--color-error); }
.feedback-priority input[type="radio"]:checked + label[for="prio-low"] { background: var(--color-info); border-color: var(--color-info); color: var(--color-text-light); }
.feedback-priority input[type="radio"]:checked + label[for="prio-normal"] { background: var(--color-success); border-color: var(--color-success); color: var(--color-text-light); }
.feedback-priority input[type="radio"]:checked + label[for="prio-high"] { background: var(--color-warning); border-color: var(--color-warning); color: var(--color-text-light); }
.feedback-priority input[type="radio"]:checked + label[for="prio-critical"] { background: var(--color-error); border-color: var(--color-error); color: var(--color-text-light); }

/* File Upload (Drag & Drop) */
.feedback-file-upload {
  border: 2px dashed var(--color-text-muted); border-radius: var(--radius-12);
  padding: var(--spacing-24); text-align: center; color: var(--color-text-muted);
  cursor: pointer; transition: all var(--transition-fast);
}
.feedback-file-upload:hover { border-color: var(--color-secondary); color: var(--color-text); }
.feedback-file-upload.dragover { border-color: var(--color-accent); background: rgba(255, 215, 0, 0.05); color: var(--color-accent); }

.feedback-ticket-title { font-family: var(--font-heading); font-size: 1rem; color: var(--color-text); }
.feedback-ticket-meta { display: flex; gap: var(--spacing-16); font-size: 0.8rem; color: var(--color-text-muted); }

/* Status Badge */
.feedback-status-badge {
  display: inline-block; padding: 2px var(--spacing-8); border-radius: var(--radius-6);
  font-size: 0.75rem; font-weight: bold; color: var(--color-text-light); text-transform: uppercase;
}
.feedback-status-badge.new { background: var(--color-info); }
.feedback-status-badge.in-progress { background: var(--color-warning); }
.feedback-status-badge.resolved { background: var(--color-success); }
.feedback-status-badge.closed { background: var(--color-text-muted); }

/* Status badge in ticket card context */
.feedback-ticket-card .feedback-status-badge {
  font-size: 0.7rem;
  padding: 2px var(--spacing-8);
  flex-shrink: 0;
}

/* Full Ticket View */
.feedback-ticket-view {
  background: var(--color-surface); border: var(--border-thick); border-radius: var(--radius-12);
  padding: var(--spacing-24); display: flex; flex-direction: column; gap: var(--spacing-16);
}
.feedback-ticket-view-description { font-family: var(--font-body); line-height: 1.6; color: var(--color-text); }

/* Comment Card */
.feedback-comment {
  background: var(--color-bg); border: var(--border-thin); border-radius: var(--radius-12);
  padding: var(--spacing-16); display: flex; flex-direction: column; gap: var(--spacing-8);
}
.feedback-comment.internal { background: rgba(255, 152, 0, 0.08); border-color: var(--color-warning); }
.feedback-comment-author { font-family: var(--font-heading); font-size: 0.85rem; color: var(--color-accent); }
.feedback-comment-body { font-size: 0.9rem; color: var(--color-text); line-height: 1.5; }
.feedback-comment-time { font-size: 0.75rem; color: var(--color-text-muted); }

/* Attachment */
.feedback-attachment {
  display: inline-flex; align-items: center; gap: var(--spacing-8);
  padding: var(--spacing-4) var(--spacing-16); background: var(--color-bg);
  border: var(--border-thin); border-radius: var(--radius-6);
  font-size: 0.85rem; color: var(--color-text); text-decoration: none; transition: all var(--transition-fast);
}
.feedback-attachment:hover { border-color: var(--color-accent); color: var(--color-accent); }
.feedback-attachment-thumb { width: 40px; height: 40px; border-radius: var(--radius-6); object-fit: cover; background: var(--color-bg-light); }

/* Priority indicator on ticket card */
.feedback-ticket__priority {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px var(--spacing-8);
  border-radius: var(--radius-6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.feedback-ticket__priority--low { background: rgba(33, 150, 243, 0.15); color: var(--color-info); }
.feedback-ticket__priority--normal { background: rgba(76, 175, 80, 0.15); color: var(--color-success); }
.feedback-ticket__priority--high { background: rgba(255, 152, 0, 0.15); color: var(--color-warning); }
.feedback-ticket__priority--critical { background: rgba(244, 67, 54, 0.15); color: var(--color-error); }

/* Empty state enhancements */
.empty-state__icon { font-size: 3rem; margin-bottom: var(--spacing-16); }
.empty-state__title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-text); margin: 0 0 var(--spacing-8); }
.empty-state__description { font-size: 0.9rem; color: var(--color-text-muted); margin: 0 0 var(--spacing-16); max-width: 400px; margin-left: auto; margin-right: auto; }

/* Back button */
.feedback-ticket-view__back {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-4);
  background: none;
  border: none;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: var(--spacing-12);
  transition: color var(--transition-fast);
  align-self: flex-start;
}
.feedback-ticket-view__back:hover { color: var(--color-accent-hover); }

/* Badges row in ticket header */
.feedback-ticket-view__badges {
  display: flex;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-8);
  flex-wrap: wrap;
}

/* Markdown hint in comment form */
.feedback-comment-form__hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: -4px;
}

/* Mobile */
@media (width <= 768px) {
  .feedback-form { padding: var(--spacing-16); }
  .feedback-priority { flex-direction: column; }
  .feedback-ticket-meta { flex-direction: column; gap: var(--spacing-4); }

  .feedback-toolbar {
    flex-direction: column;
    gap: var(--spacing-12);
    align-items: stretch;
    padding: 0 var(--spacing-8);
  }

  .feedback-toolbar-title {
    text-align: center;
  }

  #new-ticket-btn {
    justify-content: center;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--spacing-32);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 1rem;
}

.empty-state-hint {
  font-size: 0.9rem;
  margin-top: var(--spacing-8);
  opacity: 0.8;
}

/* Comment form */
.feedback-comment-form {
  margin-top: var(--spacing-16);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}

.feedback-comment-form textarea {
  width: 100%; padding: var(--spacing-8) var(--spacing-16);
  background: var(--color-bg); border: var(--border-thin); border-radius: var(--radius-6);
  color: var(--color-text); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; resize: vertical; box-sizing: border-box;
}
.feedback-comment-form textarea:focus { border-color: var(--color-accent); }

/* Ticket description */
.feedback-ticket__description {
  background: var(--color-bg);
  padding: var(--spacing-16);
  border-radius: var(--radius-6);
  border: var(--border-thin);
  line-height: 1.6;
}

/* Comment */
.feedback-ticket__comment {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-6);
  padding: var(--spacing-12);
  margin-top: var(--spacing-8);
}

.feedback-comment__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-4);
}

.feedback-comment__content {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* Ticket Detail Modal Padding */
.modal-body {
  padding-top: var(--spacing-16);
}

/* Admin Feedback Table Layout */
.feedback-table-wrapper {
  overflow-x: auto;
}

.feedback-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 800px;
}

.feedback-table th,
.feedback-table td {
  padding: var(--spacing-12) var(--spacing-16);
  text-align: left;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  vertical-align: middle;
}

.feedback-table th {
  background: var(--color-primary);
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.feedback-table th:nth-child(1) { width: 30%; }
.feedback-table th:nth-child(2) { width: 15%; }
.feedback-table th:nth-child(3) { width: 12%; }
.feedback-table th:nth-child(4) { width: 12%; }
.feedback-table th:nth-child(5) { width: 16%; }
.feedback-table th:nth-child(6) { width: 15%; text-align: right; }

.feedback-table tr:hover {
  background: var(--color-surface-hover);
}

.feedback-table .table-actions {
  display: flex;
  gap: var(--spacing-4);
  justify-content: flex-end;
}

/* === simulator.css === */
/* ============================================================
   LandLords Ladder - Battle Simulator Styles
   Dependencies: core/variables.css, core/animations.css (via bundle)
   ============================================================ */

/* Simulator Page Layout */
.simulator-page {
  background: var(--color-bg);
}

.simulator-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-12);
}

.sim-config-panel-wrapper {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-12);
  margin-bottom: var(--spacing-12);
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 192, 64, 0.55) var(--color-bg);
}

.sim-config-panel-wrapper::-webkit-scrollbar {
  width: 6px;
}

.sim-config-panel-wrapper::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--radius-4);
  margin: 4px 0;
}

.sim-config-panel-wrapper::-webkit-scrollbar-thumb {
  background: rgba(240, 192, 64, 0.45);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background-clip: content-box;
}

.sim-config-panel-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 192, 64, 0.75);
  background-clip: content-box;
}

.sim-config-panel-wrapper::-webkit-scrollbar-corner {
  background: transparent;
}

/* Breadcrumb */
.sim-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: var(--spacing-12) var(--spacing-16);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 1100px;
  margin: 0 auto;
}

/* Tabs */
.sim-tabs {
  display: flex;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-16);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--spacing-4);
}

.sim-tab {
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: var(--spacing-8) var(--spacing-24);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-8);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-tab:hover {
  color: var(--color-text);
  background: rgba(255, 215, 0, 0.05);
  border-color: var(--color-border);
}

.sim-tab.active {
  color: var(--color-accent);
  background: rgba(255, 215, 0, 0.08);
  border-color: var(--color-accent);
}

/* Battle Type Selector */
.sim-battle-type-selector {
  display: flex;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-16);
  flex-wrap: wrap;
}

.sim-type-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: var(--spacing-6) var(--spacing-16);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-8);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-type-btn:hover {
  border-color: var(--color-secondary);
  background: var(--color-surface-hover);
}

.sim-type-btn--active {
  border-color: var(--color-accent) !important;
  background: rgba(255, 215, 0, 0.1) !important;
  color: var(--color-accent) !important;
  font-weight: 700;
}

/* Analysis Grid */
.sim-analysis-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-8);
  align-items: start;
  margin-bottom: var(--spacing-12);
}

@media (width <= 900px) {
  .sim-analysis-grid {
    grid-template-columns: 1fr;
  }
}

/* Army Cards */
.sim-army-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-12);
  max-height: 350px;
  overflow-y: auto;
}

.sim-army-card--attacker {
  border-left: 4px solid var(--color-success);
}

.sim-army-card--defender {
  border-left: 4px solid var(--color-info);
}

.sim-army-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--spacing-12);
  padding-bottom: var(--spacing-8);
  border-bottom: 1px solid var(--color-border);
}

.sim-army-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  margin: 0;
}

.sim-army-card__owner {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
}

.sim-army-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-12);
  margin-bottom: var(--spacing-12);
}

.sim-stat {
  text-align: center;
}

.sim-stat__label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-stat__value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.sim-unit-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 192, 64, 0.55) var(--color-bg);
}

.sim-unit-list::-webkit-scrollbar {
  width: 6px;
}

.sim-unit-list::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--radius-4);
  margin: 4px 0;
}

.sim-unit-list::-webkit-scrollbar-thumb {
  background: rgba(240, 192, 64, 0.45);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background-clip: content-box;
}

.sim-unit-list::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 192, 64, 0.75);
  background-clip: content-box;
}

.sim-unit-list::-webkit-scrollbar-corner {
  background: transparent;
}

.sim-unit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-4) var(--spacing-8);
  background: var(--color-bg);
  border-radius: var(--radius-6);
  font-size: 0.85rem;
}

.sim-unit-row__name {
  color: var(--color-text);
  font-family: var(--font-body);
}

.sim-unit-row__count {
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-heading);
}

/* VS Divider */
.sim-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: 0 0 12px var(--color-gold-glow);
  padding: var(--spacing-16) 0;
}

@media (width <= 900px) {
  .sim-vs-divider {
    padding: var(--spacing-8) 0;
  }
}

/* Army Comparison */
.sim-army-comparison {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-12);
  margin-top: var(--spacing-8);
}

/* Prediction Box */
.sim-prediction-box {
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-12);
  padding: var(--spacing-20);
  margin-top: var(--spacing-16);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}

.sim-comparison-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-12);
  padding: var(--spacing-8) 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.05);
  align-items: center;
}

.sim-comparison-row:last-child {
  border-bottom: none;
}

.sim-comp-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-align: center;
  color: var(--color-text-muted);
}

.sim-comp-value:first-child {
  text-align: right;
}

.sim-comp-value:last-child {
  text-align: left;
}

.sim-comp-value--winning {
  color: var(--color-accent);
  font-weight: 600;
}

.sim-comp-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  text-align: center;
  min-width: 120px;
}

.sim-placeholder {
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-20);
  margin-top: var(--spacing-16);
  text-align: center;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
}

.sim-prediction__result {
  text-align: center;
  margin-bottom: var(--spacing-16);
}

.sim-prediction__winner {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-4);
}

.sim-prediction__confidence {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.sim-prediction__eta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-12);
  margin-bottom: var(--spacing-16);
  padding-bottom: var(--spacing-16);
  border-bottom: 1px solid var(--color-border);
}

@media (width <= 600px) {
  .sim-prediction__eta {
    grid-template-columns: 1fr;
  }
}

.sim-eta-item {
  text-align: center;
}

.sim-eta__label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-eta__value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-text);
}

.sim-casualties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-16);
}

.sim-casualty-col {
  text-align: center;
}

.sim-casualty-col__label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-4);
}

.sim-casualty-col__value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-text);
}

/* Casualty Graph */
.sim-graph-container {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-16);
  margin-bottom: var(--spacing-16);
}

.sim-graph-container h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 0 var(--spacing-12) 0;
}

.sim-canvas-wrap {
  width: 100%;
  height: 250px;
  background: var(--color-bg);
  border-radius: var(--radius-6);
  overflow: hidden;
}

.sim-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Event Log */
.sim-event-log-container {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-16);
}

.sim-event-log-container h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 0 var(--spacing-12) 0;
}

.sim-event-log {
  max-height: 300px;
  overflow-y: auto;
}

.sim-event-entry {
  display: flex;
  gap: var(--spacing-12);
  align-items: baseline;
  padding: var(--spacing-8) var(--spacing-12);
  background: var(--color-bg);
  border-radius: var(--radius-6);
  margin-bottom: var(--spacing-4);
  font-size: 0.85rem;
}

.sim-event-entry__tick {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
  min-width: 45px;
}

.sim-event-entry__type {
  font-size: 0.75rem;
  padding: 2px var(--spacing-8);
  border-radius: var(--radius-6);
  background: rgba(255, 215, 0, 0.1);
  color: var(--color-accent);
  font-family: var(--font-heading);
  text-transform: capitalize;
  white-space: nowrap;
}

.side-attacker .sim-event-entry__type {
  background: rgba(76, 175, 80, 0.15);
  color: var(--color-success);
}

.side-defender .sim-event-entry__type {
  background: rgba(33, 150, 243, 0.15);
  color: var(--color-info);
}

.sim-event-entry__desc {
  color: var(--color-text);
  flex: 1;
}

.sim-empty {
  text-align: center;
  padding: var(--spacing-24);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 1rem;
}

/* Action Buttons */
.sim-actions {
  display: flex;
  gap: var(--spacing-12);
  margin-top: var(--spacing-16);
  flex-wrap: wrap;
}

.sim-actions--sticky {
  position: sticky;
  bottom: 0;
  background: var(--color-bg);
  padding: var(--spacing-12) 0;
  z-index: 10;
  border-top: 1px solid var(--color-border);
  justify-content: center;
}

.sim-action-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: var(--spacing-10) var(--spacing-24);
  border-radius: var(--radius-8);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  min-height: 44px;
}

.sim-action-btn:hover {
  background: rgba(255, 215, 0, 0.1);
}

.sim-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sim-action-btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.sim-action-btn--primary:hover {
  background: var(--color-accent-hover);
}

/* ============================================================
   Config Tabs (Units / Bonuses / Reinforcements)
   ============================================================ */

.sim-config-tabs {
  display: flex;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-12);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-4);
}

.sim-config-tab {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: var(--spacing-4) var(--spacing-16);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-6);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-config-tab:hover {
  color: var(--color-text);
  background: rgba(255, 215, 0, 0.05);
}

.sim-config-tab.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(255, 215, 0, 0.08);
}

#sim-config-panel {
  margin-bottom: var(--spacing-16);
}

/* Config Grid (side-by-side attacker/defender) */
.sim-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-8);
  padding: var(--spacing-4);
}

@media (width <= 768px) {
  .sim-config-grid {
    grid-template-columns: 1fr;
  }
}

.sim-config-panel-wrapper {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-16);
  margin-bottom: var(--spacing-16);
}

.sim-config-grid h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-accent);
  margin: 0 0 var(--spacing-8) 0;
}

/* ============================================================
   Unit Editor
   ============================================================ */

.sim-unit-editor {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-12);
  max-height: min(70vh, 600px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 192, 64, 0.55) var(--color-bg);
}

.sim-unit-editor::-webkit-scrollbar {
  width: 6px;
}

.sim-unit-editor::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--radius-4);
  margin: 4px 0;
}

.sim-unit-editor::-webkit-scrollbar-thumb {
  background: rgba(240, 192, 64, 0.45);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background-clip: content-box;
}

.sim-unit-editor::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 192, 64, 0.75);
  background-clip: content-box;
}

.sim-unit-editor::-webkit-scrollbar-corner {
  background: transparent;
}

.sim-editor-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-8);
}

.sim-editor-row label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  min-width: 80px;
}

.sim-editor-input {
  padding: var(--spacing-4) var(--spacing-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-4);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.sim-editor-input:focus {
  border-color: var(--color-accent);
}

.sim-editor-input--small {
  width: 70px;
}

.sim-editor-input--count {
  width: 80px;
  text-align: right;
}

.sim-editor-input--exp {
  width: 55px;
  text-align: right;
}

.sim-editor-select {
  padding: var(--spacing-4) var(--spacing-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-4);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.sim-editor-select:focus {
  border-color: var(--color-accent);
}

.sim-editor-stats {
  display: flex;
  gap: var(--spacing-16);
  margin-bottom: var(--spacing-8);
}

.sim-editor-stat {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  flex: 1;
  min-width: 0;
}

.sim-editor-stat label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  min-width: 64px;
  white-space: nowrap;
}

.sim-editor-slider {
  flex: 1;
  min-width: 60px;
  height: 20px;
  accent-color: var(--color-accent);
  background: transparent;
  cursor: pointer;
}

.sim-editor-slider::-webkit-slider-runnable-track {
  height: 5px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.sim-editor-slider::-webkit-slider-thumb {
  appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.sim-editor-slider::-moz-range-track {
  height: 5px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.sim-editor-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.sim-editor-units {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-12);
}

.sim-editor-unit-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: var(--spacing-4) var(--spacing-8);
  background: var(--color-bg);
  border-radius: var(--radius-4);
}

.sim-editor-unit-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--color-text);
  font-family: var(--font-body);
}

.sim-editor-add {
  display: flex;
  gap: var(--spacing-8);
  align-items: center;
}

.sim-editor-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: var(--spacing-4) var(--spacing-12);
  border-radius: var(--radius-4);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.sim-editor-btn:hover {
  border-color: var(--color-accent);
}

.sim-editor-btn--add {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.sim-editor-btn--remove {
  padding: var(--spacing-2) var(--spacing-6);
  color: var(--color-error);
  border-color: transparent;
  background: transparent;
  font-size: 0.9rem;
}

.sim-editor-btn--remove:hover {
  background: rgba(244, 67, 54, 0.1);
}

/* ============================================================
   Bonus Editor
   ============================================================ */

.sim-bonus-editor {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-12);
}

.sim-bonus-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-8);
}

.sim-bonus-row label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  min-width: 120px;
}

.sim-bonus-slider {
  flex: 1;
  min-width: 120px;
  height: 22px;
  accent-color: var(--color-accent);
  background: transparent;
  cursor: pointer;
}

.sim-bonus-slider::-webkit-slider-runnable-track {
  height: 5px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.sim-bonus-slider::-webkit-slider-thumb {
  appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.sim-bonus-slider::-moz-range-track {
  height: 5px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.sim-bonus-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.sim-bonus-value {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-accent);
  min-width: 40px;
  text-align: right;
}

/* ============================================================
   Reinforcement Editor
   ============================================================ */

.sim-reinforcement-editor {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-12);
  max-height: 350px;
  overflow-y: auto;
}

.sim-reinforcement-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  padding: var(--spacing-12);
  margin-bottom: var(--spacing-8);
  position: relative;
}

.sim-reinforcement-card__header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-4);
}

.sim-reinforcement-card__count {
  color: var(--color-accent);
}

.sim-reinforcement-card__units {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.sim-reinforcement-add {
  display: flex;
  gap: var(--spacing-4);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-12);
  padding-top: var(--spacing-12);
  border-top: 1px solid var(--color-border);
}

.sim-reinf-add-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.sim-reinforcement-card__flanking {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  margin-top: var(--spacing-8);
  padding-top: var(--spacing-8);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.sim-reinforcement-card__flanking label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.sim-reinf-flanking-select {
  padding: var(--spacing-2) var(--spacing-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-4);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  outline: none;
  cursor: pointer;
}

.sim-reinf-flanking-select:focus {
  border-color: var(--color-accent);
}

/* ============================================================
   Tick Timeline
   ============================================================ */

.sim-timeline-container {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-12);
  padding: var(--spacing-12);
  margin-bottom: var(--spacing-12);
}

.sim-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-8);
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid var(--color-border);
}

.sim-timeline-header h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0;
}

.sim-timeline-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
}

.sim-timeline-controls label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.sim-timeline-controls label span {
  white-space: nowrap;
}

#sim-timeline {
  display: flex;
  gap: var(--spacing-2);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--spacing-8) var(--spacing-4);
  min-height: 56px;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 192, 64, 0.55) var(--color-bg);
}

#sim-timeline::-webkit-scrollbar {
  height: 6px;
}

#sim-timeline::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--radius-4);
  margin: 0 4px;
}

#sim-timeline::-webkit-scrollbar-thumb {
  background: rgba(240, 192, 64, 0.45);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background-clip: content-box;
}

#sim-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 192, 64, 0.75);
  background-clip: content-box;
}

#sim-timeline::-webkit-scrollbar-corner {
  background: transparent;
}

.sim-timeline-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2), inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.sim-timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 1px;
  background: rgba(255, 215, 0, 0.55);
  border-radius: var(--radius-full);
}

.sim-action-btn--small {
  font-size: 0.85rem;
  padding: var(--spacing-6) var(--spacing-14);
  min-height: 36px;
}

.sim-editor-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: var(--spacing-6) var(--spacing-14);
  border-radius: var(--radius-4);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  min-height: 32px;
}

.sim-editor-btn:hover {
  border-color: var(--color-accent);
}

.sim-editor-btn--add {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.sim-editor-btn--remove {
  padding: var(--spacing-2) var(--spacing-6);
  color: var(--color-error);
  border-color: transparent;
  background: transparent;
  font-size: 0.9rem;
  min-height: auto;
}

.sim-tick-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-8);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1;
}

.sim-tick-marker:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: scale(1.08);
}

.sim-tick-marker--active {
  border-color: var(--color-accent);
  background: rgba(255, 215, 0, 0.1);
  color: var(--color-accent);
  font-weight: 700;
  box-shadow: 0 0 10px var(--color-gold-glow);
}

.sim-tick-marker--event {
  border-color: var(--color-info);
  background: rgba(33, 150, 243, 0.15);
  color: var(--color-info);
}

.sim-tick-marker__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Timeline Modal
   ============================================================ */

.sim-timeline-modal {
  max-width: 500px;
}

.sim-timeline-modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  padding: var(--spacing-16) 0;
}

.sim-timeline-modal-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.sim-timeline-modal-field label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.sim-timeline-modal-field .sim-editor-input {
  width: 100%;
  padding: var(--spacing-8) var(--spacing-12);
  font-size: 0.95rem;
}

.sim-timeline-modal-field .sim-editor-select {
  width: 100%;
  padding: var(--spacing-8) var(--spacing-12);
  font-size: 0.95rem;
}

.sim-timeline-modal-info {
  background: var(--color-bg);
  padding: var(--spacing-8) var(--spacing-12);
  border-radius: var(--radius-6);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin: 0;
}

.sim-timeline-modal-field small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ============================================================
   Scrollbar Helpers
   ============================================================ */

.sim-scrollbar,
.sim-unit-editor,
.sim-config-panel-wrapper,
.sim-reinforcement-editor,
.sim-unit-list,
.sim-editor-units,
.sim-event-log {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.45) var(--color-bg);
}

.sim-scrollbar::-webkit-scrollbar,
.sim-unit-editor::-webkit-scrollbar,
.sim-config-panel-wrapper::-webkit-scrollbar,
.sim-reinforcement-editor::-webkit-scrollbar,
.sim-unit-list::-webkit-scrollbar,
.sim-editor-units::-webkit-scrollbar,
.sim-event-log::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sim-scrollbar::-webkit-scrollbar-track,
.sim-unit-editor::-webkit-scrollbar-track,
.sim-config-panel-wrapper::-webkit-scrollbar-track,
.sim-reinforcement-editor::-webkit-scrollbar-track,
.sim-unit-list::-webkit-scrollbar-track,
.sim-editor-units::-webkit-scrollbar-track,
.sim-event-log::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--radius-4);
  margin: 4px 0;
}

.sim-unit-list::-webkit-scrollbar-thumb,
.sim-editor-units::-webkit-scrollbar-thumb,
.sim-unit-editor::-webkit-scrollbar-thumb,
.sim-config-panel-wrapper::-webkit-scrollbar-thumb,
.sim-reinforcement-editor::-webkit-scrollbar-thumb,
.sim-event-log::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background-clip: content-box;
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.2);
}

.sim-unit-list::-webkit-scrollbar-thumb:hover,
.sim-editor-units::-webkit-scrollbar-thumb:hover,
.sim-unit-editor::-webkit-scrollbar-thumb:hover,
.sim-config-panel-wrapper::-webkit-scrollbar-thumb:hover,
.sim-reinforcement-editor::-webkit-scrollbar-thumb:hover,
.sim-event-log::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.65);
  background-clip: content-box;
}

.sim-scrollbar::-webkit-scrollbar-corner,
.sim-unit-editor::-webkit-scrollbar-corner,
.sim-config-panel-wrapper::-webkit-scrollbar-corner,
.sim-reinforcement-editor::-webkit-scrollbar-corner,
.sim-unit-list::-webkit-scrollbar-corner,
.sim-editor-units::-webkit-scrollbar-corner,
.sim-event-log::-webkit-scrollbar-corner {
  background: transparent;
}

/* ============================================================
   Overflow Fixes
   ============================================================ */

.simulator-content {
  overflow-x: hidden;
}

.sim-config-panel-wrapper {
  overflow-x: hidden;
}

.sim-unit-editor {
  overflow-x: hidden;
}

.sim-reinforcement-editor {
  overflow-x: hidden;
}

.sim-unit-list {
  overflow-x: hidden;
}

.sim-editor-units {
  overflow-x: hidden;
}

.sim-event-log {
  overflow-x: hidden;
}

/* === components/uploads.css === */

/* ============================================================
   LandLords Ladder - File Upload Component
   ============================================================ */

/* --- Upload Zone (Drop Area) --- */

.upload-zone {
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-12);
  padding: var(--spacing-40) var(--spacing-32);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--color-surface);
  position: relative;
}

.upload-zone:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
}

.upload-zone--dragover {
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
  box-shadow: var(--shadow-glow);
  transform: scale(1.01);
}

.upload-zone__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--spacing-16);
  color: var(--color-secondary);
  transition: color var(--transition-normal);
}

.upload-zone:hover .upload-zone__icon,
.upload-zone--dragover .upload-zone__icon {
  color: var(--color-accent);
}

.upload-zone__icon svg {
  width: 100%;
  height: 100%;
}

.upload-zone__title {
  font-family: var(--font-heading);
  font-size: var(--text-18);
  color: var(--color-text);
  margin: 0 0 var(--spacing-4);
}

.upload-zone__subtitle {
  font-size: var(--text-14);
  color: var(--color-text-muted);
  margin: 0 0 var(--spacing-16);
}

.upload-zone__limits {
  font-size: var(--text-12);
  color: var(--color-text-muted);
  margin: 0 0 var(--spacing-20);
  font-family: var(--font-mono);
}

.upload-zone__browse-btn {
  display: inline-block;
  padding: var(--spacing-8) var(--spacing-24);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--text-14);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-6);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.upload-zone__browse-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
  box-shadow: var(--shadow-gold);
}

/* --- Error Messages --- */

.upload-zone__error {
  padding: var(--spacing-8) var(--spacing-16);
  background: var(--color-error-light);
  color: var(--color-text-light);
  border-radius: var(--radius-6);
  font-size: var(--text-14);
  margin-bottom: var(--spacing-12);
  animation: upload-fade-in 0.3s ease;
}

/* --- File List --- */

.upload-zone__file-list {
  margin-top: var(--spacing-24);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}

/* --- Individual File Item --- */

.upload-file {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  padding: var(--spacing-12) var(--spacing-16);
  background: var(--color-parchment);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-8);
  transition: all var(--transition-normal);
  animation: upload-slide-in 0.3s ease;
}

.upload-file:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-gold);
}

.upload-file__icon {
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.upload-file__icon svg {
  width: 100%;
  height: 100%;
}

.upload-file__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.upload-file__name {
  font-size: var(--text-14);
  color: var(--color-text);
  font-weight: var(--font-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file__size {
  font-size: var(--text-12);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.upload-file__error {
  font-size: var(--text-12);
  color: var(--color-error-light);
}

/* --- Status Icons --- */

.upload-file__status-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.upload-file__status-icon svg {
  width: 100%;
  height: 100%;
}

.upload-file__status-icon--success {
  color: var(--color-success);
}

.upload-file__status-icon--error {
  color: var(--color-error-light);
}

.upload-file__status-icon--cancelled {
  color: var(--color-text-muted);
}

/* --- Spinner --- */

.upload-file__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-primary);
  border-top-color: var(--color-accent);
  border-radius: var(--radius-full);
  animation: upload-spin 0.8s linear infinite;
  flex-shrink: 0;
}

/* --- Progress Bar --- */

.upload-file__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-parchment-edge);
  border-radius: 0 0 var(--radius-8) var(--radius-8);
  overflow: hidden;
}

.upload-file__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transition: width var(--transition-fast);
  border-radius: 3px;
}

/* --- Saved File Item --- */

.upload-file--saved .upload-file__icon {
  color: var(--color-accent);
}

.upload-file__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-16);
  border-radius: var(--radius-4);
  transition: all var(--transition-normal);
}

.upload-file__link:hover {
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

.upload-file__delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-4);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.upload-file__delete svg {
  width: 16px;
  height: 16px;
}

.upload-file__delete:hover {
  color: var(--color-error-light);
  background: rgba(244, 67, 54, 0.1);
  border-color: var(--color-error);
}

/* --- Empty State --- */

.upload-empty {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-14);
  padding: var(--spacing-24);
}

/* --- Status Variants --- */

.upload-file--complete {
  border-left: 3px solid var(--color-success);
}

.upload-file--error {
  border-left: 3px solid var(--color-error);
}

.upload-file--cancelled {
  opacity: 0.6;
}

/* --- Animations --- */

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

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

@keyframes upload-spin {
  to { transform: rotate(360deg); }
}

/* --- Responsive --- */

@media (width <= 767px) {
  .upload-zone {
    padding: var(--spacing-24) var(--spacing-16);
  }

  .upload-file {
    flex-wrap: wrap;
    padding: var(--spacing-8) var(--spacing-12);
  }

  .upload-file__name {
    font-size: var(--text-12);
  }

  .upload-zone__limits {
    font-size: var(--text-12);
  }
}

/* === pages/callback.css === */
/* ============================================================
   LandLords Ladder - Auth Callback Page
   Medieval Style Authentication
   Dependencies: core/variables.css, core/animations.css (via bundle)
   ============================================================ */

/* === ../core/utilities.css === */
/**
 * LandLords Ladder вЂ” Utility Classes (Ladder-specific)
 * Extends base utilities with ladder-specific helpers
 * 
 * NOTE: This is a TRIMMED, independent utility set for the ladder UI.
 * It uses semantic spacing names (xs/sm/md/lg/xl) instead of the
 * numeric system in www/css/core/utilities.css (4/8/12/16/24/32).
 * It omits: grid-cols, flex-direction, alignment, gap, padding,
 * border, border-radius, background, shadow, cursor, transition,
 * and responsive utilities вЂ” those are provided by other ladder CSS files.
 * It adds: app-container, panel, server-list, profile, and
 * ladder-specific responsive layout classes.
 *
 * @version 1.1.0
 * @last-modified 2026-06-28
 */

/* ==========================================================================
   STATE CLASSES (.is- prefix)
   ========================================================================== */

/** Hide element вЂ” replaces inline `style="display: none;"` */
.is-hidden { display: none !important; }

/** Show element вЂ” restores default display */
.is-visible { display: block !important; }

/* ==========================================================================
   SPACING UTILITIES (.u- prefix)
   ========================================================================== */

/* Margin Bottom */
.u-mb-0  { margin-bottom: 0; }
.u-mb-xs { margin-bottom: var(--spacing-4); }
.u-mb-sm { margin-bottom: var(--spacing-8); }
.u-mb-md { margin-bottom: var(--spacing-16); }
.u-mb-lg { margin-bottom: var(--spacing-24); }
.u-mb-xl { margin-bottom: var(--spacing-32); }

/* Margin Top */
.u-mt-0  { margin-top: 0; }
.u-mt-xs { margin-top: var(--spacing-4); }
.u-mt-sm { margin-top: var(--spacing-8); }
.u-mt-md { margin-top: var(--spacing-16); }
.u-mt-lg { margin-top: var(--spacing-24); }
.u-mt-xl { margin-top: var(--spacing-32); }

/* ==========================================================================
   SIZING UTILITIES (.u- prefix)
   ========================================================================== */

.u-max-w-sm { max-width: 400px; }
.u-max-w-md { max-width: 600px; }
.u-max-w-lg { max-width: 800px; }
.u-max-w-xl { max-width: var(--container-max, 1200px); }
.u-max-w-full { max-width: 100%; }

/* ==========================================================================
   APP CONTAINER вЂ” max-width centering for all pages
   ========================================================================== */
.app-container {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 var(--container-gutter, var(--spacing-16));
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES (.u- prefix)
   ========================================================================== */

.u-text-muted { color: var(--color-text-muted); }
.u-text-accent { color: var(--color-accent); }
.u-text-primary { color: var(--color-text); }
.u-text-light { color: var(--color-text-light); }
.u-text-success { color: var(--color-success); }
.u-text-warning { color: var(--color-warning); }
.u-text-error { color: var(--color-error); }
.u-text-info { color: var(--color-info); }

.u-font-heading { font-family: var(--font-heading); }
.u-font-body { font-family: var(--font-body); }
.u-font-mono { font-family: var(--font-mono); }

/* ==========================================================================
   PANEL UTILITIES
   ========================================================================== */
.u-panel-scroll {
  flex: 1;
  padding: var(--spacing-16);
}

.u-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.u-scroll-hidden {
  overflow: hidden;
}

.u-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-16);
  border-bottom: var(--border-thick);
}

/* ==========================================================================
   SERVER LIST UTILITIES
   ========================================================================== */
.u-server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--spacing-16);
}

.u-server-item {
  position: relative;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   PROFILE UTILITIES
   ========================================================================== */
.u-profile-header {
  text-align: center;
  padding: var(--spacing-24);
  background: radial-gradient(
    ellipse at center,
    rgba(139, 69, 19, 0.6) 0%,
    rgba(101, 67, 33, 0.8) 50%,
    rgba(42, 26, 10, 0.95) 100%
  );
  border-radius: var(--radius-12);
}

.u-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  object-fit: cover;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 215, 0, 0.25);
}

/* ==========================================================================
   RESPONSIVE LADDER LAYOUT
   ========================================================================== */

/* Mobile: Single column */
@media (width <= 767px) {
  .u-ladder-container {
    grid-template-columns: 1fr !important;
  }
  
  .u-ladder-footer {
    display: flex !important;
  }
}

/* Tablet: Two columns */
@media (width >= 768px) and (width <= 1023px) {
  .u-ladder-container {
    grid-template-columns: var(--sidebar-width) 1fr !important;
  }
}

/* Desktop: Three columns */
@media (width >= 1024px) {
  .u-ladder-container {
    grid-template-columns: var(--sidebar-width) 1fr var(--news-width) !important;
  }
}

/* ==========================================================================
   TOUCH DEVICE ADJUSTMENTS
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  .u-touch-target {
    min-height: 48px !important;
    min-width: 48px !important;
  }
  
  .u-server-item {
    min-height: 44px;
  }
}

/* ==========================================================================
   ADMIN-ONLY ELEMENTS (hidden by default, shown via JS)
   ========================================================================== */
.is-admin-only { display: none; }

/* ==========================================================================
   MISSING SIZE UTILITIES
   ========================================================================== */
.u-min-w-150 { min-width: 150px; }
.u-max-w-700 { max-width: 700px; }


/* Scoped under .callback-page to avoid conflict with header/footer when bundled */
.callback-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: 
        radial-gradient(ellipse at top, rgba(139, 69, 19, 0.3) 0%, transparent 70%),
        radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 50%, var(--color-bg) 100%);
    position: relative;
}

/* Vertically center container in remaining space between header and footer */
.callback-page .container {
    margin: auto;
}

/* Hide navigation chrome вЂ” this is a transient auth page, not a full app page */
.callback-page .ladder-header,
.callback-page .mobile-menu-drawer,
.callback-page .ladder-footer {
    display: none !important;
}

/* Decorative border */
.callback-page::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    pointer-events: none;
    z-index: 0;
}

.callback-page::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    pointer-events: none;
    z-index: 0;
}

.container { 
    text-align: center; 
    max-width: 600px; 
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.1),
        inset 0 0 60px rgba(139, 69, 19, 0.1);
}

/* Logo */
.logo-container {
    margin-bottom: 40px;
}

.logo-img-callback {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--color-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Spinner with medieval style */
.spinner {
    width: 80px;
    height: 80px;
    margin: 30px auto;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1.5s ease-in-out infinite;
    position: relative;
}

.spinner::before {
    content: '\2694';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);

    /* Keep the icon upright while the outer ring spins */
    animation: counter-spin 1.5s ease-in-out infinite;
}

.spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--color-accent);
    animation: orbit 1.5s ease-in-out infinite;
}

h1 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 15px;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

p {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 30px;
    font-style: italic;
}

/* Progress steps */
.progress-container {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
}

.progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
    color: var(--color-success);
}

.progress-step .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.progress-step.active .icon {
    background: rgba(255, 215, 0, 0.3);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.progress-step.completed .icon {
    background: rgba(76, 175, 80, 0.2);
    border-color: var(--color-success);
}

.progress-step .label {
    font-size: 1rem;
    color: var(--color-text);
}

/* Error state */
.error {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid var(--color-error);
    border-radius: 8px;
    padding: 20px;
    color: var(--color-error);
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.95rem;
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.2);
}

.error::before {
    content: '\26A0  ';
    font-size: 1.2rem;
}

/* Success state */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 20px auto;
    background: rgba(76, 175, 80, 0.2);
    border: 3px solid var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: successPulse 2s ease-in-out infinite;
}

.btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.4);
}

.btn:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Hidden РІР‚вЂќ uses .is-hidden from utilities.css */

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Responsive */
@media (width <= 600px) {
    .container {
        padding: 40px 25px;
    }
    
    .logo-img-callback {
        max-width: 180px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .progress-step {
        flex-direction: column;
    }
    
    .progress-step .icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}



