@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Roboto:wght@400;500&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=gambarino@400&display=swap");

/* ============================
   UserCP (Modern premium skin)
   ============================ */
.usercp-title {
  font-family: "Gambarino", serif;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.usercp-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.usercp-back:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 163, 79, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.usercp-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.usercp-section-title {
  font-family: "Gambarino", serif;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.usercp-table.table {
  --bs-table-bg: transparent;
  --bs-table-color: rgba(255, 255, 255, 0.92);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(232, 163, 79, 0.08);
}

.usercp-input.form-control,
.usercp-input.form-select {
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(232, 163, 79, 0.25) !important;
  color: #fff !important;
}
.usercp-input.form-control:focus,
.usercp-input.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(232, 163, 79, 0.15) !important;
  border-color: rgba(232, 163, 79, 0.45) !important;
}

.rankings-class-image {
    border-radius: 50%;
    width: 50%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #08040c;
  font-family: roboto, sans-serif;
  background: url(../img/modulebg.png) no-repeat!important;
  color: white;
  background-size: cover;
}
body.page-news {
  background: url(../img/newsbg.png) no-repeat fixed center !important;
  background-size: cover !important;
}

body.page-news .internal-content-wrapper {
  background: transparent !important;
}
body.home-page {
  background: #000 !important; /* Prevent flash of global bg image on home load */
  overflow: hidden !important;
}

::-webkit-scrollbar {
  width: 10px;
  background: linear-gradient(to bottom, rgb(35 39 89), transparent);
  border-radius: 0 8px 8px 0;
}

::-webkit-scrollbar-thumb {
  background: rgb(42, 48, 129);
  border-radius: 0 8px 8px 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #00c3ff;
}

/* Social Sidebar moved to oversize.css */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: url("../img/fon-bg-news.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-bottom: 2px solid rgba(232, 163, 79, 0.3) !important;
  box-shadow: none !important;
  padding: 0 0 !important;
  height: 55px; /* Increased height for presence */
  max-height: 55px;
  display: flex;
  align-items: center;
  z-index: 10000;
}

.navbar .nav-link {
  font-family: "Gambarino", serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  color: rgba(242, 243, 246, 0.95) !important;
  background-image: url("../img/fon-bg-news.jpg") !important;
  background-size: 350% !important; /* Higher zoom for consistency */
  background-position: center !important;
  background-repeat: repeat !important;
  border: 1px solid rgba(232, 163, 79, 0.4) !important;
  border-radius: 2px !important;
  margin: 0 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.5),
    0 2px 5px rgba(0, 0, 0, 0.4) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  letter-spacing: 0.5px !important; /* Standard spacing for serenity */
  width: 130px !important; /* COMPACT WIDTH */
  height: 35px !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

.navbar .nav-link:hover {
  color: #fff !important;
  border-color: rgba(232, 163, 79, 0.8) !important;
  box-shadow:
    0 0 15px rgba(232, 163, 79, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.05) !important;
  transform: translateY(-2px) !important;
  filter: brightness(1.2) !important;
}

.navbar-toggler-icon {
  background-image: url(../img/menu.png) !important;
}

/* Styling the overlay that covers the whole page */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Viewport height */
  /* Choose a background color */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  /* Ensure it is on top of everything */
}

.loader {
  border: 16px solid #f3f3f3;
  /* Light grey */
  border-top: 16px solid #3498db;
  /* Blue spinner */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#videoBg {
  position: absolute; /* Changed from fixed to isolate it in the home section */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ── Contenedor principal ── */
.container-snap {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* ── Paneles apilados ── */
.panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
  color: rgba(255, 255, 255, 0.9);
  display: flex; /* Robust centering */
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.panel.class-section {
  background: #000 url(../img/ibizabg.png) no-repeat; /* Fallback to ibizabg */
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 120px; /* Stable padding */
  visibility: visible !important;
}

.panel.class-section h2 {
  margin-top: 30px; /* Moved back up as requested */
}

.panel.noticias {
  background: url(../img/newsbg.png) no-repeat;
  background-size: cover;
  background-position: center -88px;
}

.panel.rankings {
  background: url(../img/bg_news.png) no-repeat;
  background-size: cover;
}

.panel.rankings .panel-content,
.panel.noticias .panel-content {
  max-width: 1400px; /* Prevent "todo para los costados" */
  margin: 0 auto !important;
  width: 100%;
}

.rankingsSwiper .swiper-wrapper .swiper-slide {
  background: transparent !important;
  border-radius: 8px;
  padding: 0px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* La primera sección visible */
.panel.is-active {
  clip-path: inset(0 0 0 0);
}

/* ── Contenido interno animable ── */
.panel-content {
  opacity: 1; /* Default to visible, controlled by panel clip-path */
  transform: none; /* Removed transform to prevent jumping */
  transition: none;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* Espaciado específico para la sección de clases
   (evita que el menú superior la tape y baja todo un poco) */
#class-showcase .panel-content {
  padding-top: 0; /* Removed padding to prevent jumps */
}

.panel.is-active .panel-content {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* ── Colores de sección ── */
.panel.main-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Gambarino", serif;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Vertical indicators moved to style-vertical.css */

/* Base .nav-link styles consolidated above (line 94) */

.gradient-name {
  background: #ffffff;
  background: linear-gradient(to bottom, #ffffff 20%, #9c9c9c 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 5px;
}

.text-main-section {
  font:
    15px merriweather,
    serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0;
  color: #f2f3f6;
  margin: 5px auto 10px; /* Reduced top margin to move it 5px up */
  text-align: center;
  text-shadow: 0 2px 5px #000000be;
  text-transform: uppercase;
  filter: drop-shadow(2px 4px 6px #000000);
}

/* Red Glow and Heartbeat Animation for Logo */
.panel.main-section .panel-content img[alt="Logotipo"] {
  max-width: 85%; /* Prevent logo from bleeding out on mobile */
  height: auto;
  filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.6))
    drop-shadow(2px 4px 6px #000);
  animation: logo-heartbeat 2s ease-in-out infinite;
}

@keyframes logo-heartbeat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.4))
      drop-shadow(2px 4px 6px #000);
  }
  15% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.9))
      drop-shadow(2px 4px 6px #000);
  }
  30% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.4))
      drop-shadow(2px 4px 6px #000);
  }
  45% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.9))
      drop-shadow(2px 4px 6px #000);
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.4))
      drop-shadow(2px 4px 6px #000);
  }
}

