/* =====================================================================
   Black Archlord — Guides (guides.php)
   1) Estilos del contenido de las guías (antes assets/css/guide.css),
      sin sus reglas globales y con la paleta del tema nuevo.
   2) Marco nuevo de la página: menú, panel y base del contenido.
   ===================================================================== */

.clickable-image {
      transition: transform 0.3s ease;
      cursor: pointer;
    }
    .clickable-image.enlarged {
      transform: scale(1.5);
      z-index: 1000;
      position: relative;
    }
    .hotkey-box {
      background-color: #111;
      padding: 10px 15px;
      border-radius: 6px;
      font-family: 'Courier New', Courier, monospace;
      font-size: 14px;
      color: #fff;
      border: 1px solid #444;
      text-align: center;
      transition: transform 0.2s ease, background-color 0.2s ease;
      box-shadow: inset 0 0 5px #000;
    }
    .hotkey-box:hover {
      transform: scale(1.06);
      background-color: #222;
    }
    .command-box {
      background: linear-gradient(145deg, #1e1e1e, #2b2b2b);
      border-radius: 10px;
      padding: 15px;
      color: #e8b87c;
      font-family: monospace;
      box-shadow: 0 0 10px rgba(255,255,255,0.05);
      margin-bottom: 15px;
      transition: transform 0.3s ease;
    }
    .command-box:hover {
      transform: scale(1.03);
      background: linear-gradient(145deg, #2b2b2b, #1e1e1e);
    }
    /* Banner de Chaotic Frontier */
    .cf-gear-banner {
    text-align: center;
    margin-bottom: 20px;
    }

    .cf-gear-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }

    /* Bloque introductorio */
    .cf-gear-intro {
    background-color: #222;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 10px;
    margin-bottom: 20px;
    }

    .cf-gear-intro p,
    .cf-gear-intro ul {
    color: #ddd;
    font-size: 1rem;
    }

    .cf-gear-intro ul {
    list-style-type: disc;
    margin-left: 20px;
    }

    /* Ítem de CF Gear */
    .cf-gear-item {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .cf-gear-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    }

    .cf-gear-item h4 {
    color: #e8b87c;
    margin-top: 15px;
    font-size: 1.4rem;
    }

    .cf-gear-item p {
    color: #ddd;
    line-height: 1.5;
    margin: 10px 0;
    }

    .cf-gear-item ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #ccc;
    }

    .cf-gear-item ul li {
    margin-bottom: 5px;
    }

/* TRUE SET */

.true-gear-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 24px;
  }
  
  .gear-card {
    background: #111;
    border: 1px solid #444;
    color: #0f0;
    padding: 10px;
    width: 150px;
    flex-shrink: 0;
    box-shadow: 0 0 6px #000;
    border-radius: 4px;
  }
  
  .gear-card img {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px auto;
    display: block;
  }
  
  .gear-card h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
    text-transform: uppercase;
  }
  
  .gear-card ul {
    font-size: 13px;
    padding-left: 18px;
    margin: 8px 0;
  }
  
  .random-skills {
    margin-top: 10px;
    color: yellow;
    font-weight: bold;
  }
  
  .random-skills select {
    width: 100%;
    margin-top: 5px;
  }
  
  /* LEVEL UP REWARDS */

  .level-section {
    background-color: #222;       /* Fondo oscuro */
    color: #fff;                  /* Color de texto base */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 5px;
  }
  .level-section h4 {
    color: whitesmoke !important;    /* Título de nivel en dorado */
    margin-top: 0;
  }
  .level-section ul {
    margin: 5px 0 0 20px;         /* Ajusta la indentación de la lista */
    padding: 0;
  }
  .level-section ul li {
    margin-bottom: 3px;
  }


/* Contenedor principal (ambos) */
.unique-rings,
.unique-necks {
  font-family: Arial, sans-serif;
  color: #333;
  min-width: 600px;
  max-width: 600px;
  margin: 0;  /* Sin margen externo */
}

/* Contenedores de grupo */
.ring-group,
.neck-group {
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 20px;
  background-color: #3d3c3c;
  opacity: 0.8;
  width: 100%;
  min-width: 600px;
  max-width: 600px;
}

