/* =============================================
   MU VARELA — Dark Gold Theme
   3-Column Layout (HeroesMU-inspired)
   ============================================= */

:root {
  --gold: #d4a843;
  --gold-light: #f0d078;
  --gold-dark: #9a7620;
  --crimson: #c0392b;
  --crimson-glow: #e74c3c;
  --blue-accent: #4a9eff;
  --green-accent: #2ecc71;
  --purple-accent: #9b59b6;
  --bg-deep: #0a0a0f;
  --bg-card: #12121c;
  --bg-card-hover: #1a1a2a;
  --bg-surface: #0e0e16;
  --text-primary: #e8e4dc;
  --text-muted: #8a8690;
  --border-subtle: rgba(212,168,67,0.15);
  --glow-gold: 0 0 30px rgba(212,168,67,0.3);
  --sidebar-width: 220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg-deep) !important;
  color: var(--text-primary) !important;
  font-family: 'Rajdhani', sans-serif !important;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#app { flex: 1; }
a { color: var(--gold); transition: color 0.2s; }
a:hover, a:focus { color: var(--gold-light); text-decoration: none; }
hr { border-color: var(--border-subtle); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar-mu {
  background: rgba(10,10,15,0.97) !important;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 56px;
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}
.navbar-mu .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0 1rem;
  flex-wrap: wrap;
  max-width: 1600px;
  width: 100%;
  justify-content: center;
}
.navbar-mu .nav-links li a,
.navbar-mu .nav-links li > span {
  display: inline-block;
  padding: 16px 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.navbar-mu .nav-links li a i {
  margin-right: 4px;
}
.navbar-mu .nav-links li a:hover,
.navbar-mu .nav-links li a:focus {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: none;
}
.navbar-mu .nav-links .badge {
  background: var(--crimson);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
}
.navbar-mu .nav-links .dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  margin-top: 0;
}
.navbar-mu .nav-links .dropdown-menu li a {
  color: var(--text-muted) !important;
  padding: 10px 16px !important;
  border-bottom: none;
}
.navbar-mu .nav-links .dropdown-menu li a:hover {
  color: var(--gold) !important;
  background: var(--bg-card-hover) !important;
}
.navbar-mu .menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--gold);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
}
.lang-switcher a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.25) !important;
  border-radius: 4px;
  padding: 8px 14px !important;
  margin: 0 2px;
  transition: all 0.25s ease;
}
.lang-switcher a:hover {
  background: rgba(212,168,67,0.18) !important;
  border-color: var(--gold) !important;
}
.lang-switcher a i {
  font-size: 0.9em;
  color: var(--text-muted);
  margin-right: 0 !important;
}
.lang-switcher a:hover i { color: var(--gold); }
.lang-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}

/* Dropdown de idioma (hover) */
.lang-dropdown { position: relative; }
.lang-dropdown .lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  margin: 6px 0 0;
  padding: 6px 0;
  list-style: none;
  background: rgba(15,15,20,0.97);
  border: 1px solid rgba(212,168,67,0.35);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1050;
}
.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown .lang-menu li { margin: 0; }
.lang-dropdown .lang-menu a {
  display: block !important;
  padding: 8px 14px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: none;
}
.lang-dropdown .lang-menu a:hover {
  background: rgba(212,168,67,0.15) !important;
  color: var(--gold);
}
.lang-dropdown .lang-menu a.is-active {
  color: var(--gold);
  font-weight: 700;
}

/* =============================================
   HERO (compact)
   ============================================= */
.hero-mu {
  position: relative;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 3rem;
  background-size: cover;
  background-position: center;
}
.hero-mu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,67,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(192,57,43,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-mu::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a843' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.hero-mu > * { position: relative; z-index: 1; }
.hero-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 0.4em 1.6em;
  margin-bottom: 1.5rem;
  animation: fadeDown 1s ease;
}
.hero-mu h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 1s ease;
  margin-bottom: 0.3em;
}
.hero-mu h1 span {
  display: block;
  font-size: 0.35em;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.25em;
  background: linear-gradient(90deg, var(--text-muted), var(--text-primary), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.5em;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1.4s ease;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
}
.hero-stat .label-stat {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 0.2em;
  display: block;
  background: transparent;
}

/* Hero Ornament */
.hero-ornament {
  margin-top: 2.5rem;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark) 30%, var(--gold) 50%, var(--gold-dark) 70%, transparent);
  opacity: 0.5;
  animation: fadeUp 2s ease;
}

/* =============================================
   KILL TICKER (horizontal, below hero)
   ============================================= */
.kill-ticker {
  background: rgba(18,18,28,0.9);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.kill-ticker::before {
  content: 'LAST KILLS';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--bg-deep) 80%, transparent);
  padding: 8px 20px 8px 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--crimson-glow);
  display: flex;
  align-items: center;
  z-index: 2;
  font-weight: 700;
}
.kill-ticker-content {
  display: inline-block;
  padding-left: 120px;
  animation: ticker 30s linear infinite;
  font-size: 0.82rem;
}
.kill-ticker-content .tick-item {
  display: inline;
  margin-right: 3rem;
}
.kill-ticker-content .tick-victim { color: var(--blue-accent); font-weight: 700; }
.kill-ticker-content .tick-killer { color: var(--crimson-glow); font-weight: 700; }
.kill-ticker-content .tick-sep { color: var(--text-muted); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   3-COLUMN LAYOUT
   ============================================= */
.main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr 280px;
  gap: 1.2rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* =============================================
   LEFT SIDEBAR
   ============================================= */
.sidebar-left { min-width: 0; }

/* Sidebar Panel */
.sidebar-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.2rem;
  overflow: hidden;
  position: relative;
}
.sidebar-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
}
.sidebar-panel-header {
  background: rgba(212,168,67,0.08);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 14px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}
.sidebar-panel-body {
  padding: 12px 14px;
}
.sidebar-panel-footer {
  background: rgba(212,168,67,0.04);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Info rows */
.info-row-sm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(212,168,67,0.05);
  font-size: 0.82rem;
}
.info-row-sm:last-child { border-bottom: none; }
.info-row-sm strong { color: var(--gold); font-weight: 600; font-size: 0.78rem; }
.info-row-sm span { color: var(--text-muted); }

/* Social links */
.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}
.social-link:hover { color: var(--gold); text-decoration: none; }
.social-link i { width: 18px; text-align: center; font-size: 1rem; }

/* =============================================
   CENTER CONTENT
   ============================================= */
.main-content { min-width: 0; }

/* =============================================
   RIGHT SIDEBAR
   ============================================= */
.sidebar-right { min-width: 0; }

/* Login Panel */
.login-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.2rem;
  overflow: hidden;
  position: relative;
}
.login-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
}
.login-panel-header {
  background: rgba(212,168,67,0.08);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 14px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  text-transform: uppercase;
}
.login-panel-body { padding: 14px; }
.login-panel .form-input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #151520;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.login-panel .form-input:focus {
  border-color: var(--gold);
}
.login-panel .form-input::placeholder { color: var(--text-muted); }
.login-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: 1px solid var(--gold);
  color: var(--bg-deep);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.login-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}