.section-premium-title {
  font-family: "Gambarino", serif !important;
  font-size: 38px !important;
  color: #e8a34f !important;
  text-shadow:
    0 4px 15px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(232, 163, 79, 0.4) !important;
  text-transform: uppercase !important;
  letter-spacing: 5px !important;
  margin-bottom: 40px !important;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 1));
}

.section-premium-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e8a34f, transparent);
  box-shadow: 0 0 10px #e8a34f;
}

.h2-main-section {
  font-size: 0;
  color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 30px;
  height: 50px;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  position: absolute;
  bottom: 50px;
  left: calc(50% - 15px);
  display: flex;
  justify-content: center;
  animation: mouse-bounce 2s ease-in-out infinite;
  box-shadow: none;
  text-shadow: none;
  cursor: pointer;
}

.h2-main-section::before {
  content: "";
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  animation: mouse-scroll 1.8s ease-in-out infinite;
}

.h2-main-section::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  animation: arrow-bounce 2s ease-in-out infinite;
}

@keyframes mouse-scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateY(14px);
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes mouse-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes arrow-bounce {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) rotate(45deg) translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) rotate(45deg) translateY(4px);
  }
}

.buttons {
  display: none !important; /* Oculta los botones de la portada */
  flex-direction: row;
  width: 100%;
  justify-content: center;
}

.buttons a {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: calc(50% - 10px);
  max-width: 400px;
  margin: 0 5px;
  padding: 24px 16px;
  text-align: right;
  filter: hue-rotate(256deg);
  background: url(../img/bg_box_active.png) top center repeat !important;
  background-size: 350% !important; /* Added zoom */
  text-decoration: none;
}

.buttons a:nth-child(2) {
  background: url(../img/bg_box.png) top center repeat !important;
  background-size: 350% !important; /* Added zoom */
  justify-content: flex-start;
}

.buttons a:nth-child(2) span {
  text-align: left;
}

.buttons a span img {
  transition: all 0.5s ease;
}

.tooltip-inner {
  background-color: #1a1a1a;
  color: #e8a34f;
  font-weight: 600;
}

.tooltip.bs-tooltip-right .tooltip-arrow::before {
  border-right-color: #1a1a1a;
}

@media not all and (pointer: coarse) {
  .buttons a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.5s;
  }

  .buttons a:hover {
    filter: brightness(1.3) hue-rotate(256deg);
  }

  .buttons a:hover span img {
    transform: scale(1.1);
  }
}

.buttons a span {
  padding: 0 16px;
  display: inline-flex;
  flex-direction: column;
  color: #f2f3f6;
  text-align: right;
  font-size: 14px;
  line-height: 19px;
  letter-spacing: 0;
  text-shadow: 0 2px 5px #000000be;
}

.buttons a span strong {
  font:
    15px merriweather,
    serif;
  font-weight: 700;
  font-size: 21px;
  text-transform: uppercase;
  color: #e8a34f;
}

.buttons a span img {
  width: 70px;
}

/* class */
#class-showcase,
#clase {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
}

/* Fondo con profundidad */
.class-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/ibizabg.png") no-repeat center center !important;
  background-size: cover !important;
  z-index: 0;
  opacity: 0.8 !important; /* Increase visibility */
}

/* Personaje */
.class-character {
  position: relative;
  z-index: 2;
}

.class-character img {
  height: 65vh;
  transition: all 0.5s ease;
  mask-image: linear-gradient(to bottom, #000, #000, #000, transparent);
  transform: translateY(-20px);
  max-width: 100%;
  object-fit: contain;
}

/* Contenido */
.class-content {
  position: relative;
  z-index: 2;
  padding: 20px 40px;
  margin-left: 0; /* Standardized to 0 to avoid grid friction */
  transform: translate(-150px, -30px); /* Lowered slightly as requested */
}

#class-title {
  font-size: 24px; /* Slightly smaller for refinement */
  font-family: "merriweather", serif;
  letter-spacing: 3px;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 195, 255, 0.5);
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
}

.class-info h3 {
  font-family: "Merriweather", serif;
  font-size: 2.8rem;
  color: #e8a34f;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(232, 163, 114, 0.4);
  text-align: center;
}

#class-description {
  max-width: 500px;
  font-family: "merriweather", serif;
  color: #e6e6e6;
  font-size: 11.5px; /* Even smaller for that "details" feel */
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
  text-align: center;
}

@media (max-width: 768px) {
  .class-content {
    padding: 24px 20px;
    max-width: 100%;
    margin: 0 16px;
  }

  #class-title {
    font-size: 28px;
    margin-left: 0;
    text-align: center;
  }

  #class-description {
    font-size: 15px;
    text-align: center;
    margin: 0 auto;
  }
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-label {
  width: 80px;
  font-size: 14px;
  font-family: "roboto", sans-serif;
  font-weight: bold;
  color: #ffae42;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-container {
  padding: 60px 0;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../img/bg.jpg") no-repeat center center fixed !important;
  background-size: cover !important;
}

.auth-box {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid #4e3a24;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 10;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5e00, #ffb347);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 120, 0, 0.5);
}

.stat-val {
  width: 45px;
  text-align: right;
  font-size: 14px;
  font-family: "roboto", sans-serif;
  color: #fff;
  font-weight: bold;
}

/* Ajuste de alineación entre personaje y bloque de texto */
.class-character {
  display: flex;
  justify-content: center;
}

.class-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* En pantallas grandes, acercamos el texto al centro y limitamos el ancho total */
@media (min-width: 1200px) {
  #class-showcase .container-fluid,
  #clase .container-fluid {
    max-width: 1320px;
    margin: 0 auto;
  }

  .class-content {
    margin-left: -80px;
  }
}

/* Skills */
.class-skills {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.skill-circle {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #661111, #2a0000);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.skill-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px red;
}

/* Botón */
.class-btn {
  background: linear-gradient(45deg, #5a1a00, #b53b00);
  border: none;
  padding: 15px 40px;
  color: white;
  letter-spacing: 2px;
  font-weight: bold;
  transition: 0.3s;
}

.class-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 60, 0, 0.5);
}

/* Flechas */
.class-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  cursor: pointer;
  z-index: 3;
  padding: 20px;
  color: white;
  opacity: 0.5;
}

.class-nav:hover {
  opacity: 1;
}

.class-nav.left {
  left: 20px;
}

.class-nav.right {
  right: 20px;
}