/* Estilos para imágenes */
.ring-group img,
.neck-group img {
  width: 64px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* Estilos para encabezados */
.ring-group h3,
.neck-group h3 {
  margin: 10px 0 5px;
  font-size: 1.1em;
  color: goldenrod;
}

/* Estilos para párrafos */
.ring-group p,
.neck-group p {
  margin: 0 0 10px;
  line-height: 1.4;
  font-size: 0.95em;
  color: whitesmoke;
}

/* Listas compactas */
  #guide-game-boxes .box-list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:6px 18px;
    list-style:none;
    padding-left:0;
    margin:8px 0 20px;
  }
  #guide-game-boxes .box-list a{
    color:#ddd; text-decoration:none;
  }
  #guide-game-boxes .box-list a:hover{ text-decoration:underline; }

  /* Títulos con color */
  #guide-game-boxes h4 a{ color:#e0a96a; text-decoration:none; }

  .accordion-button {
  background-color: #1c1c1c;   /* dark background */
  color: #e0a96a;              /* gold text */
  font-weight: bold;
}

.accordion-button:not(.collapsed) {
  background-color: #2a2a2a;   /* active state */
  color: #fff;
}

.accordion-body {
  background: #111;
  color: #ddd;
  padding: 1rem;
}

.accordion-item {
  border: 1px solid #333;
  margin-bottom: 5px;
  border-radius: 6px;
  overflow: hidden;
}

#guide-game-boxes .card { background:#1a1a1a; border-color:#2b2b2b; border-radius:8px; }
#guide-game-boxes .card + .card { margin-top:.75rem; }
#guide-game-boxes .card-header { background:#222; border-bottom-color:#2b2b2b; }
#guide-game-boxes .btn.btn-link { color:#ff8800; font-weight:700; text-decoration:none; }
#guide-game-boxes .btn.btn-link:hover { color:#f0be84; text-decoration:none; }
#guide-game-boxes .card-body { background:#151515; }
#guide-game-boxes .box-list { list-style:none; padding-left:1rem; margin:0; }
#guide-game-boxes .box-list li { padding:.25rem 0; border-bottom:1px solid rgba(255,255,255,.08); }
#guide-game-boxes .box-list li:last-child { border-bottom:none; }
#guide-game-boxes .img-link { color:#ddd; }
#guide-game-boxes .img-link:hover { color:#f0be84; text-decoration:underline; }


.boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
  align-self: start; 
}

.box-category {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #e0a96a;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
  align-self: start; 
}

.box-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 145, 88, 0.3);
}

.box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

/* Alapból minden doboz zárva */
.box-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Csak az expanded class-szal nyílik ki */
.box-category.expanded .box-content {
  max-height: none;
  overflow: visible;
}

/* A nyíl is forogjon */
.expand-arrow {
  color: #e0a96a;
  transition: transform 0.3s ease;
}

.box-category.expanded .expand-arrow {
  transform: rotate(180deg);
}

.box-category .box-title,
.box-category h4.box-title {
  color: #e0a96a !important;
}

.box-title {
  color: #e0a96a;
  font-size: 21px; /* 18px helyett */
  font-weight: bold;
  margin: 0;
}

.recipe-section {
  margin-bottom: 20px;
  min-height: auto;
  max-height: none;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.recipe-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 145, 88, 0.3);
  border-radius: 5px;
  padding: 12px;
  transition: all 0.2s ease;
}

.recipe-item:hover {
  background: rgba(201, 145, 88, 0.1);
  border-color: #e0a96a;
}

.recipe-name {
  color: #fff;
  font-weight: bold;
  margin-bottom: 5px;
}

.recipe-formula {
  color: #ccc;
  font-size: 13px;
}