.login-links {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}
.login-links a { color: var(--gold); }
.login-links a.forgot-link { color: #ffd700; }
.login-links a.forgot-link:hover { color: #fff; }

/* User Panel (logged in) */
.user-panel {
  text-align: center;
  padding: 14px;
}
.user-panel img { border-radius: 50%; border: 2px solid var(--border-subtle); margin-bottom: 8px; }
.user-panel .username {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.user-panel .user-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.user-panel .user-actions a {
  flex: 1;
  padding: 6px;
  font-size: 0.72rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.user-panel .user-actions a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212,168,67,0.08);
}

/* Online badge (right sidebar) */
.online-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.2);
  margin-bottom: 1.2rem;
}
.online-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-accent);
  box-shadow: 0 0 8px var(--green-accent);
  animation: pulse 2s infinite;
}
.online-badge .count {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-accent);
}
.online-badge .ob-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.online-badge.is-offline {
  background: rgba(231,76,60,0.08);
  border-color: rgba(231,76,60,0.25);
}
.online-badge.is-offline .dot {
  background: #e74c3c;
  box-shadow: 0 0 8px #e74c3c;
}
.online-badge.is-offline .count,
.online-badge.is-offline .ob-label strong {
  color: #e74c3c;
}

/* Hero server-status pill */
.hero-server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin: 10px auto 18px;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid;
}
.hero-server-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-server-status .label {
  color: var(--text-muted);
}
.hero-server-status.is-online {
  background: rgba(46,204,113,0.10);
  border-color: rgba(46,204,113,0.35);
  color: var(--green-accent);
}
.hero-server-status.is-online .dot {
  background: var(--green-accent);
  box-shadow: 0 0 8px var(--green-accent);
}
.hero-server-status.is-offline {
  background: rgba(231,76,60,0.10);
  border-color: rgba(231,76,60,0.35);
  color: #e74c3c;
}
.hero-server-status.is-offline .dot {
  background: #e74c3c;
  box-shadow: 0 0 8px #e74c3c;
  animation: none;
}

/* =============================================
   PANELS (used everywhere)
   ============================================= */
.panel-mu {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.panel-mu:hover { border-color: rgba(212,168,67,0.25); }
.panel-mu .panel-heading-mu {
  background: rgba(212,168,67,0.06);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-mu .panel-heading-mu .panel-title-mu {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  padding: 0;
  border: none;
}
.panel-mu .panel-body-mu { padding: 14px; }
.panel-view-all {
  margin-left: auto;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.panel-view-all:hover { color: var(--gold); text-decoration: none; }
.panel-view-all i { margin-left: 2px; }
.panel-mu .panel-footer-mu {
  background: rgba(212,168,67,0.04);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
.panel-mu .panel-footer-mu a { color: var(--gold); cursor: pointer; }

/* =============================================
   TABLE THEME
   ============================================= */
.table-mu {
  width: 100%;
  border-collapse: collapse;
}
.table-mu thead th {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}
.table-mu tbody tr {
  border-bottom: 1px solid rgba(212,168,67,0.06);
  transition: all 0.2s;
}
.table-mu tbody tr:hover { background: var(--bg-card-hover); }
.table-mu td {
  padding: 8px 6px;
  vertical-align: middle;
  color: var(--text-primary);
  font-size: 0.85rem;
}
.table-mu .ranking-player-link {
  color: var(--text-primary) !important;
  font-weight: 700;
  cursor: pointer;
}
.table-mu .ranking-player-link:hover {
  color: var(--gold) !important;
  text-decoration: none;
}
.table-mu .vip-badge {
  font-size: 9px;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 1px 5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.table-mu .pts-value {
  color: var(--gold);
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
}
.table-mu .ml-value {
  color: var(--blue-accent);
  font-size: 0.75rem;
  font-weight: 600;
}
.class-img {
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,67,0.2);
}
.class-img.online {
  border-color: var(--green-accent);
  box-shadow: 0 0 8px rgba(46,204,113,0.3);
}
.class-img-sm { height: 30px; }

/* =============================================
   KILL FEED (in center column)
   ============================================= */
.kill-feed-mu {
  overflow-y: auto;
  scroll-behavior: smooth;
  max-height: 50vh;
  padding: 6px;
}
.kill-card-mu {
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--crimson);
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(18,18,28,0.6);
  transition: all 0.2s;
  font-size: 0.85rem;
}
.kill-card-mu:hover { background: var(--bg-card-hover); border-left-color: var(--crimson-glow); }
.kill-card-mu .victim-name { color: var(--blue-accent); font-weight: 700; }
.kill-card-mu .killer-name { color: var(--crimson-glow); font-weight: 700; }
.kill-card-mu .kill-class-mu {
  display: inline-block;
  margin-left: 3px;
  padding: 0px 5px;
  font-size: 9px;
  background: rgba(74,158,255,0.1);
  border: 1px solid rgba(74,158,255,0.2);
  color: var(--blue-accent);
}
.kill-card-mu .kill-meta { font-size: 10px; color: var(--text-muted); }

/* =============================================
   NEWS CARDS
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  padding: 1.2rem;
}
.news-card-mu {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.4s ease;
}
.news-card-mu:hover {
  border-color: rgba(212,168,67,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(212,168,67,0.06);
}
.news-card-image { overflow: hidden; position: relative; }
.news-card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(10,10,15,0.3));
  pointer-events: none;
}
.news-card-image img,
.news-card-mu > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--border-subtle);
  transition: transform 0.6s ease;
}
.news-card-mu:hover .news-card-image img { transform: scale(1.05); }
/* Featured news card */
.news-featured { grid-column: 1 / -1; }
.news-featured .news-card-image img { height: 280px; }
.news-featured h4 { font-size: 1.25rem; }
.news-card-mu .news-body { padding: 12px; }
.news-card-mu .news-category {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.news-card-mu .news-category.eventos { background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.25); color: var(--green-accent); }
.news-card-mu .news-category.novedades { background: rgba(74,158,255,0.12); border: 1px solid rgba(74,158,255,0.25); color: var(--blue-accent); }
.news-card-mu .news-category.update { background: rgba(155,89,182,0.12); border: 1px solid rgba(155,89,182,0.25); color: var(--purple-accent); }
.news-card-mu .news-category.importante { background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.25); color: var(--crimson-glow); }
.news-card-mu h4 { font-family: 'Cinzel', serif; color: var(--text-primary); font-size: 0.95rem; margin-bottom: 4px; }
.news-card-mu .news-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.news-card-mu .news-excerpt { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.news-card-mu .news-footer { padding: 8px 12px; border-top: 1px solid var(--border-subtle); }

/* =============================================
   FORUM ITEMS
   ============================================= */
.forum-item-mu {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(212,168,67,0.06);
}
.forum-item-mu:last-child { border-bottom: none; }
.forum-item-mu .forum-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  object-fit: cover;
  flex-shrink: 0;
}
.forum-item-mu .forum-content { flex: 1; min-width: 0; }
.forum-item-mu .forum-title a { color: var(--text-primary); font-weight: 600; font-size: 0.85rem; }
.forum-item-mu .forum-title a:hover { color: var(--gold); }
.forum-item-mu .forum-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.forum-item-mu .forum-meta strong { color: var(--text-primary); }
.forum-item-mu .forum-reply-count {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  background: rgba(212,168,67,0.08);
  border: 1px solid var(--border-subtle);
  color: var(--gold);
  padding: 1px 6px;
  margin-left: 6px;
  white-space: nowrap;
}
.forum-item-mu .forum-time { font-size: 0.72rem; color: var(--gold-dark); }
.forum-item-mu .forum-last-reply {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.forum-item-mu .forum-last-reply img { width: 20px; height: 20px; border-radius: 50%; }

/* =============================================
   PLAYER CARDS
   ============================================= */
.player-card-mu {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.3s;
  margin-bottom: 8px;
}
.player-card-mu:hover { border-color: rgba(212,168,67,0.3); }
.player-card-mu .card-body-mu {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-card-mu .player-class-img { height: 50px; border: 2px solid rgba(212,168,67,0.24); border-radius: 12px; }
.player-card-mu .player-info { flex: 1; }
.player-card-mu .player-name { color: var(--text-primary); font-weight: 900; font-size: 1rem; margin: 0; line-height: 1.15; }
.player-card-mu .player-meta { color: var(--text-muted); font-size: 0.8rem; margin: 2px 0 0; }
.player-card-mu .player-meta .ml { color: var(--gold); font-size: 0.72rem; }
.player-card-mu .card-footer-mu {
  padding: 6px 10px;
  background: rgba(212,168,67,0.05);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.player-card-mu .card-footer-mu img { height: 16px; }

/* =============================================
   BOSS CARDS
   ============================================= */
.boss-card-mu {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.3s;
  margin-bottom: 8px;
}
.boss-card-mu:hover { border-color: rgba(192,57,43,0.3); }
.boss-card-mu .boss-body { padding: 10px; display: flex; align-items: center; gap: 10px; }
.boss-card-mu .boss-img { height: 70px; border: 2px solid rgba(212,168,67,0.15); border-radius: 8px; object-fit: cover; }
.boss-card-mu .boss-info { flex: 1; }
.boss-card-mu .boss-name-mu { font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--crimson-glow); font-weight: 700; margin-bottom: 3px; }
.boss-card-mu .boss-killer { color: var(--text-primary); font-weight: 700; font-size: 0.82rem; }
.boss-card-mu .boss-kills { display: inline-block; font-family: 'Orbitron', sans-serif; font-size: 0.65rem; background: rgba(192,57,43,0.15); border: 1px solid rgba(192,57,43,0.3); color: var(--crimson-glow); padding: 2px 7px; margin-top: 3px; }
.boss-card-mu .no-data { color: var(--text-muted); font-style: italic; font-size: 0.8rem; }

/* =============================================
   FEATURE CARDS
   ============================================= */
.feature-card-mu {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card-mu::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card-mu:hover { background: var(--bg-card-hover); border-color: rgba(212,168,67,0.3); }
.feature-card-mu:hover::after { opacity: 1; }
.feature-card-mu h4 { font-family: 'Cinzel', serif; font-size: 1rem; color: var(--gold); margin-bottom: 0.5rem; }
.feature-card-mu p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; }
.feature-card-mu .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(212,168,67,0.06);
  font-size: 0.85rem;
}
.feature-card-mu .info-row:last-child { border-bottom: none; }
.feature-card-mu .info-row strong { color: var(--text-primary); }
.feature-card-mu .info-row span { color: var(--text-muted); }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  margin: 0.5rem 0;
}
.section-header-sm {
  text-align: center;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}
.section-header-sm h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.section-header-sm p { color: var(--text-muted); font-size: 0.82rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-mu {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  background: rgba(212,168,67,0.08);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-mu:hover { background: rgba(212,168,67,0.2); border-color: var(--gold); color: var(--gold-light); text-decoration: none; }
.btn-mu-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-deep);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-mu-primary:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--bg-deep); }

.sidebar-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  margin: 0 0 1.2rem 0 !important;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: 1px solid var(--gold-light);
  color: var(--bg-deep);
  box-shadow: 0 0 16px rgba(240,208,120,0.35), inset 0 0 0 1px rgba(255,255,255,0.15);
  animation: sidebar-download-pulse 2.4s ease-in-out infinite;
}
.sidebar-download-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), #ffe28a);
  border-color: #ffe28a;
  color: var(--bg-deep);
  box-shadow: 0 0 22px rgba(240,208,120,0.6), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.sidebar-download-btn i { font-size: 0.95rem; line-height: 1; }