footer {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

footer.footer-visible {
  opacity: 1;
  pointer-events: auto;
}

.footer-main,
.castles-main {
  padding: 10px 20px;
  border-radius: 0;
  font-size: 0.875rem;
  color: #d1c6d08e;
  font-family: "roboto", serif;
  background: transparent;
  font-size: 0.625rem;
}

.footer-main .mulanesa-logo {
  height: 4rem;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.footer-main a {
  color: #b3b9fd;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-main a:hover {
  color: #e8a34f;
}

.footer-main .hover-img:hover img {
  opacity: 1 !important;
}

.news-card::before,
.news-detail-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(8, 4, 12, 0.4) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.news-card > *,
.rankingsSwiper .swiper-slide > * {
  position: relative;
  z-index: 1;
}

.newsSwiper,
.rankingsSwiper {
  width: 100% !important;
  overflow: hidden !important;
  padding: 20px 0 !important;
}

@media (max-width: 991px) {
  .rankingsSwiper,
  .newsSwiper {
    padding-left: 55px !important;
    padding-right: 15px !important;
  }
}

.news-card {
  position: relative;
  height: 400px;
  width: 100%;
  background: url("../img/fon-news.jpg") no-repeat center !important;
  background-size: cover !important;
  border: 1px solid rgba(232, 163, 79, 0.45) !important;
  border-radius: 4px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(232, 163, 79, 0.2);
  border-color: rgba(232, 163, 79, 0.6);
}

.news-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  filter: none;
}

.news-card:hover .news-bg {
  transform: scale(1.1);
}

.news-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(
    0deg,
    rgba(8, 4, 12, 0.95) 0%,
    rgba(8, 4, 12, 0.6) 70%,
    transparent 100%
  );
  color: #fff;
  transition: all 0.3s ease;
}

.news-card:hover .news-overlay {
  background: linear-gradient(
    0deg,
    rgba(8, 4, 12, 1) 0%,
    rgba(8, 4, 12, 0.85) 75%,
    transparent 100%
  );
}