.infinity-recipes {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.infinity-recipe {
  background: rgba(224, 169, 106, 0.1);
  border: 1px solid #f0c27a;
  border-radius: 8px;
  padding: 15px;
}

.infinity-name {
  color: #f0c27a;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

.infinity-ingredients {
  color: #fff;
  font-size: 14px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.infinity-cost {
  color: #e0a96a;
  font-weight: bold;
  font-size: 14px;
}

.recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 15px;
  user-select: none;
}

.recipe-arrow {
  color: #e0a96a;
  transition: transform 0.3s ease;
}

.recipe-section.expanded .recipe-arrow {
  transform: rotate(180deg);
}

.recipe-content {
  max-height: none;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.recipe-section.expanded .recipe-content {
  max-height: 1000px;
}

.important-note {
  background: rgba(255, 69, 0, 0.2);
  border: 1px solid #FF4500;
  border-radius: 5px;
  padding: 12px;
  color: #FFB347;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
}

.mount-recipes {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mount-recipe {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 145, 88, 0.3);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.2s ease;
}

.mount-recipe:hover {
  background: rgba(201, 145, 88, 0.1);
  border-color: #e0a96a;
}

.mount-name {
  color: #e0a96a;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

.mount-ingredients {
  color: #fff;
  font-size: 14px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.mount-cost {
  color: #f0c27a;
  font-weight: bold;
  font-size: 14px;
}

.mount-recipe-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mount-recipe-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e0a96a;
  flex-shrink: 0;
}

.mount-recipe-info {
  flex: 1;
}

@media (max-width: 768px) {
  .mount-recipe-header {
    flex-direction: column;
    text-align: center;
  }
  
  .mount-recipe-image {
    width: 60px;
    height: 60px;
  }
}

.mount-images-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(201, 145, 88, 0.2);
}

.mount-image-container {
  text-align: center;
}

.large-recipe-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #e0a96a;
  transition: all 0.3s ease;
  cursor: pointer;
}

.large-recipe-image:hover {
  border-color: #f0c27a;
  box-shadow: 0 5px 15px rgba(201, 145, 88, 0.4);
/*  transform: scale(1.02);*/
}

.image-caption {
  color: #e0a96a;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 0;
}

.coming-soon-section {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(201, 145, 88, 0.4);
  border-radius: 15px;
  margin: 20px 0;
}

.coming-soon-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.coming-soon-section h4 {
  color: #e0a96a;
  font-size: 24px;
  margin-bottom: 15px;
}

.coming-soon-section p {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.placeholder-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-item {
  background: rgba(201, 145, 88, 0.1);
  color: #e0a96a;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(201, 145, 88, 0.3);
  font-size: 14px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .coming-soon-icon {
    font-size: 36px;
  }
  
  .placeholder-features {
    flex-direction: column;
    align-items: center;
  }
}

.refinery-container .refinery-content {
  display: none;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  min-height: auto;
  max-height: none;
}

/* True Gear Navigation Styles - Compact Version */
.race-navigation {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 5px 0;
}

.class-navigation {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  padding: 5px 0;
}

.set-navigation {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 5px 0;
}

/* Compact Tab Button Styles */
.race-tab, .class-tab, .set-tab {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #e0a96a;
  border: 1px solid #e0a96a;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.race-tab:hover, .class-tab:hover, .set-tab:hover {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  border-color: #f0be84;
  color: #f0be84;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(201, 145, 88, 0.3);
}

.race-tab.active, .class-tab.active, .set-tab.active {
  background: linear-gradient(135deg, #e0a96a 0%, #f0be84 100%);
  border-color: #f0be84;
  color: #000;
  box-shadow: 0 4px 12px rgba(201, 145, 88, 0.5);
  font-weight: 700;
}

/* Content Areas */
.race-content, .class-content, .set-content {
  animation: fadeIn 0.3s ease-out;
}

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

/* Gear Grid - 5 Columns Layout */
.true-gear-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 15px;
  padding: 10px 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.gear-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s ease;
  position: relative;
  min-height: 320px;
}

.gear-card:hover {
  border-color: #e0a96a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(201, 145, 88, 0.25);
  background: linear-gradient(135deg, #252525 0%, #2a2a2a 100%);
}

.gear-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto 10px auto;
  display: block;
  border: 1px solid #333;
  transition: border-color 0.3s ease;
}

.gear-card:hover img {
  border-color: #e0a96a;
}

/* GREEN Item Names */
.gear-card h4 {
  color: #4CAF50;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.gear-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}

.gear-card li {
  color: #ddd;
  font-size: 14px;
  margin-bottom: 4px;
  padding-left: 12px;
  position: relative;
  line-height: 1.3;
}

.gear-card li::before {
  content: "•";
  color: #e0a96a;
  position: absolute;
  left: 0;
  font-size: 12px;
  top: 1px;
}

.random-skills {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #333;
}

.random-skills span {
  color: #e0a96a;
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

.random-skills select {
  background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
  color: #e0a96a;
  border: 1px solid #e0a96a;
  border-radius: 4px;
  padding: 4px 6px;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
}

.random-skills select:focus, .random-skills select:hover {
  border-color: #f0be84;
  box-shadow: 0 0 4px rgba(201, 145, 88, 0.3);
  background: linear-gradient(135deg, #333 0%, #3a3a3a 100%);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .true-gear-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .true-gear-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .true-gear-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .race-tab, .class-tab, .set-tab {
    padding: 6px 12px;
    font-size: 11px;
  }
}

  .popup-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    text-align: center;
  }
  .popup-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
  }
  .popup-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
  /* Siege Guide */
.siege-guide {
  color: #e8e8e8;
}

.siege-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(201, 145, 88, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.94), rgba(42, 24, 10, 0.82));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.siege-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #e0a96a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.siege-hero h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 34px;
}

.siege-hero p,
.siege-section p,
.siege-step p,
.siege-result-box p,
.siege-info-card p {
  color: #ddd;
  line-height: 1.65;
}

.siege-hero-image,
.siege-image-card,
.siege-gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(201, 145, 88, 0.45);
  border-radius: 10px;
  background: #111;
  text-decoration: none;
}