@keyframes sidebar-download-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(240,208,120,0.3), inset 0 0 0 1px rgba(255,255,255,0.15); }
  50%      { box-shadow: 0 0 22px rgba(240,208,120,0.55), inset 0 0 0 1px rgba(255,255,255,0.2); }
}

/* =============================================
   MODALS
   ============================================= */
.modal-content { background: var(--bg-card) !important; border: 1px solid var(--border-subtle) !important; border-radius: 0 !important; color: var(--text-primary) !important; }
.modal-header { background: rgba(212,168,67,0.06) !important; border-bottom: 1px solid var(--border-subtle) !important; }
.modal-header .modal-title { font-family: 'Cinzel', serif !important; color: var(--gold) !important; font-size: 1.1rem !important; }
.modal-header .close { color: var(--text-muted) !important; text-shadow: none !important; opacity: 1 !important; }
.modal-body { background: var(--bg-card) !important; color: var(--text-primary) !important; }
.modal-body p { color: var(--text-muted); }
.modal-body strong { color: var(--text-primary); }
.modal-body h4, .modal-body h5 { color: var(--gold); }
.modal-body a { color: var(--gold); }
.modal-body hr { border-color: var(--border-subtle); }
.modal-body .card { background: transparent; border: none; }
.modal-footer { background: rgba(212,168,67,0.04) !important; border-top: 1px solid var(--border-subtle) !important; }
.modal-footer .btn-default, .modal-footer .btn { background: rgba(212,168,67,0.08); border: 1px solid var(--border-subtle); color: var(--text-muted); }
.modal-footer .btn:hover { background: rgba(212,168,67,0.2); color: var(--gold); }
.modal-body .btn-rank { color: var(--text-muted) !important; border-bottom: 1px solid var(--border-subtle); display: block; padding: 10px; transition: all 0.2s; }
.modal-body .btn-rank:hover { color: var(--gold) !important; background: var(--bg-card-hover) !important; text-decoration: none; }
.modal-body .btn-rank img { float: right; }

/* =============================================
   FOOTER
   ============================================= */
.footer-mu {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  border-top: 1px solid rgba(212,168,67,0.1);
  background: var(--bg-surface);
}
.footer-mu .brand { font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--gold); margin-bottom: 0.4rem; }
.footer-mu p { color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.05em; }

/* =============================================
   WHATSAPP
   ============================================= */