.news-title {
  font-family: "Gambarino", serif;
  color: #fff;
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-desc {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  color: #e8a34f !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 5px;
  transition: all 0.3s ease;
}

.news-read-more:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.news-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(232, 163, 79, 0.2);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-meta i {
  color: #e8a34f !important;
  font-size: 13px;
  margin-right: 2px;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.newsSwiper,
.rankingsSwiper {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  padding: 40px 0 60px 0 !important; /* Más espacio arriba y abajo */
}

.newsSwiper .swiper-wrapper,
.rankingsSwiper .swiper-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Swiper handles centering; avoid blank gaps */
}

.swiper-pagination {
  bottom: 5px !important; /* Bajarlo un poco más */
  position: absolute !important;
}

.swiper-pagination-bullet {
  background: #e8a34f !important;
  opacity: 0.4;
  width: 10px; /* Un poco más grandes */
  height: 10px;
  margin: 0 10px !important; /* Mucha más separación entre puntitos */
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(232, 163, 79, 0.5);
}

.swiper-button-next,
.swiper-button-prev {
  color: #ffc107;
  top: 50% !important;
  transform: translateY(-50%) scale(1) !important; /* Forzar sin zoom */
  transition: color 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #fff !important;
  transform: translateY(-50%) scale(1) !important; /* Evita que main.js u otro CSS aplique zoom */
}

/* Make arrows never "jump" (some themes override on hover/active) */
.newsSwiper .swiper-button-next,
.newsSwiper .swiper-button-prev,
.rankingsSwiper .swiper-button-next,
.rankingsSwiper .swiper-button-prev {
  transform: translateY(-50%) !important;
}

.newsSwiper .swiper-button-next:hover,
.newsSwiper .swiper-button-prev:hover,
.rankingsSwiper .swiper-button-next:hover,
.rankingsSwiper .swiper-button-prev:hover {
  transform: translateY(-50%) !important;
}

.empty-news-container {
  background: rgba(8, 4, 12, 0.6);
  border: 1px solid rgba(232, 163, 79, 0.3);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  color: #ffd29c;
  font-family: "Gambarino", serif;
  letter-spacing: 1px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin: 20px auto;
  max-width: 600px;
}

.empty-news-container i {
  font-size: 2.5rem;
  color: #e8a34f;
  margin-bottom: 15px;
  display: block;
  opacity: 0.8;
}

.modal-content {
  border: 0 !important;
}

/* Fondo general del modal */
.custom-mu-modal {
  background: linear-gradient(180deg, #1a0b2e, transparent) !important;
  background-color: transparent;

  color: #ddd !important;
}

/* Header */
.custom-mu-modal .modal-title {
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}

/* Tabs */
.mu-tabs {
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.mu-tabs .nav-link {
  color: #aaa;
  background: transparent;
  border: none;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.mu-tabs .nav-link:hover {
  color: #fff;
}

.mu-tabs .nav-link.active {
  color: #ffae42;
  border-bottom: 2px solid #ff7b00;
}

/* Cards internas */
.mu-card {
  background: linear-gradient(to bottom, rgba(20, 20, 25, 0.8), transparent);
  padding: 30px;
  border-radius: 8px;
}

/* Lista */
.mu-list {
  list-style: none;
  padding: 0;
}

.mu-list li {
  margin-bottom: 8px;
}

/* Stats */
.mu-stat {
  background: rgba(255, 120, 0, 0.08);
  border: 1px solid rgba(255, 120, 0, 0.2);
  padding: 20px;
  text-align: center;
  border-radius: 6px;
}

.mu-stat span {
  display: block;
  font-size: 12px;
  color: #aaa;
}

.mu-stat strong {
  font-size: 22px;
  color: #ffb347;
}

.card-download {
  background: linear-gradient(to bottom, rgba(20, 20, 25, 0.8), transparent);
  border-radius: 8px;
  padding: 20px;
  color: white;
  text-align: center;
  transition: all 0.3s ease;
}

.card-modules {
  border-radius: 8px;
  padding: 20px;
  color: white;
  font-family:
    roboto,
    sans serif;
  transition: all 0.3s ease;
  width: 75%;
  overflow: auto;
  max-height: 70vh;
}

.table {
  background: linear-gradient(to bottom, #1a0b2e, transparent) !important;
  color: white;
  border-radius: 8px;
}

.table thead th,
.table tbody tr th,
.table tbody tr td {
  text-align: center;
  border-bottom: none;
  background: transparent !important;
  color: white;
}

.card-donations {
  background: linear-gradient(to bottom, #1a0b2e, transparent);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.card-donations img {
  max-width: 192px;
  padding: 8px;
  width: 100%;
  transition: all 0.3s ease;
}

.card-modules a:hover .card-donations {
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 25, 0.8),
    rgb(20, 20, 25)
  );
}

.card-modules a:hover .card-donations img {
  filter: brightness(1.2);
  transform: scale(1.05);
}

.discord-widget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-inline: 8px;
  border-radius: 12px;
  max-width: 420px;
  font-family: "Inter", sans-serif;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.discord-widget:hover {
  opacity: 1;
}

.discord-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-icon {
  width: 40px;
  height: 40px;
}

.news-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #e8a34f;
  text-align: center; /* Centered as requested */
}

.news-card-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  text-align: center; /* Centered as requested */
}
.discord-name {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.discord-members {
  font-size: 13px;
  color: #aaa;
}

.login-section {
  background: radial-gradient(circle, #1a0b2e 0%, #0d061a 100%);
  position: absolute;
  height: 100%;
  color: white;
  max-width: 26%;
}

.login-section img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.login-section form input {
  background: rgba(35, 39, 89, 0.151) !important;
  color: white !important;
  border: 1px solid rgb(43, 49, 133) !important;
  border-radius: 8;
}

.register-a {
  color: #00c3ff;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.register-a:hover {
  color: #00c3ffbd;
}

.login-section form input::placeholder {
  color: #aaa !important;
}

.down-left-login {
  width: 14px !important;
  margin-inline: 4px;
  filter: invert(1) brightness(1.5) !important;
  transition: all 0.3s ease;
}

.to-site-login {
  margin: 0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px !important;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.to-site-login:hover {
  color: white !important;
}

.to-site-login:hover .down-left-login {
  margin-right: 12px;
}

/* RANKINGS MODULE */

.page-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  font-size: 1.3rem;
  color: var(--bs-heading-color);
}

/* RANKINGS MODULE - Card Pattern */
.rankings-card {
  box-sizing: border-box !important; /* FIXED BORDER CLIPPING */
  background-color: rgba(0, 0, 0, 0.75) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 2px solid rgba(232, 163, 79, 0.8) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  padding: 30px 30px 25px 30px; /* Increased horizontal padding */
  transition: all 0.3s ease;
  width: calc(100% - 6px) !important;
  margin: 0 3px !important;
  max-width: 380px;
  height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Switch back to flex-start for controlled spacing */
  align-items: center;
  overflow: hidden !important;
  position: relative;
}

.rankings-card .page-title {
  margin-bottom: 75px !important; /* Pushes the headers and data further down as requested */
  width: 100%;
  text-align: center;
}

.rankings-table {
  width: 100%;
  table-layout: fixed; /* Fix for overflow */
}

.rankings-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-card .page-title,
.rankings-card .fa-trophy,
.rankings-card .fa-skull,
.rankings-card .fa-shield-alt,
.rankings-card .fa-crown {
  text-shadow:
    0 0 10px rgba(0, 0, 0, 1),
    0 0 5px rgba(0, 0, 0, 1) !important;
  font-weight: 700;
}

.rankings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px; /* Increased vertical breathing room between rows */
  background: transparent !important;
  table-layout: fixed;
  margin-top: 0;
}

.rankingsSwiper .swiper-wrapper .swiper-slide {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto;
}

.rankings-card:hover {
  border-color: rgba(232, 163, 79, 0.7) !important;
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(232, 163, 79, 0.2) !important;
}

.rankings-table thead th {
  color: rgba(255, 255, 255, 0.9) !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  border: none;
  padding-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}

/* Rigid Column Alignment */
.rankings-table th:nth-child(1),
.rankings-table td:nth-child(1) {
  width: 40px;
  text-align: center;
}
.rankings-table th:nth-child(2),
.rankings-table td:nth-child(2) {
  width: auto;
  text-align: left;
  padding-left: 15px;
}
.rankings-table th:nth-child(3),
.rankings-table td:nth-child(3) {
  width: 95px;
  text-align: center;
}

.rankings-table tbody tr {
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  border-radius: 6px;
  height: 52px; /* Adjusted height for 5-row distribution */
}

.rankings-table tbody tr:hover {
  background: rgba(232, 163, 79, 0.15);
  transform: scale(1.01);
}

.rankings-table td {
  padding: 12px 10px;
  vertical-align: middle;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
  font-size: 0.85rem; /* Slightly smaller for better fit */
}

.rankings-table-place {
  font-weight: 800;
  font-size: 18px !important;
  width: 40px;
}

/* Medals / Top Positions */
.rank-1 .rankings-table-place {
  color: #ffd700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.rank-2 .rankings-table-place {
  color: #c0c0c0 !important;
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}
.rank-3 .rankings-table-place {
  color: #cd7f32 !important;
  text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.rankings-table a,
.rankings-table a:link,
.rankings-table a:visited,
.rankings-table a:active {
  color: #e8a34f !important;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.rankings-table a:hover {
  color: #ffd29c !important;
}

.rankings-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Match populated cards */
  @import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap");

  padding-top: 20px;
}

/* --- CLASES STYLE IBIZA --- */
/* --- CLASES STYLE IBIZA REDESIGN --- */
/* class */
#class-showcase {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
}

/* Personaje */
.class-character {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.class-character img {
  height: 65vh;
  transition: all 0.5s ease;
  mask-image: linear-gradient(to bottom, #000, #000, #000, transparent);
  transform: translateY(-20px);
  max-width: 100%;
  object-fit: contain;
}

/* Contenido */
.class-content {
  position: relative;
  z-index: 2;
  padding: 20px 40px;
  margin-left: 0;
  transform: translate(-150px, -30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#class-title {
  font-size: 24px;
  font-family: "merriweather", serif;
  letter-spacing: 3px;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 195, 255, 0.5);
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
}

#class-description {
  max-width: 500px;
  font-family: "merriweather", serif;
  color: #e6e6e6;
  font-size: 11.5px;
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
  text-align: center;
}

.class-top-selector {
  display: flex;
  justify-content: center;
  transform: translateY(60px) !important;
  width: 100%;
  position: relative;
  z-index: 10;
  filter: drop-shadow(2px 4px 6px black);
}

.class-btn-top {
  cursor: pointer;
  transition: all 0.3s ease;
  width: 53px !important;
  margin: 0 5px;
}

.class-btn-top img {
  width: 100% !important;
  height: auto !important;
}

@media (max-width: 991px) {
  .class-content {
    padding: 24px 20px;
    max-width: 100%;
    margin: 0 auto;
    transform: none;
  }
}

@media (min-width: 1200px) {
  #class-showcase .container-fluid {
    max-width: 1320px;
    margin: 0 auto;
  }
}

/* --- RANKINGS SWIPER FIX --- */
.rankings-swiper .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.rankings-card {
  width: calc(100% - 6px) !important;
  max-width: 100%;
  margin: 0 3px !important;
  display: flex;
  flex-direction: column;
}

.rankings-empty-state i {
  font-size: 40px;
  margin-bottom: 15px;
  color: rgba(232, 163, 79, 0.6);
}

.rankings-update-time {
  text-align: right;
  font-size: 11px;
  color: #ccc;
  padding: 10px 0px;
}

.rankings_menu {
  width: 100%;
  overflow: auto;
  text-align: center;
  margin-bottom: 10px;
}

.rankings_menu span {
  width: 100%;
  display: inline-block;
  padding: 10px 0px;
  color: #ccc;
  font-size: 24px;
}

.rankings_menu a {
  display: inline-block;
  width: 150px;
  border-left: 4px solid #e3e3e3;
  text-align: center;
  padding: 2px 0px;
  text-decoration: none;
  margin: 2px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  color: #ccc;
  transition: all 0.3s ease;
}

.rankings_menu a:hover {
  color: #3498db;
  border-color: #3498db;
}

.rankings_menu a.active {
  color: #3498db;
  border-color: #3498db;
}

.rankings_guild_logo tr td {
  border: 0px !important;
  padding: 0px !important;
  margin: 0px !important;
}

.rankings-gens-img {
  width: auto !important;
  height: 30px !important;
  border: 0 !important;
  -moz-box-shadow: 0 0 0px #000 !important;
  -webkit-box-shadow: 0 0 0px #000 !important;
  box-shadow: 0 0 0px #000 !important;
  -moz-border-radius: 0px !important;
  border-radius: 0px !important;
}

@media (max-width: 768px) {
  #class-showcase {
    height: auto;
    min-height: 100vh;
    padding-bottom: 40px;
  }

  .class-view {
    flex-direction: column;
    gap: 30px;
  }

  .class-character img {
    height: 40vh;
    max-height: 350px;
  }

  .class-info-box {
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }

  #class-title {
    font-size: 32px;
  }

  .class-nav-arrow {
    width: 40px;
    height: 40px;
  }

  .class-nav-arrow.prev {
    left: 10px;
  }
  .class-nav-arrow.next {
    right: 10px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .class-view {
    gap: 30px;
  }

  .class-character img {
    height: 50vh;
  }
}

@media (max-width: 991px) {
  .navbar,
  footer {
    position: initial !important;
    position: -webkit-initial !important;
  }

  body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Mobile Navbar Redesign */
  .navbar-collapse {
    background: rgba(13, 6, 26, 0.98);
    border: 1px solid rgba(232, 163, 79, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1050;
    position: relative;
  }

  .navbar-nav {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .navbar-nav .nav-item {
    width: auto !important;
    flex: 0 0 auto !important;
  }

  .navbar-nav .nav-link {
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background: rgba(232, 163, 79, 0.15);
    border-color: rgba(232, 163, 79, 0.6);
    color: #e8a34f !important;
  }

  .navbar-nav .nav-item:last-child .nav-link,
  .navbar-nav.ms-auto .nav-item:last-child .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Keep border on all */
  }

  /* Center auth links */
  .navbar-nav.ms-auto {
    margin-top: 12px;
    border-top: 1px solid rgba(232, 163, 79, 0.2);
    padding-top: 15px;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .login-section {
    max-width: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #2a0c23, #2a0c23, #2a0c23, transparent);
  }

  .castles-main {
    display: none;
  }

  .login-section a {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .login-section a img {
    width: 50%;
  }

  .to-site-login {
    width: 50%;
  }

  .panel.blue {
    background-size: initial;
  }
}

/* ============================
   #class-showcase (stable sizing)
   Ported from paginacompleta to avoid image oversizing
   ============================ */
#class-showcase {
  background-color: #000 !important;
  background: url(../img/bgclass.png) no-repeat center center !important;
  background-size: cover !important;
}

/* Ensure background wins over generic .panel.class-section */
.panel.class-section#class-showcase {
  background-color: #000 !important;
  background-image: url(../img/bgclass.png) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
}

#class-showcase .panel-content {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  z-index: 2;
}

.class-main-container {
  width: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  gap: 10px;
  padding: 0 20px;
}

.class-bg {
  display: none;
}

.class-character {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.class-character img {
  height: 70vh;
  max-height: 600px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.5s ease;
  mask-image: linear-gradient(to bottom, #000 85%, transparent);
  filter: none !important; /* remove glow */
}

.class-info-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-left: 0;
  z-index: 10;
  margin-top: -28px; /* move up a bit */
  max-width: 520px;
  gap: 10px;
  margin-left: -120px; /* much closer to character */
}

.class-info-box #class-title {
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.class-info-box #class-description {
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.chart-container-compact {
  width: 380px !important;
  height: 340px !important;
  position: relative;
  margin-left: 35px; /* push chart to the right */
  margin-top: -34px; /* bring the chart up */
  max-width: 100%;
}

.chart-container-compact canvas,
#classStatsChart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Rankings swiper: prevent card overlap/stacking */
.rankingsSwiper .swiper-wrapper {
  align-items: stretch !important;
}

.rankingsSwiper .swiper-slide {
  position: relative; /* anchor ::before */
  overflow: visible !important;
}

.rankingsSwiper .swiper-slide:hover {
  z-index: 5;
}

.rankings-card:hover {
  z-index: 6;
}

.class-dots-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

@media (max-width: 768px) {
  #class-showcase {
    height: auto;
    min-height: 100vh;
    padding-bottom: 40px;
  }

  #class-showcase .panel-content {
    height: auto;
    min-height: 100vh;
    padding: 10px 0 90px; /* Reducido al máximo para subir el título */
    justify-content: flex-start !important;
  }
  #class-showcase h2.section-premium-title {
    margin-top: 10px !important;
    margin-bottom: -15px !important; /* Juntar el título con el personaje */
  }

  .class-main-container {
    flex-direction: column !important;
    gap: 15px; /* less gap to fit info */
  }

  .class-character img {
    height: 48vh; /* Recuperar un tamaño decente ya que hay más espacio arriba */
    max-height: 380px;
  }

  .class-info-box {
    align-items: center;
    text-align: center;
    margin-top: 0;
    margin-left: 0; /* Reset desktop margin */
  }

  .class-top-selector {
    transform: translateY(0) !important; /* Stop pushing the UI out of bounds */
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .chart-container-compact {
    width: min(380px, 92vw) !important;
    margin-left: 0;
    margin-top: 0; /* Reset margin */
  }

  .class-dots-container {
    position: relative;
    transform: none;
    left: 0;
    margin-top: 20px;
    bottom: auto;
  }
}