.siege-hero-image img,
.siege-image-card img,
.siege-gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.siege-hero-image:hover img,
.siege-image-card:hover img,
.siege-gallery-card:hover img {
  filter: brightness(1.12);
  transform: scale(1.04);
}

.siege-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.siege-info-card,
.siege-section,
.siege-steps,
.siege-result-box {
  border: 1px solid #333;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.88);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.siege-info-card {
  padding: 18px;
}

.siege-info-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
}

.siege-info-card h4,
.siege-section h4,
.siege-steps h4,
.siege-result-box h4 {
  margin-bottom: 10px;
  color: #e0a96a;
}

.siege-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 20px;
  margin-bottom: 22px;
  padding: 20px;
}

.siege-section ul {
  margin: 12px 0 0 20px;
  color: #d7d7d7;
}

.siege-section li {
  margin-bottom: 6px;
}

.siege-image-card span,
.siege-gallery-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #e8b87c;
  font-weight: 700;
  text-align: center;
}

.siege-steps {
  margin-bottom: 22px;
  padding: 20px;
}

.siege-step-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.siege-step {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(201, 145, 88, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.siege-step-number {
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e0a96a;
  color: #111;
  font-weight: 800;
}

.siege-step h5 {
  margin: 3px 0 6px;
  color: #fff;
}

.siege-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.siege-gallery-card img {
  min-height: 145px;
}

.siege-result-box {
  padding: 20px;
  border-color: rgba(201, 145, 88, 0.45);
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.92), rgba(50, 28, 8, 0.78));
}

@media (max-width: 991px) {
  .siege-hero,
  .siege-section,
  .siege-step-list {
    grid-template-columns: 1fr;
  }

  .siege-info-grid,
  .siege-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .siege-hero {
    padding: 16px;
  }

  .siege-info-grid,
  .siege-gallery {
    grid-template-columns: 1fr;
  }
}

/* Superior Heaven Hell gear - compact professional layout */
.hh-superior-guide {
  --hh-card-bg: rgba(10, 11, 15, 0.86);
  --hh-card-border: rgba(201, 145, 88, 0.22);
}

.hh-superior-guide > h3 {
  margin-bottom: 6px;
}

.hh-superior-guide > h4 {
  margin-bottom: 10px;
}

.hh-superior-guide > p {
  max-width: 760px;
  margin-bottom: 18px;
  color: #d8d1c3;
}