.wpp-float { position: fixed; bottom: 20px; right: 20px; z-index: 9998; }
.wpp-float img { height: 60px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); transition: transform 0.2s; }
.wpp-float img:hover { transform: scale(1.1); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

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

/* ---------- Large / high-res screens (1920px+) ---------- */
@media (min-width: 1920px) {
  html { font-size: 18px; }
  body { font-size: 18px !important; }
  .main-layout {
    max-width: 1800px;
    gap: 1.6rem;
    padding: 2rem;
    grid-template-columns: 260px 1fr 320px;
  }
  .navbar-mu .nav-links { max-width: 1800px; padding: 0 2rem; }
  .navbar-mu .nav-links li a,
  .navbar-mu .nav-links li > span {
    padding: 18px 16px;
    font-size: 0.95rem;
  }
  .hero-mu { min-height: 50vh; padding: 3rem 3rem 4rem; }
  .hero-badge { font-size: 0.82rem; letter-spacing: 0.45em; padding: 0.5em 2em; }
  .hero-stat .num { font-size: 2.4rem; }
  .hero-stat .label-stat { font-size: 0.78rem; }
  .hero-stats { gap: 3rem; }
  .sidebar-panel-header { font-size: 1.05rem; padding: 12px 16px; }
  .sidebar-panel-body { padding: 14px 16px; }
  .sidebar-panel-footer { font-size: 0.88rem; }
  .info-row-sm { font-size: 0.95rem; padding: 7px 0; }
  .info-row-sm strong { font-size: 0.9rem; }
  .social-link { font-size: 0.95rem; }
  .panel-mu .panel-heading-mu { padding: 12px 20px; }
  .panel-mu .panel-heading-mu .panel-title-mu { font-size: 0.85rem; }
  .panel-view-all { font-size: 0.88rem; }
  .panel-mu .panel-body-mu { padding: 18px; }
  .news-grid { gap: 1.4rem; padding: 1.4rem; }
  .news-card-image img, .news-card-mu > img { height: 240px; }
  .news-featured .news-card-image img { height: 360px; }
  .news-card-mu h4 { font-size: 1.15rem; }
  .news-card-mu .news-excerpt { font-size: 0.95rem; }
  .news-card-mu .news-date { font-size: 0.88rem; }
  .news-card-mu .news-category { font-size: 0.72rem; }
  .forum-item-mu .forum-title a { font-size: 1rem; }
  .forum-item-mu .forum-meta { font-size: 0.88rem; }
  .forum-item-mu .forum-avatar { width: 44px; height: 44px; }
  .forum-item-mu .forum-reply-count { font-size: 0.75rem; }
  .forum-item-mu .forum-time { font-size: 0.82rem; }
  .table-mu thead th { font-size: 0.78rem; padding: 10px 8px; }
  .table-mu td { font-size: 0.95rem; padding: 10px 8px; }
  .table-mu .ml-value { font-size: 0.82rem; }
  .table-mu .pts-value { font-size: 0.88rem; }
  .class-img { height: 50px; }
  .class-img-sm { height: 36px; }
  .player-card-mu .player-name { font-size: 1.15rem; }
  .player-card-mu .player-meta { font-size: 0.92rem; }
  .player-card-mu .player-class-img { height: 60px; }
  .player-card-mu .card-footer-mu { font-size: 0.75rem; }
  .boss-card-mu .boss-img { height: 85px; }
  .boss-card-mu .boss-name-mu { font-size: 1rem; }
  .boss-card-mu .boss-killer { font-size: 0.95rem; }
  .boss-card-mu .boss-kills { font-size: 0.75rem; }
  .kill-ticker-content { font-size: 0.95rem; }
  .kill-ticker::before { font-size: 0.75rem; padding: 10px 24px 10px 20px; }
  .kill-ticker-content .tick-item { margin-right: 4rem; }
  .login-panel-header { font-size: 1rem; }
  .login-panel .form-input { font-size: 1rem; padding: 11px 12px; }
  .login-btn { padding: 11px; font-size: 0.88rem; }
  .login-links { font-size: 0.88rem; }
  .online-badge .count { font-size: 1.4rem; }
  .online-badge .ob-label { font-size: 0.85rem; }
  .social-link { font-size: 0.95rem; padding: 8px 0; }
  .section-header-sm h3 { font-size: 1.4rem; }
  .btn-mu { font-size: 0.82rem; padding: 10px 22px; }
  .footer-mu { padding: 2.5rem 3rem 2rem; }
  .footer-mu .brand { font-size: 1.5rem; }
  .footer-mu p { font-size: 0.85rem; }
  .modal-dialog { max-width: 600px; }
  .modal-header .modal-title { font-size: 1.2rem !important; }
  .modal-body { font-size: 1rem; }
  .modal-body p { font-size: 0.95rem; }
  /* Bootstrap inner pages */
  .container { max-width: 1400px; }
  .panel-heading { padding: 14px 20px !important; }
  .panel-heading h3, .panel-heading h4 { font-size: 1.2rem !important; }
  .panel-body { padding: 20px !important; font-size: 1rem; }
  .panel-footer p { font-size: 0.88rem !important; }
  .table > thead > tr > th { font-size: 0.78rem !important; padding: 12px 10px !important; }
  .table > tbody > tr > td { padding: 10px !important; font-size: 0.95rem; }
}

/* ---------- Ultra-wide / 2K+ screens (2560px+) ---------- */
@media (min-width: 2560px) {
  html { font-size: 21px; }
  body { font-size: 21px !important; }
  .main-layout {
    max-width: 2200px;
    gap: 2rem;
    padding: 2.5rem 3rem;
    grid-template-columns: 320px 1fr 380px;
  }
  .navbar-mu { min-height: 68px; }
  .navbar-mu .nav-links { max-width: 2200px; padding: 0 3rem; }
  .navbar-mu .nav-links li a,
  .navbar-mu .nav-links li > span {
    padding: 22px 20px;
    font-size: 1rem;
  }
  .hero-mu { min-height: 48vh; padding: 3rem 4rem 5rem; }
  .hero-badge { font-size: 0.88rem; padding: 0.6em 2.5em; }
  .hero-stat .num { font-size: 2.8rem; }
  .hero-stat .label-stat { font-size: 0.82rem; }
  .hero-stats { gap: 4rem; margin-top: 3rem; }
  .hero-ornament { width: 300px; }
  .sidebar-panel-header { font-size: 1.1rem; padding: 14px 18px; }
  .sidebar-panel-body { padding: 16px 18px; }
  .sidebar-panel-footer { font-size: 0.92rem; padding: 10px 18px; }
  .info-row-sm { font-size: 1.05rem; padding: 8px 0; }
  .info-row-sm strong { font-size: 0.95rem; }
  .social-link { font-size: 1rem; padding: 8px 0; }
  .panel-mu .panel-heading-mu { padding: 14px 24px; }
  .panel-mu .panel-heading-mu .panel-title-mu { font-size: 0.92rem; }
  .panel-view-all { font-size: 0.92rem; }
  .panel-mu .panel-body-mu { padding: 22px; }
  .news-grid { gap: 1.8rem; padding: 1.8rem; }
  .news-card-image img, .news-card-mu > img { height: 280px; }
  .news-featured .news-card-image img { height: 420px; }
  .news-card-mu h4 { font-size: 1.3rem; }
  .news-card-mu .news-body { padding: 18px; }
  .news-card-mu .news-excerpt { font-size: 1.05rem; }
  .news-card-mu .news-date { font-size: 0.92rem; }
  .news-card-mu .news-category { font-size: 0.78rem; }
  .forum-item-mu { padding: 14px 0; gap: 14px; }
  .forum-item-mu .forum-avatar { width: 50px; height: 50px; }
  .forum-item-mu .forum-title a { font-size: 1.1rem; }
  .forum-item-mu .forum-meta { font-size: 0.92rem; }
  .forum-item-mu .forum-reply-count { font-size: 0.78rem; }
  .forum-item-mu .forum-time { font-size: 0.85rem; }
  .table-mu thead th { font-size: 0.82rem; padding: 12px 10px; }
  .table-mu td { font-size: 1.05rem; padding: 12px 10px; }
  .table-mu .ml-value { font-size: 0.88rem; }
  .table-mu .pts-value { font-size: 0.92rem; }
  .class-img { height: 56px; }
  .class-img-sm { height: 40px; }
  .player-card-mu .player-name { font-size: 1.3rem; }
  .player-card-mu .player-meta { font-size: 1rem; }
  .player-card-mu .player-class-img { height: 68px; }
  .player-card-mu .card-footer-mu { font-size: 0.78rem; padding: 8px 12px; }
  .boss-card-mu .boss-body { padding: 14px; gap: 14px; }
  .boss-card-mu .boss-img { height: 95px; }
  .boss-card-mu .boss-name-mu { font-size: 1.1rem; }
  .boss-card-mu .boss-killer { font-size: 1rem; }
  .boss-card-mu .boss-kills { font-size: 0.78rem; }
  .kill-ticker-content { font-size: 1.05rem; }
  .kill-ticker::before { font-size: 0.82rem; padding: 10px 28px 10px 22px; }
  .kill-ticker-content .tick-item { margin-right: 4.5rem; }
  .login-panel-header { font-size: 1.1rem; }
  .login-panel .form-input { font-size: 1.1rem; padding: 13px 14px; margin-bottom: 12px; }
  .login-btn { padding: 13px; font-size: 0.95rem; }
  .login-links { font-size: 0.92rem; margin-top: 14px; }
  .online-badge { padding: 12px; }
  .online-badge .count { font-size: 1.5rem; }
  .online-badge .ob-label { font-size: 0.92rem; }
  .section-header-sm h3 { font-size: 1.6rem; }
  .section-header-sm p { font-size: 0.95rem; }
  .btn-mu { font-size: 0.88rem; padding: 11px 24px; }
  .footer-mu { padding: 3rem 3rem 2rem; }
  .footer-mu .brand { font-size: 1.6rem; }
  .footer-mu p { font-size: 0.92rem; }
  .modal-header .modal-title { font-size: 1.3rem !important; }
  .modal-body { font-size: 1.05rem; }
  .modal-body p { font-size: 1rem; }
  /* Bootstrap inner pages */
  .container { max-width: 1800px; }
  .panel-heading h3, .panel-heading h4 { font-size: 1.3rem !important; }
  .panel-body { padding: 26px !important; font-size: 1.05rem; }
  .panel-footer p { font-size: 0.92rem !important; }
  .wpp-float img { height: 74px; }
}

/* ---------- Large tablets / small desktops ---------- */
@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: var(--sidebar-width) 1fr;
  }
  .sidebar-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
}