/* castle siege main styles */
.castles-main {
  color: white;
}

.castle-img {
  max-width: 150px;
  filter: drop-shadow(0 0 15px rgba(52, 152, 219, 0.5));
}

.btn-panel {
  transform: skewX(-10deg);
  border-radius: 4px !important;
  font-weight: bold !important;
  text-transform: uppercase;
  width: 100%;
  color: white !important;
  background: rgb(42, 48, 129) !important;
  transition: all 0.3s ease !important;
  box-shadow: 0px 0px 20px rgb(42, 48, 129);
}

.btn-panel span {
  transform: skewX(10deg);
  display: block;
}

.btn-panel:hover {
  transform: skewX(-10deg) translateY(-5px);
  box-shadow: 0px 0px 40px rgb(42, 48, 129);
  filter: brightness(1.1);
}

.badge {
  transform: skewX(-10deg);
}

/* ================= USERCP ================= */
.tab-content-dashboard {
  background: rgba(13, 20, 36, 0.9);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============== RANKING FILTERING =========== */

.rankings-class-filter {
  display: inline-block;
  list-style-type: none;
  margin: 20px auto;
  padding: 10px 20px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -khtml-border-radius: 10px;
}

.rankings-class-filter li {
  display: inline-block;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.rankings-class-filter li:hover {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
}

.rankings-class-filter-selection {
  display: inline-block;
  width: 75px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.rankings-class-filter-selection:hover {
  color: #00c3ff !important;
}

.rankings-class-filter-grayscale:hover {
  filter: grayscale(0);
}

.rankings-class-filter-selection:hover img {
  -webkit-filter: brightness(120%);
  filter: brightness(120%);
}

.rankings-class-filter-selection img {
  width: 40px;
  height: auto;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  -khtml-border-radius: 50%;
  margin-bottom: 5px;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.45);
  -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.45);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.45);
}