.hh-superior-grid.true-gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 12px;
  align-items: stretch;
  overflow: visible;
  max-width: none;
  margin: 18px 0 0;
  padding: 0;
}

.hh-superior-grid .gear-card {
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 13px 13px 12px;
  color: #ede6d8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--hh-card-bg);
  border: 1px solid var(--hh-card-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.hh-superior-grid .gear-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 145, 88, 0.62);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36), 0 0 18px rgba(201, 145, 88, 0.12);
}

.hh-superior-grid .gear-card img {
  width: 58px;
  height: 58px;
  padding: 3px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(201, 145, 88, 0.24);
  border-radius: 6px;
  margin-bottom: 9px;
}

.hh-superior-grid .gear-card h4 {
  min-height: 42px;
  margin: 0 0 8px;
  color: #ffd978;
  font-size: 13px;
  line-height: 1.12;
  letter-spacing: 0.025em;
}

.hh-superior-grid .gear-card p {
  align-self: center;
  margin: 0 0 10px;
  padding: 3px 9px;
  color: #f4f0e6;
  background: rgba(201, 145, 88, 0.1);
  border: 1px solid rgba(201, 145, 88, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.hh-superior-grid .gear-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.hh-superior-grid .gear-card li {
  margin: 0;
  padding-left: 11px;
  color: #ddd6c8;
  font-size: 12px;
  line-height: 1.22;
}

.hh-superior-grid .gear-card li::before {
  color: #f4a62a;
  top: 0;
}

@media (max-width: 767.98px) {
  .hh-superior-grid.true-gear-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
}

/* ---------------------------------------------------------------------
   Marco de la página
   --------------------------------------------------------------------- */

.nw-guides-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding-bottom: 60px;
}

/* El panel no hace scroll: lo hace la lista (.nw-guides-nav). Si el scroll
   estuviera en el panel, sus esquinas decorativas (.nw-panel::before/::after)
   se moverían con el contenido y la de abajo saldría junto a un elemento del
   menú, además de crear una barra de scroll horizontal. */
.nw-guides-menu {
  position: sticky;
  top: calc(var(--nw-header-h) + 16px);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--nw-header-h) - 32px);
  padding: 0 0 12px;
}

.nw-guides-nav {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 145, 88, 0.4) transparent;
}

.nw-guides-nav a:focus-visible {
  outline: 1px solid var(--nw-gold);
  outline-offset: -1px;
}

.nw-guides-menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px 12px;
  border: 0;
  border-bottom: 1px solid var(--nw-line-soft);
  color: #fff;
  background: transparent;
  text-align: left;
  cursor: default;
}

.nw-guides-menu-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nw-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nw-guides-menu-title i {
  color: var(--nw-gold);
  font-size: 14px;
}

.nw-guides-menu-current,
.nw-guides-menu-caret {
  display: none;
}

.nw-guides-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-guides-nav > ul {
  display: grid;
  gap: 2px;
  padding: 10px 10px 0;
}

.nw-guides-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  color: #d9ccc6;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nw-guides-nav a i {
  width: 16px;
  color: var(--nw-gold-soft);
  font-size: 13px;
  text-align: center;
}

.nw-guides-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nw-guides-nav a.is-active {
  border-left-color: var(--nw-red-hot);
  color: #fff;
  background: linear-gradient(90deg, rgba(227, 52, 42, 0.22), rgba(227, 52, 42, 0.04));
}

.nw-guides-nav a.is-active i {
  color: var(--nw-red-hot);
}

.nw-guides-group {
  margin: 6px 0 4px;
}