/* ---------- Tablets & small laptops ---------- */
@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding: 1rem 0.75rem;
  }
  .sidebar-left {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    order: 2;
  }
  .main-content { order: 1; }
  .sidebar-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    order: 3;
  }
  .news-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Inner pages — reduce excessive top margins */
  .container { padding-left: 12px; padding-right: 12px; }
  .container-fluid + .container,
  .container > .row[style*="margin-top: 150px"],
  .container > .row[style*="margin-top: 120px"] {
    margin-top: 80px !important;
  }
}

/* ---------- Mobile (phones landscape & portrait) ---------- */
@media (max-width: 768px) {
  /* Navbar */
  .navbar-mu { padding: 0 12px; justify-content: flex-end; }
  .navbar-mu .menu-toggle { display: block; }
  .navbar-mu .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
    z-index: 9999;
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar-mu .nav-links.open { display: flex; }
  .navbar-mu .nav-links li a,
  .navbar-mu .nav-links li > span {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(212,168,67,0.06);
  }
  .navbar-mu .nav-links li:last-child a { border-bottom: none; }
  .navbar-mu .nav-links .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(18,18,28,0.6) !important;
    padding: 0;
  }
  .navbar-mu .nav-links .dropdown-menu li a {
    padding: 12px 32px !important;
    font-size: 0.88rem !important;
  }

  /* Hero */
  .hero-mu {
    min-height: 35vh;
    padding: 2rem 1.2rem 2rem;
  }
  .hero-badge {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    padding: 0.35em 1.2em;
  }
  .hero-mu h1 { font-size: clamp(1.6rem, 8vw, 2.8rem); }
  .hero-mu h1 span { font-size: 0.4em; letter-spacing: 0.15em; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat .num { font-size: 1.3rem; }
  .hero-stat .label-stat { font-size: 0.6rem; }
  .hero-ornament { width: 140px; margin-top: 1.5rem; }

  /* Kill ticker */
  .kill-ticker-content { font-size: 0.78rem; padding-left: 100px; }
  .kill-ticker::before { font-size: 0.58rem; padding: 8px 12px 8px 10px; }

  /* Main layout — full single column */
  .main-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem 0.6rem;
  }
  .sidebar-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    order: 2;
  }
  .main-content { order: 1; }
  .sidebar-right {
    grid-template-columns: 1fr;
    order: 3;
  }

  /* News */
  .news-grid { grid-template-columns: 1fr; gap: 0.8rem; padding: 0.8rem; }
  .news-card-image img,
  .news-card-mu > img { height: 160px; }
  .news-featured .news-card-image img { height: 200px; }
  .news-card-mu .news-body { padding: 10px; }
  .news-card-mu h4 { font-size: 0.92rem; }
  .news-card-mu .news-excerpt { font-size: 0.82rem; }

  /* Panels */
  .panel-mu .panel-heading-mu { padding: 8px 12px; }
  .panel-mu .panel-body-mu { padding: 10px; }
  .panel-mu .panel-heading-mu .panel-title-mu { font-size: 0.7rem; }
  .panel-view-all { font-size: 0.75rem; }

  /* Sidebar panels */
  .sidebar-panel-header { font-size: 0.78rem; padding: 8px 10px; }
  .sidebar-panel-body { padding: 10px; }
  .sidebar-panel-footer { padding: 6px 10px; font-size: 0.75rem; }
  .info-row-sm { font-size: 0.8rem; padding: 4px 0; }

  /* Tables — horizontal scroll */
  .table-mu { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-mu thead th { font-size: 0.62rem; padding: 6px 4px; white-space: nowrap; }
  .table-mu td { font-size: 0.82rem; padding: 6px 4px; }
  .class-img-sm { height: 26px; }

  /* Bootstrap tables */
  .table-responsive { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .table > thead > tr > th { font-size: 0.68rem !important; padding: 8px 6px !important; white-space: nowrap; }
  .table > tbody > tr > td { padding: 8px 6px !important; font-size: 0.85rem; }

  /* Player cards */
  .player-card-mu .player-class-img { height: 42px; }
  .player-card-mu .player-name { font-size: 0.92rem; }
  .player-card-mu .card-footer-mu { font-size: 0.6rem; }

  /* Boss cards */
  .boss-card-mu .boss-img { height: 55px; }
  .boss-card-mu .boss-name-mu { font-size: 0.82rem; }

  /* Kill feed */
  .kill-feed-mu { max-height: 40vh; }
  .kill-card-mu { padding: 6px 10px; font-size: 0.82rem; }

  /* Forum items */
  .forum-item-mu { gap: 8px; padding: 8px 0; }
  .forum-item-mu .forum-avatar { width: 32px; height: 32px; }
  .forum-item-mu .forum-title a { font-size: 0.82rem; }

  /* Modals */
  .modal-dialog { margin: 10px !important; max-width: calc(100vw - 20px) !important; }
  .modal-body { padding: 14px !important; }
  .modal-body h4 { font-size: 1rem; }
  .modal-body h5 { font-size: 0.9rem; }
  .modal-header .modal-title { font-size: 1rem !important; }

  /* Footer */
  .footer-mu { padding: 1.5rem 1rem 1rem; }
  .footer-mu .brand { font-size: 1rem; }
  .footer-mu p { font-size: 0.72rem; }

  /* WhatsApp float */
  .wpp-float { bottom: 14px; right: 14px; }
  .wpp-float img { height: 50px; }

  /* Inner pages — Bootstrap grid fixes */
  .container { padding-left: 12px; padding-right: 12px; }
  .row { margin-left: -8px; margin-right: -8px; }
  .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }

  /* Inner pages — reduce top margins from inline styles */
  .container > .row[style*="margin-top"] { margin-top: 70px !important; }
  .container-fluid + .container { margin-top: 16px !important; }

  /* Bootstrap panels on inner pages */
  .panel-body { padding: 12px !important; }
  .panel-heading { padding: 10px 12px !important; }
  .panel-heading h3 { font-size: 0.95rem !important; }

  /* Feature cards */
  .feature-card-mu { padding: 1rem; }
  .feature-card-mu h4 { font-size: 0.92rem; }
  .feature-card-mu p { font-size: 0.8rem; }
  .feature-card-mu .info-row { font-size: 0.82rem; }

  /* Quick stats */
  .quick-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .quick-stat { padding: 8px 6px; }
  .quick-stat .qs-num { font-size: 0.95rem; }
  .quick-stat .qs-label { font-size: 0.55rem; }

  /* Server stat rows */
  .server-stat-row { font-size: 0.82rem; padding: 6px 0; }

  /* Login panel */
  .login-panel .form-input { font-size: 0.9rem; padding: 10px; }
  .login-btn { padding: 10px; font-size: 0.78rem; }

  /* Online badge */
  .online-badge { padding: 8px; }
  .online-badge .count { font-size: 1rem; }

  /* Section headers */
  .section-header-sm h3 { font-size: 1rem; }

  /* Buttons */
  .btn-mu { padding: 8px 14px; font-size: 0.72rem; }
  .btn-mu-primary { padding: 10px 16px; }
}