.rankings-class-filter-grayscale {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

/* ========== SERVER INFO GLASS PANEL (Online + Time) ========== */
/* Only shown on #inicio hero section - upper right (red box area) */
.server-info-glass {
  position: absolute;
  top: 90px;
  right: 90px;
  z-index: 100;
  width: 260px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 163, 79, 0.25);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.server-info-glass-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.server-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.server-info-label {
  color: rgba(232, 163, 79, 0.9);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.server-info-value {
  color: #fff;
  font-weight: 500;
}
.server-info-value.server-info-online {
  color: #51cf66;
  font-weight: 600;
}
.server-info-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  margin-left: 2px;
}
.server-info-glass .webengine-online-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(232, 163, 79, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0;
}
.server-info-glass .webengine-online-bar-progress {
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(232, 163, 79, 0.8),
    rgba(81, 207, 102, 0.9)
  );
  border-radius: 2px;
  transition: width 0.3s ease;
}
@media (max-width: 768px) {
  .server-info-glass {
    top: 70px;
    right: 5px;
    width: 200px;
    font-size: 11px;
    padding: 12px 14px;
    transform: scale(0.85);
    transform-origin: top right;
  }

  /* Tablas responsivas en subpáginas para móviles */
  .rankings-table,
  table.table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* Evita que el texto colapse */
  }
}

/* ========== DISCORD HERO WIDGET (premium design) ========== */
.discord-hero-widget {
  position: absolute;
  top: 90px;
  left: 90px;
  z-index: 100;
  width: auto;
  min-width: 140px;
  text-decoration: none;
  display: block;
  cursor: pointer;

  /* Background: Sólo la textura, sin oscuridad extra */
  background: url("../img/fon-news.jpg") center/cover no-repeat;
  border: 1px solid rgba(232, 163, 79, 0.5);
  border-radius: 8px;

  /* Sombra externa para profundidad */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);

  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Hover effect */
.discord-hero-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 163, 79, 0.8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.discord-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 2;
  /* Remover overlay negro */
  background: transparent;
}

.discord-hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.discord-hero-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.discord-hero-widget:hover .discord-hero-icon-wrap {
  filter: brightness(1.2);
}

.discord-hero-icon {
  font-size: 24px;
  color: #5865f2; /* Keep brand color but with glow */
  filter: drop-shadow(0 0 3px rgba(88, 101, 242, 0.4));
}

.discord-hero-titles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.discord-hero-title {
  font-family: "Gambarino", serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 1);
}

/* Esconder elementos innecesarios para el estilo minimalista */
.discord-hero-cta,
.discord-hero-online {
  display: none !important;
}

.discord-hero-count {
  color: #51cf66; /* Online green */
  font-weight: bold;
  font-size: 13px;
  font-family: "Gambarino", serif;
}

.discord-hero-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-family: "Gambarino", serif;
}

.discord-hero-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  min-height: 28px;
  align-items: center;
  padding: 10px 14px 12px 14px;
}

.discord-hero-avatars .discord-hero-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(232, 163, 79, 0.7);
  transition: all 0.3s ease;
  background: #000;
}

.discord-hero-widget:hover .discord-hero-avatars .discord-hero-avatar {
  border-color: rgba(232, 163, 79, 1);
  transform: scale(1.1);
}

.discord-hero-loading {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-style: italic;
  padding: 0;
}

@media (max-width: 992px) {
  .discord-hero-widget {
    top: 80px;
    left: 40px;
  }
}

@media (max-width: 768px) {
  .discord-hero-widget {
    top: 70px;
    left: 5px;
    width: auto;
    transform: scale(0.85);
    transform-origin: top left;
  }
  .discord-hero-avatars .discord-hero-avatar {
    width: 20px;
    height: 20px;
  }
}

/* GUILD PROFILES (premium aesthetic) */
.profiles_guild_card {
  width: 100%;
  background: rgba(0, 0, 0, 0.5) url("../img/profiles/guild.jpg") no-repeat
    center;
  background-size: cover;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 0 60px rgba(0, 0, 0, 0.4);
  padding: 30px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}