.nw-guides-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 6px;
  color: var(--nw-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nw-guides-group-label i {
  width: 16px;
  font-size: 12px;
  text-align: center;
}

.nw-guides-group ul {
  margin-left: 19px;
  padding-left: 8px;
  border-left: 1px solid var(--nw-line);
}

.nw-guides-group ul a {
  padding: 7px 12px;
  font-size: 13px;
}

.nw-guides-content {
  min-width: 0;
  min-height: 600px;
  scroll-margin-top: calc(var(--nw-header-h) + 12px);
  padding: 26px 30px 32px;
}

@media (max-width: 991px) {
  .nw-guides-layout {
    grid-template-columns: 1fr;
  }

  .nw-guides-menu {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .nw-guides-menu-toggle {
    border-bottom: 0;
    padding: 14px 16px;
    cursor: pointer;
  }

  .nw-guides-menu-current {
    display: block;
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: var(--nw-red-hot);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nw-guides-menu-caret {
    display: block;
    flex: 0 0 auto;
    color: var(--nw-muted);
    font-size: 12px;
    transition: transform 0.2s ease;
  }

  .nw-guides-nav {
    display: none;
    padding-bottom: 12px;
    border-top: 1px solid var(--nw-line-soft);
  }

  .nw-guides-menu.is-open .nw-guides-nav {
    display: block;
  }

  .nw-guides-menu.is-open .nw-guides-menu-caret {
    transform: rotate(180deg);
  }

  .nw-guides-content {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .nw-guides-content {
    padding: 20px 16px 24px;
  }
}

/* ---------------------------------------------------------------------
   Base del contenido de las guías (antes en el <style> de la página)
   --------------------------------------------------------------------- */

.nw-guides-inner {
  color: #d9ccc6;
  font-size: 14.5px;
  line-height: 1.6;
}

.nw-guides-inner h3,
.nw-guides-inner h4,
.nw-guides-inner h5,
.nw-guides-inner h6 {
  color: var(--nw-gold);
  font-family: var(--nw-font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.nw-guides-inner h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 24px;
}

.nw-guides-inner h4 {
  margin: 22px 0 10px;
  font-size: 18px;
}

.nw-guides-inner h5 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.nw-guides-inner p {
  margin: 0 0 12px;
}

.nw-guides-inner ul,
.nw-guides-inner ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.nw-guides-inner li {
  margin-bottom: 4px;
}

.nw-guides-inner p,
.nw-guides-inner li,
.nw-guides-inner td,
.nw-guides-inner th {
  color: #d9ccc6;
}

.nw-guides-inner strong {
  color: #fff;
}

.nw-guides-inner a:not(.nw-btn) {
  color: var(--nw-gold);
}

.nw-guides-inner a:not(.nw-btn):hover {
  color: #fff;
}

/* El tema pone img { display: block }; el contenido de las guías se hizo con
   imágenes en línea. :where() deja la especificidad baja para que las reglas
   de cada componente (.gear-card img, etc.) sigan mandando. */
:where(.nw-guides-inner) img {
  display: inline;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.nw-guides-inner hr {
  border: 0;
  border-top: 1px solid var(--nw-line-soft);
  margin: 20px 0;
}

.nw-guides-inner table,
.nw-guides-inner .table {
  width: 100%;
  border-collapse: collapse;
  color: #d9ccc6;
  background: rgba(6, 4, 5, 0.55);
}

.nw-guides-inner table td,
.nw-guides-inner table th {
  padding: 9px 12px;
  border: 1px solid var(--nw-line-soft) !important;
  text-align: left;
  vertical-align: top;
}

.nw-guides-inner table th {
  color: var(--nw-gold);
  background: rgba(120, 18, 12, 0.22);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nw-guides-inner select {
  color: #fff;
  background: #120c0d;
}

/* Tarjetas y bloques del contenido con el aspecto de los paneles nuevos */
.nw-guides-inner .race-item,
.nw-guides-inner .server-rules,
.nw-guides-inner .cf-gear-intro,
.nw-guides-inner .cf-gear-item,
.nw-guides-inner .level-section,
.nw-guides-inner .ring-group,
.nw-guides-inner .neck-group,
.nw-guides-inner .refinery-container .refinery-content,
.nw-guides-inner .coming-soon-section,
.nw-guides-inner .box-category,
.nw-guides-inner .recipe-item,
.nw-guides-inner .mount-recipe,
.nw-guides-inner .infinity-recipe,
.nw-guides-inner .gear-card,
.nw-guides-inner .hotkey-box,
.nw-guides-inner .command-box {
  border-color: var(--nw-line-soft) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(120, 18, 12, 0.1), rgba(6, 4, 5, 0.6) 60%) !important;
  box-shadow: none;
}

.nw-guides-inner .gear-card:hover,
.nw-guides-inner .box-category:hover,
.nw-guides-inner .recipe-item:hover,
.nw-guides-inner .hotkey-box:hover,
.nw-guides-inner .command-box:hover {
  border-color: var(--nw-frame) !important;
}

.nw-guides-inner .server-rules {
  padding: 20px 22px;
  border: 1px solid;
}

.nw-guides-inner .server-rules > h5:first-child {
  margin-top: 0;
  color: #fff;
  font-size: 22px;
}

/* Pestañas de True Gear (raza / clase / set) */
.nw-guides-inner .race-tab,
.nw-guides-inner .class-tab,
.nw-guides-inner .set-tab {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  color: #e8dcd6 !important;
  background: linear-gradient(180deg, #1c1314, #120c0d) !important;
}

.nw-guides-inner .race-tab:hover,
.nw-guides-inner .class-tab:hover,
.nw-guides-inner .set-tab:hover {
  border-color: rgba(255, 90, 60, 0.6) !important;
  color: #fff !important;
}

.nw-guides-inner .race-tab.active,
.nw-guides-inner .class-tab.active,
.nw-guides-inner .set-tab.active {
  border-color: rgba(255, 120, 90, 0.7) !important;
  color: #fff !important;
  background: linear-gradient(180deg, #e3342a, #8c1410) !important;
  box-shadow: 0 0 16px rgba(227, 52, 42, 0.35) !important;
}

/* Lo poco de Bootstrap que usa el contenido */
.nw-guides-inner .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.nw-guides-inner .row > [class*="col-"] {
  width: 100%;
  padding: 0 10px;
}

@media (min-width: 768px) {
  .nw-guides-inner .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .nw-guides-inner .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .nw-guides-inner .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

.nw-guides-inner .mb-3 { margin-bottom: 1rem; }
.nw-guides-inner .text-center { text-align: center; }
.nw-guides-inner .text-warning { color: #f2b544 !important; }

@media (max-width: 991px) {
  .nw-guides-inner table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nw-guides-inner .recipe-grid {
    grid-template-columns: 1fr !important;
  }

  .nw-guides-inner .recipe-grid,
  .nw-guides-inner .recipe-section,
  .nw-guides-inner .recipe-content,
  .nw-guides-inner .recipe-item,
  .nw-guides-inner .infinity-recipe,
  .nw-guides-inner .mount-recipe {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Ventana para ampliar imágenes */
.img-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.img-modal.open {
  display: flex;
}

.img-modal img {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  border: 1px solid var(--nw-frame);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  object-fit: contain;
  cursor: default;
}

/* Recetas de refinado: botones y paneles (sus estilos base están en un
   <style> dentro del contenido; aquí se adaptan al tema) */
.nw-guides-inner .long-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 2px solid transparent;
  border-radius: 0;
  color: #e8dcd6;
  background: linear-gradient(180deg, #1c1314, #120c0d);
  font-family: var(--nw-font-body);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nw-guides-inner .long-button:hover {
  border-color: rgba(255, 90, 60, 0.5);
  color: #fff;
  background: linear-gradient(180deg, #24181a, #160e0f);
}

.nw-guides-inner .long-button.is-active {
  border-color: rgba(255, 120, 90, 0.6);
  border-left-color: var(--nw-red-hot);
  color: #fff;
  background: linear-gradient(90deg, rgba(227, 52, 42, 0.3), rgba(227, 52, 42, 0.06));
}

.nw-guides-inner .refinery-content {
  border: 1px solid var(--nw-line-soft);
  border-radius: 0;
  background: rgba(6, 4, 5, 0.55);
}

/* Anillos y collares únicos: guide.css les da min-width: 600px */
@media (max-width: 767px) {
  .nw-guides-inner .unique-rings,
  .nw-guides-inner .unique-necks,
  .nw-guides-inner .ring-group,
  .nw-guides-inner .neck-group {
    min-width: 0;
    max-width: 100%;
  }
}