/* ---------- Additional mobile fixes (768px) ---------- */
@media (max-width: 768px) {
  /* Forum page fixes */
  .container-fluid > .col-md-9,
  .container-fluid > .col-md-3 {
    width: 100% !important;
    float: none !important;
    padding-left: 8px;
    padding-right: 8px;
  }
  /* Forum category row — stack columns */
  .panel-body .row > .col-md-8,
  .panel-body .row > .col-md-1,
  .panel-body .row > .col-md-3 {
    width: 100% !important;
    float: none !important;
  }
  .panel-body .row > .col-md-1 {
    display: inline-block;
    width: auto !important;
    margin-top: 6px;
  }
  /* Forum header image margin fix */
  p[style*="margin-top: -80px"] {
    margin-top: -40px !important;
    font-size: 1.2rem !important;
  }

  /* Inner page hero sections — reduce height */
  .container-fluid[style*="background-image"] .row[style*="margin-top: 150px"] {
    margin-top: 80px !important;
  }
  .container-fluid[style*="background-image"] .row[style*="margin-top: 300px"] {
    margin-top: 80px !important;
  }
  /* Scale down hero icons */
  .container-fluid[style*="background-image"] img[style*="height: 100px"] {
    height: 60px !important;
  }
}

/* ---------- Small phones (portrait) ---------- */
@media (max-width: 480px) {
  /* Sidebar panels go single column */
  .sidebar-left {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  /* Hero tighter */
  .hero-mu {
    min-height: auto;
    padding: 2.5rem 0.8rem 1.5rem;
  }
  .hero-mu h1 { font-size: clamp(1.4rem, 9vw, 2.2rem); }
  /* Stats en grid 2x2 en pantallas pequeñas */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.2rem;
    width: 100%;
    max-width: 280px;
    margin: 0.8rem auto 0;
  }
  .hero-stat { text-align: center; }
  .hero-stat .num { font-size: 1.1rem; }
  .hero-stat .label-stat { font-size: 0.55rem; letter-spacing: 0.12em; }
  .hero-ornament { width: 100px; margin-top: 1rem; }

  /* Kill ticker */
  .kill-ticker::before { font-size: 0.52rem; padding: 6px 8px; }
  .kill-ticker-content { font-size: 0.72rem; padding-left: 80px; }

  /* Layout tighter padding */
  .main-layout { padding: 0.6rem 0.4rem; gap: 0.6rem; }

  /* News cards */
  .news-grid { padding: 0.6rem; gap: 0.6rem; }
  .news-card-image img,
  .news-card-mu > img { height: 140px; }
  .news-featured .news-card-image img { height: 170px; }

  /* Tables */
  .table-mu td { font-size: 0.78rem; padding: 5px 3px; }
  .table-mu thead th { font-size: 0.58rem; padding: 5px 3px; }
  .class-img { height: 32px; }
  .class-img-sm { height: 22px; }

  /* Player cards */
  .player-card-mu .card-body-mu { padding: 8px; gap: 8px; }
  .player-card-mu .player-class-img { height: 36px; }
  .player-card-mu .player-name { font-size: 0.85rem; }
  .player-card-mu .player-meta { font-size: 0.75rem; }

  /* Boss cards */
  .boss-card-mu .boss-body { padding: 8px; gap: 8px; }
  .boss-card-mu .boss-img { height: 48px; }
  .boss-card-mu .boss-name-mu { font-size: 0.78rem; }

  /* Forum items */
  .forum-item-mu .forum-avatar { width: 28px; height: 28px; }
  .forum-item-mu .forum-title a { font-size: 0.78rem; }
  .forum-item-mu .forum-meta { font-size: 0.7rem; }
  .forum-item-mu .forum-reply-count { font-size: 0.58rem; padding: 1px 4px; }

  /* Modals fullscreen-ish */
  .modal-dialog { margin: 5px !important; }
  .modal-body { padding: 10px !important; font-size: 0.88rem; }
  .modal-body p { font-size: 0.85rem; }
  .modal-body .btn-rank { padding: 10px 8px; font-size: 0.85rem; }

  /* Inner pages — forms need to stack */
  .form-horizontal .control-label { text-align: left !important; padding-bottom: 4px; }
  .form-horizontal .col-md-6,
  .form-horizontal .col-md-4,
  .form-horizontal .col-md-8 {
    width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .col-md-offset-2,
  .col-md-offset-4 { margin-left: 0 !important; }

  /* Comments section fix */
  .container .container { width: 100% !important; padding: 8px !important; }

  /* Swiper adjustments */
  .swiper-slider .swiper-pagination { padding-left: 12px; font-size: 0.78rem; }
}

/* =============================================
   UTILITY
   ============================================= */
.text-gold { color: var(--gold) !important; }
.text-muted-mu { color: var(--text-muted) !important; }
.text-crimson { color: var(--crimson-glow) !important; }
.text-blue { color: var(--blue-accent) !important; }
.text-green { color: var(--green-accent) !important; }
.bg-card { background: var(--bg-card) !important; }
.mb-0 { margin-bottom: 0 !important; }

/* =============================================
   READABILITY & TOUCH TARGETS
   ============================================= */
/* Ensure images never overflow their containers */
img { max-width: 100%; height: auto; }
/* Except for intentionally sized inline images */
.class-img, .class-img-sm, .forum-avatar, .boss-img,
.player-class-img, .user-panel img,
img[src*="guildmark"], img[src*="flags/"],
img[src*="primero"], img[src*="master.png"],
img[src*="asistente.png"], img[src*="bm.png"],
img[src*="img-rank/"] { max-width: none; }

/* Minimum touch target size for interactive elements */
.btn-mu, .login-btn, .btn-rank,
.navbar-mu .nav-links li a,
.social-link, .info-toggle .list-group-item {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* Fix for buttons that were inline-block */
.btn-mu, .login-btn { display: flex; justify-content: center; }
.btn-mu-primary[style*="width:100%"],
.btn-mu-primary[style*="width: 100%"] { width: 100%; }

/* Improve line-height for body text readability */
.news-excerpt, .panel-body p, .panel-body-mu p,
.modal-body p, .feature-card-mu p { line-height: 1.65; }

/* Ensure inner page hero images scale on all screens */
.container-fluid[style*="background-image"] {
  background-size: cover !important;
  background-position: center !important;
}
.container-fluid[style*="background-image"] img[style*="height: 100px"] {
  max-height: 80px;
}

/* Ensure long text doesn't overflow */
.table-mu td, .table td,
.player-name, .boss-killer, .forum-title a {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* =============================================
   BOOTSTRAP OVERRIDES — Dark Gold Theme
   Forces all legacy panels, tables, alerts,
   buttons, and forms to match the MU aesthetic.
   ============================================= */

/* Panels */
.panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
  position: relative;
  overflow: hidden;
}
.panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
  pointer-events: none;
}
.panel-heading {
  background: rgba(212,168,67,0.08) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
}
.panel-heading h3,
.panel-heading h4 {
  font-family: 'Cinzel', serif !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  margin: 0 !important;
}
.panel-heading .label {
  background: rgba(212,168,67,0.15) !important;
  color: var(--gold-light) !important;
  border: 1px solid var(--border-subtle);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem !important;
  letter-spacing: 0.08em;
  border-radius: 0 !important;
}
.panel-body {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  padding: 16px !important;
}
.panel-body p,
.panel-body small,
.panel-body span {
  color: var(--text-muted);
}
.panel-body a {
  color: var(--gold);
}
.panel-body strong {
  color: var(--text-primary);
}
.panel-footer {
  background: rgba(212,168,67,0.04) !important;
  border-top: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  color: var(--text-muted) !important;
}
.panel-footer p {
  color: var(--text-muted) !important;
}
.panel-default {
  border-color: var(--border-subtle) !important;
}
.panel-default > .panel-heading {
  background: rgba(212,168,67,0.06) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-subtle) !important;
}