.profiles_guild_card .guild_logo img {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(232, 163, 79, 0.2);
  border-radius: 8px;
}
.profiles_guild_card .guild_name {
  font-family: "Gambarino", serif;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
.profiles_guild_card table {
  table-layout: fixed;
}
.profiles_guild_card hr {
  border-top: 1px solid rgba(232, 163, 79, 0.2);
  margin-top: 24px;
  margin-bottom: 24px;
}
.profiles_guild_card .guild_members_list a {
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none !important;
  background: none !important;
  transition: color 0.2s ease;
}
.profiles_guild_card .guild_members_list a:hover {
  color: var(--gold) !important;
}
.profiles_guild_card .profiles-label,
.profiles_guild_card .usercp-table td:first-child {
  color: rgba(232, 163, 79, 0.95) !important;
}
.profiles_guild_card .usercp-table a {
  color: var(--gold) !important;
  text-decoration: none !important;
  background: none !important;
}
.profiles_guild_card .usercp-table a:hover {
  color: #f5c574 !important;
}
.profiles_guild_card .guild_name,
.profiles_guild_card .usercp-section-title {
  background: none !important;
}

/* PLAYER PROFILES (premium aesthetic) */
.profiles_player_card {
  width: 100%;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 0 60px rgba(0, 0, 0, 0.35);
  padding: 24px;
}

.DW.profiles_player_card,
.SM.profiles_player_card,
.GM.profiles_player_card,
.SW.profiles_player_card,
.DSW.profiles_player_card {
  background: url("../img/profiles/wiz.jpg") no-repeat;
  background-size: cover;
}
.DK.profiles_player_card,
.BK.profiles_player_card,
.BM.profiles_player_card,
.DGK.profiles_player_card,
.IGK.profiles_player_card {
  background: url("../img/profiles/knight.jpg") no-repeat;
  background-size: cover;
}
.ELF.profiles_player_card,
.ME.profiles_player_card,
.HE.profiles_player_card,
.NE.profiles_player_card,
.RYE.profiles_player_card {
  background: url("../img/profiles/elf.jpg") no-repeat;
  background-size: cover;
}
.MG.profiles_player_card,
.DM.profiles_player_card,
.MK.profiles_player_card,
.DPK.profiles_player_card {
  background: url("../img/profiles/mg.jpg") no-repeat;
  background-size: cover;
}
.DL.profiles_player_card,
.LE.profiles_player_card,
.EL.profiles_player_card,
.FCE.profiles_player_card {
  background: url("../img/profiles/dl.jpg") no-repeat;
  background-size: cover;
}
.SUM.profiles_player_card,
.BS.profiles_player_card,
.DSM.profiles_player_card,
.DS.profiles_player_card,
.ESUM.profiles_player_card {
  background: url("../img/profiles/sum.jpg") no-repeat;
  background-size: cover;
}
.RF.profiles_player_card,
.FM.profiles_player_card,
.FB.profiles_player_card,
.BF.profiles_player_card {
  background: url("../img/profiles/rf.jpg") no-repeat;
  background-size: cover;
}
.GL.profiles_player_card,
.ML.profiles_player_card,
.SL.profiles_player_card,
.AL.profiles_player_card {
  background: url("../img/profiles/gl.jpg") no-repeat;
  background-size: cover;
}
.RW.profiles_player_card,
.RSM.profiles_player_card,
.GRM.profiles_player_card,
.MRW.profiles_player_card,
.IRW.profiles_player_card {
  background: url("../img/profiles/rw.jpg") no-repeat;
  background-size: cover;
}
.SLR.profiles_player_card,
.SLRR.profiles_player_card,
.MSLR.profiles_player_card,
.SLTR.profiles_player_card,
.RS.profiles_player_card {
  background: url("../img/profiles/sl.jpg") no-repeat;
  background-size: cover;
}
.GC.profiles_player_card,
.GB.profiles_player_card,
.MGB.profiles_player_card,
.HGC.profiles_player_card,
.MGC.profiles_player_card {
  background: url("../img/profiles/gc.jpg") no-repeat;
  background-size: cover;
}
.LIW.profiles_player_card,
.LIM.profiles_player_card,
.SHW.profiles_player_card,
.LUW.profiles_player_card,
.GLW.profiles_player_card {
  background: url("../img/profiles/liw.jpg") no-repeat;
  background-size: cover;
}
.LEM.profiles_player_card,
.WAM.profiles_player_card,
.ARM.profiles_player_card,
.MYM.profiles_player_card,
.BAM.profiles_player_card {
  background: url("../img/profiles/lem.jpg") no-repeat;
  background-size: cover;
}
.IK.profiles_player_card,
.MIK.profiles_player_card,
.IM.profiles_player_card,
.MYK.profiles_player_card,
.PPK.profiles_player_card {
  background: url("../img/profiles/ik.jpg") no-repeat;
  background-size: cover;
}
.ALC.profiles_player_card,
.ALMN.profiles_player_card,
.ALMTR.profiles_player_card,
.ALFC.profiles_player_card,
.CRE.profiles_player_card {
  background: url("../img/profiles/alc.jpg") no-repeat;
  background-size: cover;
}

.profiles_player_content {
  float: right;
  width: 55%;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.profiles_player_table {
  width: 100%;
}

.profiles_player_table .cname {
  font-family: "Gambarino", serif;
  text-align: center;
  font-size: 1.35rem;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.profiles_player_table .cclass {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.profiles_player_table .isoffline {
  color: #ff6b6b;
}

.profiles_player_table .isonline {
  color: #51cf66;
}

.profiles_player_table_info {
  table-layout: fixed;
  margin-top: 12px;
}
.profiles_player_table_info tr td {
  padding: 6px 12px;
}
.profiles_player_table_info tr td:first-child {
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
}
.profiles_player_table_info tr td:last-child {
  text-align: right;
}

/* ===== TIMELINE VERTICAL ===== */

.mu-timeline-vertical {
  position: relative;
  padding: 0 0;
}

/* Línea central */
.mu-timeline-vertical::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #ff2a2a;
  transform: translateX(-50%);
}

/* Filas */
.mu-timeline-row {
  position: relative;
  width: 50%;
  padding: 30px;
}

/* Alternancia */
.mu-timeline-row.left {
  left: 0;
  text-align: right;
}

.mu-timeline-row.right {
  left: 50%;
}

/* Punto rojo */
.mu-timeline-row::after {
  content: "";
  position: absolute;
  top: 40px;
  width: 14px;
  height: 14px;
  background: #ff2a2a;
  border-radius: 50%;
  z-index: 2;
}

.mu-timeline-row.left::after {
  right: -7px;
}

.mu-timeline-row.right::after {
  left: -7px;
}

/* Caja */
.mu-timeline-content-box {
  background: rgba(13, 20, 36, 0.9);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.mu-year {
  color: #ff2a2a;
  font-size: 14px;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .mu-timeline-vertical::before {
    left: 10px;
  }

  .mu-timeline-row {
    width: 100%;
    padding-left: 40px;
    text-align: left !important;
  }

  .mu-timeline-row.right {
    left: 0;
  }

  .mu-timeline-row::after {
    left: 3px !important;
  }
}

/* =========================================
   AUTH MODALS (Login & Register Popup - White Theme)
   ========================================= */
.auth-content {
  background: url("../img/fon-news.jpg") no-repeat center !important;
  background-size: 180% !important;
  border: 1px solid rgba(232, 163, 79, 0.45) !important;
  border-radius: 4px !important;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.8),
    0 8px 32px rgba(0, 0, 0, 0.6) !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.auth-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(26, 11, 46, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.auth-content > * {
  position: relative;
  z-index: 1;
}

.auth-header {
  background: transparent;
  z-index: 2;
}

.auth-body {
  position: relative;
  z-index: 2;
}

.auth-logo {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 140px;
}

.auth-title {
  font-family: "Merriweather", serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}
@keyframes slideInRightSocial {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.rrss-icon-premium {
  position: fixed !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  z-index: 100000 !important;
  width: auto !important;
  animation: slideInRightSocial 0.8s ease-out forwards;
}

.rrss-icon-premium a {
  background-image: url("../img/fon-bg-news.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(232, 163, 79, 0.7) !important;
  color: #fff !important;
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  border-radius: 8px !important;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.7),
    inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
  overflow: hidden;
}

.rrss-icon-premium a::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: 0.5s;
  pointer-events: none;
}

.rrss-icon-premium a:hover::after {
  left: 100%;
}

.rrss-icon-premium a:hover {
  transform: translateX(-8px) scale(1.18) rotate(-3deg) !important;
  border-color: #fff !important;
  box-shadow:
    0 10px 35px rgba(232, 163, 79, 0.6),
    inset 0 0 15px rgba(232, 163, 79, 0.4) !important;
  z-index: 10;
}

/* Specific glows and intense brand colors on hover */
.rs-whatsapp:hover i {
  color: #25d366 !important;
  filter: drop-shadow(0 0 10px #25d366) !important;
}
.rs-facebook:hover i {
  color: #1877f2 !important;
  filter: drop-shadow(0 0 10px #1877f2) !important;
}
.rs-instagram:hover i {
  color: #e4405f !important;
  filter: drop-shadow(0 0 10px #e4405f) !important;
}
.rs-youtube:hover i {
  color: #ff0000 !important;
  filter: drop-shadow(0 0 10px #ff0000) !important;
}
.rs-tiktok:hover i {
  color: #fe2c55 !important;
  filter: drop-shadow(0 0 10px #fe2c55) !important;
}
.rs-discord:hover i {
  color: #5865f2 !important;
  filter: drop-shadow(0 0 10px #5865f2) !important;
}
.rs-twitch:hover i {
  color: #9146ff !important;
  filter: drop-shadow(0 0 10px #9146ff) !important;
}
.rs-kick:hover i {
  color: #53fc18 !important;
  filter: drop-shadow(0 0 10px #53fc18) !important;
}

@media (max-width: 768px) {
  .rrss-icon-premium {
    right: 10px !important;
    gap: 10px !important;
  }
  .rrss-icon-premium a {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
}

#events-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9998;
  opacity: 0.7;
  cursor: pointer;
}
#events-modal.modal_div {
  position: fixed !important;
  display: none;
  background: none !important;
  min-height: 0 !important;
  width: auto !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  z-index: 10000 !important;
}
#events-modal .modal-content {
  text-align: left;
  min-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  background:
    linear-gradient(rgba(18, 12, 8, 0.84), rgba(18, 12, 8, 0.9)),
    url("../img/fon-news.jpg") center/cover
      no-repeat !important;
  border: 1px solid rgba(232, 163, 79, 0.55);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
#events-modal .modal_close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1b1411;
  border: 1px solid #5c432b;
  color: #ffaf43;
  cursor: pointer;
  z-index: 10001;
}
#events-modal .modal_close::before {
  content: "×";
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}
.events-fab {
  position: fixed;
  top: calc(50% + 132px);
  left: 20px;
  width: auto;
  height: auto;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  touch-action: none;
  user-select: none;
}
.events-fab-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(232, 163, 79, 0.6);
  overflow: hidden;
  padding: 0;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(0, 0, 0, 0.45);
}
.events-fab-text {
  margin-top: 5px;
  color: #ffaf43;
  font-weight: bold;
  font-size: 13px;
  text-shadow: 2px 2px 2px #000;
  text-transform: uppercase;
  background:
    linear-gradient(rgba(18, 12, 8, 0.78), rgba(18, 12, 8, 0.9)),
    url("../img/fon-news.jpg") center/cover
      no-repeat;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(232, 163, 79, 0.45);
  pointer-events: none;
}
.events-fab:hover .events-fab-icon {
  opacity: 0.9;
  box-shadow: 0 0 10px rgba(255, 175, 67, 0.5);
}
.events-table th {
  color: #ffaf43;
  font-size: 14px;
  border-bottom: 1px solid rgba(232, 163, 79, 0.45);
  background:
    linear-gradient(rgba(18, 12, 8, 0.88), rgba(18, 12, 8, 0.95)),
    url("../img/fon-news.jpg") center/cover
      no-repeat;
}
.events-table {
  background: transparent !important;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(20, 14, 10, 0.88);
  --bs-table-striped-color: #f2d8b4;
  --bs-table-color: #f2d8b4;
  --bs-table-border-color: rgba(232, 163, 79, 0.22);
}
.events-table td {
  border-top: 1px solid rgba(232, 163, 79, 0.22) !important;
  vertical-align: middle !important;
  padding: 10px 15px !important;
  background: rgba(20, 14, 10, 0.88);
}
.events-table tr:hover td {
  background: rgba(54, 39, 28, 0.85);
}
.event-name {
  font-weight: bold;
  color: #f2d8b4;
}
.event-time-left {
  font-weight: bold;
  color: #ffd27b;
}
.event-next {
  color: #c7ad8d;
  font-size: 12px;
}
@media (max-width: 991px) {
  .events-fab {
    left: 10px;
    top: calc(50% + 108px);
  }
  .events-fab-icon {
    width: 48px;
    height: 48px;
  }
  .events-fab-text {
    font-size: 11px;
    padding: 2px 5px;
  }
  #events-modal .modal-content {
    min-width: min(92vw, 560px);
  }
}