/* Tables */
.table {
  color: var(--text-primary) !important;
}
.table > thead > tr > th,
.table > thead th {
  background: rgba(212,168,67,0.08) !important;
  color: var(--gold) !important;
  font-family: 'Orbitron', sans-serif !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  padding: 10px 8px !important;
}
.table > tbody > tr {
  border-bottom: 1px solid rgba(212,168,67,0.06);
  transition: background 0.2s;
}
.table > tbody > tr:hover {
  background: var(--bg-card-hover) !important;
}
.table > tbody > tr > td {
  border-top: 1px solid rgba(212,168,67,0.06) !important;
  color: var(--text-primary);
  vertical-align: middle !important;
}
.table-responsive {
  border: none !important;
}

/* Alerts */
.alert-info {
  background: rgba(74,158,255,0.08) !important;
  border: 1px solid rgba(74,158,255,0.2) !important;
  color: var(--blue-accent) !important;
  border-radius: 0 !important;
}
.alert-success {
  background: rgba(46,204,113,0.08) !important;
  border: 1px solid rgba(46,204,113,0.2) !important;
  color: var(--green-accent) !important;
  border-radius: 0 !important;
}

/* List Groups */
.list-group-item {
  background: var(--bg-card) !important;
  border: 1px solid rgba(212,168,67,0.08) !important;
  color: var(--text-primary) !important;
  transition: all 0.2s;
}
.list-group-item:hover,
.list-group-item:focus {
  background: var(--bg-card-hover) !important;
  border-color: rgba(212,168,67,0.2) !important;
}
.list-group-item p,
.list-group-item span {
  color: var(--gold) !important;
}

/* Buttons */
.btn-danger {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-glow)) !important;
  border: 1px solid var(--crimson) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-danger:hover {
  background: linear-gradient(135deg, var(--crimson-glow), #ff6b5a) !important;
  box-shadow: 0 0 20px rgba(192,57,43,0.3);
}
.btn-default {
  background: rgba(212,168,67,0.08) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-muted) !important;
  border-radius: 0 !important;
}
.btn-default:hover {
  background: rgba(212,168,67,0.2) !important;
  color: var(--gold) !important;
}

/* Labels */
.label-success {
  background: rgba(46,204,113,0.15) !important;
  color: var(--green-accent) !important;
  border: 1px solid rgba(46,204,113,0.3);
  border-radius: 0 !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem !important;
  padding: 3px 8px !important;
}
.label-info {
  background: rgba(74,158,255,0.12) !important;
  color: var(--blue-accent) !important;
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 0 !important;
}
.label-danger {
  background: rgba(192,57,43,0.15) !important;
  color: var(--crimson-glow) !important;
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 0 !important;
}
.badge {
  background: var(--crimson) !important;
  border-radius: 0 !important;
}

/* Forms */
.form-control {
  background: #151520 !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  border-radius: 0 !important;
  font-family: 'Rajdhani', sans-serif;
}
.form-control:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(212,168,67,0.15) !important;
}
.form-control::placeholder { color: var(--text-muted) !important; }

/* Hero banners on inner pages */
.container-fluid[style*="background-image"] {
  background-color: var(--bg-deep) !important;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.container-fluid[style*="background-image"]::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(transparent, var(--bg-deep));
  pointer-events: none;
}
.container-fluid[style*="background-image"] h3 {
  position: relative;
  z-index: 1;
  font-family: 'Cinzel', serif !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

/* Inner page containers */
.container {
  color: var(--text-primary);
  max-width: 100%;
  overflow-x: hidden;
}

/* Inner page hero banners — responsive heights */
.container-fluid[style*="background-image"] .row[style*="margin-top"] {
  padding-bottom: 2rem;
}
.container-fluid[style*="background-image"] p[style*="font-size: 40px"] {
  font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
}

/* Info toggle sections */
.info-toggle .btn-news span {
  color: var(--gold) !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

/* Server stats info rows */
.server-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212,168,67,0.06);
  font-size: 0.88rem;
}
.server-stat-row:last-child { border-bottom: none; }
.server-stat-row strong {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  font-family: 'Rajdhani', sans-serif;
}
.server-stat-row span {
  color: var(--text-muted) !important;
  font-weight: 500;
}
.server-stat-row .stat-highlight {
  color: var(--text-primary) !important;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
}

/* Quick stats grid for info page */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.quick-stat {
  background: rgba(212,168,67,0.04);
  border: 1px solid rgba(212,168,67,0.1);
  padding: 10px 8px;
  text-align: center;
}
.quick-stat .qs-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
}
.quick-stat .qs-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* =============================================
   FORUM TOPIC PAGE
   ============================================= */

/* Banner */
.forum-banner {
  position: relative;
  overflow: hidden;
}
.forum-banner img {
  width: 100%;
  display: block;
  max-height: 200px;
  object-fit: cover;
}
.forum-banner-title {
  position: absolute;
  bottom: 20px;
  left: 30px;
  font-family: 'Cinzel', serif;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
  letter-spacing: 0.03em;
}

/* Layout */
.forum-topic-layout {
  display: flex;
  gap: 20px;
  padding: 24px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 991px) {
  .forum-topic-layout { flex-direction: column; }
}

/* Author sidebar */
.topic-author-card {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  align-self: flex-start;
  position: sticky;
  top: 72px;
}
@media (max-width: 991px) {
  .topic-author-card { width: 100%; position: static; }
}
.topic-author-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
}
.topic-author-body {
  padding: 20px 16px;
  text-align: center;
}
.topic-author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--border-subtle);
  object-fit: cover;
  margin-bottom: 10px;
  transition: border-color 0.3s;
}
.topic-author-card:hover .topic-author-avatar {
  border-color: var(--gold-dark);
}
.topic-author-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.topic-author-role {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 8px;
}
.topic-author-role.role-admin {
  color: var(--crimson-glow);
  background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.25);
}
.topic-author-role.role-gm {
  color: var(--blue-accent);
  background: rgba(74,158,255,0.1);
  border: 1px solid rgba(74,158,255,0.25);
}
.topic-author-role.role-vip {
  color: var(--gold-light);
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.25);
}
.topic-author-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}
.topic-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 2px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}
.topic-stat-badge.posts {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.08);
}
.topic-stat-badge.thanks {
  background: rgba(46,204,113,0.1);
  color: var(--green-accent);
  border: 1px solid rgba(46,204,113,0.2);
}
.topic-author-country {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 6px 0;
}
.topic-author-country img {
  vertical-align: middle;
  margin-left: 4px;
}

/* Rank badge */
.topic-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,168,67,0.06);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--text-primary);
  font-weight: 600;
  margin: 10px 0 4px;
}
.topic-rank-badge .rank-level {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  color: var(--text-muted);
}
.topic-rank-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.04);
  margin-top: 4px;
  overflow: hidden;
}
.topic-rank-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 0.5s ease;
}

/* Character info */
.topic-author-char {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-primary);
}
.topic-author-char img {
  height: 32px;
  border-radius: 50%;
}
.topic-author-char img.online {
  border: 2px solid var(--green-accent);
}
.topic-author-char img.offline {
  border: 2px solid rgba(162,162,162,0.45);
}
.topic-author-char .char-name {
  font-weight: 600;
}

/* Main post */
.topic-main {
  flex: 1;
  min-width: 0;
}
.topic-post {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}
.topic-post::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
}
.topic-post-header {
  background: rgba(212,168,67,0.06);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-post-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}
.topic-post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
}
.topic-post-actions a,
.topic-post-actions button {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.topic-post-actions a:hover,
.topic-post-actions button:hover {
  color: var(--gold);
}
.topic-post-actions .action-delete {
  color: rgba(231,76,60,0.6);
}
.topic-post-actions .action-delete:hover {
  color: var(--crimson-glow);
}
.topic-post-body {
  padding: 20px 18px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.topic-post-body img {
  max-width: 100%;
  height: auto;
}

/* Likes footer */
.topic-post-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 14px 18px;
  background: rgba(212,168,67,0.03);
}
.topic-likes-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topic-likes-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 2px;
  font-family: 'Rajdhani', sans-serif;
}
.topic-likes-count i {
  font-size: 0.9rem;
}
.topic-likes-users {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.topic-no-likes {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}
.topic-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,168,67,0.08);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  padding: 6px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 10px;
}
.topic-like-btn:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-deep);
  border-color: var(--gold);
}

/* Replies */
.topic-replies-section {
  margin-top: 4px;
}
.topic-reply {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.topic-reply:hover {
  border-color: rgba(212,168,67,0.25);
}
.topic-reply-header {
  background: rgba(212,168,67,0.04);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
}
.topic-reply-body {
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.topic-reply-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  object-fit: cover;
  flex-shrink: 0;
}
.topic-reply-content {
  flex: 1;
  min-width: 0;
}
.topic-reply-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.topic-reply-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.topic-reply-text img {
  max-width: 100%;
  height: auto;
}

/* Reply form */
.topic-reply-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 18px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.topic-reply-form::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
}
.topic-reply-form-title {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.topic-reply-form .form-control {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  padding: 10px 12px;
  min-height: 100px;
  transition: border-color 0.25s;
}
.topic-reply-form .form-control:focus {
  border-color: var(--gold-dark);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212,168,67,0.1);
}
.topic-reply-submit {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: 1px solid var(--gold);
  color: var(--bg-deep);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 24px;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.25s;
}
.topic-reply-submit:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 16px rgba(212,168,67,0.25);
}

/* Character panel inside topic */
.topic-char-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  max-width: 280px;
  margin: 20px auto 0;
  overflow: hidden;
}
.topic-char-panel-header {
  background: rgba(212,168,67,0.08);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 14px;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.05em;
}
.topic-char-panel-body {
  padding: 14px;
  text-align: center;
}
.topic-char-panel-body img {
  height: 55px;
  border-radius: 50%;
  margin-bottom: 8px;
}
.topic-char-panel-body img.online { border: 2px solid var(--green-accent); }
.topic-char-panel-body img.offline { border: 2px solid rgba(162,162,162,0.45); }
.topic-char-panel-body p {
  margin: 2px 0;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.topic-char-panel-body p strong {
  color: var(--gold);
}
