/* Mir Evolved — Godlike dark guides (overrides legacy purple/white guides.css) */

body.mir-evolved {
  color: #e8e8e8 !important;
}

.mir-guide-body,
.mir-guide-body .main-content,
.mir-guide-body .container,
.mir-app .main-content {
  color: rgba(255, 255, 255, 0.88) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.mir-skills {
  color: rgba(255, 255, 255, 0.88) !important;
  background: transparent !important;
}

.mir-guide-body .guide-header,
.mir-guide-body .guide-section,
.mir-guide-body .info-card,
.mir-guide-body .guide-card,
.mir-guide-body .feature-card,
.mir-guide-body main {
  background: rgba(8, 10, 14, 0.78) !important;
  border: 1px solid rgba(180, 40, 40, 0.35) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.mir-guide-body .guide-header {
  text-align: left;
  padding: 1.25rem 1.5rem !important;
  margin: 0 0 1.25rem !important;
}

.mir-guide-body .guide-header h1,
.mir-guide-body .guide-header h2,
.mir-guide-body h1,
.mir-guide-body h2,
.mir-guide-body h3,
.mir-guide-body .guide-section h3 {
  color: #fff !important;
  text-shadow: none !important;
}

.mir-guide-body .subtitle,
.mir-guide-body p,
.mir-guide-body li,
.mir-guide-body .guide-section p,
.mir-guide-body .info-card p {
  color: rgba(255, 255, 255, 0.72) !important;
}

.mir-guide-body a,
.mir-guide-body a.inline {
  color: #f0c14b !important;
}

.mir-guide-body code,
.mir-guide-body .cmd-list code {
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Guide hub chips / category buttons */
.mir-guide-body .guide-nav,
.mir-guide-body .guides-nav,
.mir-guide-body .category-nav,
.mir-guide-body .nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.mir-guide-body .guide-nav a,
.mir-guide-body .guides-nav a,
.mir-guide-body .guide-nav button,
.mir-guide-body .category-btn,
.mir-guide-body .nav-btn,
.mir-guide-body a.guide-chip {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 8px 14px !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.mir-guide-body .guide-nav a.active,
.mir-guide-body .guides-nav a.active,
.mir-guide-body .category-btn.active,
.mir-guide-body .nav-btn.active {
  background: #b42828 !important;
  border-color: #b42828 !important;
}

.mir-guide-body input[type="search"],
.mir-guide-body input[type="text"],
.mir-guide-body .search-box {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 6px !important;
}

/* Event status banners */
.event-status {
  display: block;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(240, 193, 75, 0.35);
  background: rgba(240, 193, 75, 0.1);
  color: #fde68a !important;
  font-weight: 600;
}
.event-status .sub {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7) !important;
}
.event-status.active {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac !important;
}
.event-status.offline {
  border-color: rgba(180, 40, 40, 0.45);
  background: rgba(180, 40, 40, 0.15);
  color: #ffb4b4 !important;
}

.events-day h3 { color: #fff !important; margin: 18px 0 10px; }
.event-card {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85) !important;
}
.event-card.active { border-color: rgba(34, 197, 94, 0.5) !important; }
.event-card .title { color: #fff !important; font-weight: 700; }
.event-card .when, .event-card .note { color: rgba(255, 255, 255, 0.65) !important; }
.event-card a { color: #f0c14b !important; }

.window-table { width: 100%; border-collapse: collapse; color: rgba(255,255,255,.85); }
.window-table th, .window-table td {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 8px 10px;
  text-align: left;
}

/* Shared in-page subnav (guides + databases) */
.mir-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.mir-subnav a {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff !important;
  text-decoration: none !important;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
}
.mir-subnav a:hover,
.mir-subnav a.is-active {
  background: #b42828;
  border-color: #b42828;
}

/* One complete icon Guides menu (PHP) — hide incomplete duplicates inside article HTML */
.mir-guide-body nav.guides-nav {
  display: none !important;
}
/* PHP injects Databases subnav — hide incomplete fragment .mir-db-nav */
.mir-app nav.mir-db-nav,
.mir-panel nav.mir-db-nav,
.mir-db-page nav.mir-db-nav {
  display: none !important;
}
.mir-guides-nav.guides-nav,
nav.mir-guides-nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.mir-guides-nav .guides-nav-btn {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}
.mir-guides-nav .guides-nav-btn:hover,
.mir-guides-nav .guides-nav-btn.active {
  background: #b42828 !important;
  border-color: #b42828 !important;
  color: #fff !important;
}
.mir-guide-body > .container.main-content > header h1 {
  display: none; /* shell already has Guides title */
}
.mir-guide-body > .container.main-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.mir-shell .mir-title {
  margin-bottom: 8px;
}
.mir-shell .mir-sub {
  margin-bottom: 14px;
}

/* Skills */
.mir-skills header h1,
.mir-skills .subtitle,
.mir-skills #content,
.mir-skills #content * {
  color: rgba(255, 255, 255, 0.88) !important;
}
.mir-skills .subtitle { color: rgba(255, 255, 255, 0.65) !important; }
.mir-skills .skills-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.mir-skills .skills-nav-btn,
.mir-skills a.skills-nav-btn {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  cursor: pointer;
  text-decoration: none !important;
}
.mir-skills .skills-nav-btn.active {
  background: #b42828 !important;
  border-color: #b42828 !important;
}
.mir-skills .skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.mir-skills .skill-card {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  color: #fff !important;
}
.mir-skills .skill-card:hover {
  border-color: #b42828 !important;
  transform: translateY(-2px);
}
.mir-skills .skill-card h3 { color: #fff !important; margin: 0 0 8px; }
.mir-skills .search-box {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.5) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: #fff !important;
  border-radius: 6px;
}

/* Skill detail modal */
.mir-skill-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.72);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mir-skill-modal-backdrop.open { display: flex; }
.mir-skill-modal {
  width: min(720px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #12151c;
  border: 1px solid rgba(180, 40, 40, 0.45);
  border-radius: 12px;
  color: #eee;
  padding: 18px 20px;
}
.mir-skill-modal h2 { margin: 0 0 8px; color: #fff; }
.mir-skill-modal .close-btn {
  float: right;
  border: 0;
  background: rgba(255,255,255,.1);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}

/* —— Skills: section cards (was continuous flat text) —— */
.mir-skills #content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mir-skills #content > .section-header {
  margin: 8px 0 0 !important;
  padding: 14px 16px !important;
  background: rgba(8, 10, 14, 0.82) !important;
  border: 1px solid rgba(180, 40, 40, 0.4) !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.mir-skills #content > .info-box,
.mir-skills #content > .stats-row,
.mir-skills #content > .element-grid,
.mir-skills .mir-skill-modal .info-box {
  background: rgba(8, 10, 14, 0.78) !important;
  border: 1px solid rgba(180, 40, 40, 0.35) !important;
  border-radius: 8px !important;
  padding: 16px 18px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  line-height: 1.55;
}
.mir-skills #content > .info-box p,
.mir-skills .mir-skill-modal .info-box p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78) !important;
}
.mir-skills #content > .info-box p:last-child,
.mir-skills .mir-skill-modal .info-box p:last-child {
  margin-bottom: 0;
}
.mir-skills #content > .info-box strong,
.mir-skills .mir-skill-modal .info-box strong {
  color: #fff !important;
}
.mir-skills #content code,
.mir-skills .info-box code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fbbf24 !important;
  font-size: 0.92em;
}
.mir-skills .element-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px !important;
}
.mir-skills .element-card {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px;
  padding: 14px;
  color: #fff !important;
}
.mir-skills .element-card.fire { border-color: rgba(239, 68, 68, 0.55) !important; }
.mir-skills .element-card.ice { border-color: rgba(56, 189, 248, 0.55) !important; }
.mir-skills .element-card.holy { border-color: rgba(250, 204, 21, 0.55) !important; }
.mir-skills .element-card.force { border-color: rgba(168, 85, 247, 0.55) !important; }
.mir-skills .element-card.poison { border-color: rgba(34, 197, 94, 0.55) !important; }
.mir-skills .element-card h3,
.mir-skills .element-card h4 {
  margin: 0 0 8px;
  color: #fff !important;
}
.mir-skills .element-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.92rem;
}
.mir-skills .stats-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.mir-skills .stat-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.mir-skills .stat-item .stat-value,
.mir-skills .stat-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff !important;
}
.mir-skills .stat-item .stat-label,
.mir-skills .stat-item span {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.85rem;
}
.mir-skills .level-table,
.mir-skills .comparison-table,
.mir-skills .leveling-table,
.mir-skills .mir-skill-modal table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(8, 10, 14, 0.78) !important;
  border: 1px solid rgba(180, 40, 40, 0.35) !important;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 14px;
}
.mir-skills .level-table th,
.mir-skills .comparison-table th,
.mir-skills .leveling-table th,
.mir-skills .mir-skill-modal table th {
  background: rgba(180, 40, 40, 0.35) !important;
  color: #fff !important;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mir-skills .level-table td,
.mir-skills .comparison-table td,
.mir-skills .leveling-table td,
.mir-skills .mir-skill-modal table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85) !important;
  background: transparent !important;
}
.mir-skills .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(180, 40, 40, 0.35);
  border: 1px solid rgba(180, 40, 40, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 4px;
}
.mir-skills #content > ul,
.mir-skills #content > ol {
  background: rgba(8, 10, 14, 0.78);
  border: 1px solid rgba(180, 40, 40, 0.35);
  border-radius: 8px;
  padding: 14px 18px 14px 36px;
  margin: 0;
}

/* —— Guide articles: inner cards that were still flat —— */
.mir-guide-body .category-grid,
.mir-guide-body .rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 1rem 0 0;
}
.mir-guide-body .category-card,
.mir-guide-body .tip-card,
.mir-guide-body .reward-card,
.mir-guide-body .example-card,
.mir-guide-body .access-step,
.mir-guide-body .step,
.mir-guide-body .grade-info,
.mir-guide-body .buff-info {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 1.1rem 1.2rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  box-shadow: none !important;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mir-guide-body .category-card:hover,
.mir-guide-body .tip-card:hover {
  border-color: rgba(180, 40, 40, 0.55) !important;
  transform: translateY(-2px);
}
.mir-guide-body .category-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.mir-guide-body .category-card h4,
.mir-guide-body .tip-card h4,
.mir-guide-body .step-content h4,
.mir-guide-body .access-step h4 {
  color: #fff !important;
  margin: 0 0 0.4rem;
}
.mir-guide-body .category-card p,
.mir-guide-body .tip-card p,
.mir-guide-body .step-content p,
.mir-guide-body .access-step p {
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.mir-guide-body .guide-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #f0c14b !important;
  font-weight: 700;
  text-decoration: none !important;
}
.mir-guide-body .guide-link:hover {
  text-decoration: underline !important;
}
.mir-guide-body .steps-container,
.mir-guide-body .access-steps {
  display: grid;
  gap: 10px;
  margin: 1rem 0 0;
}
.mir-guide-body .step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.mir-guide-body .step-number {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b42828;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.mir-guide-body .grade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.mir-guide-body .grade-item {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Kill leftover white DB nav pills inside tools */
.mir-db-nav, .mir-db-nav-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mir-db-nav-btn {
  background: rgba(0,0,0,.45) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 7px 12px !important;
  text-decoration: none !important;
}
.mir-db-nav-btn.active {
  background: #b42828 !important;
  border-color: #b42828 !important;
}

/* Dropdown height: scrollable Godlike dropdowns */
.nk-navbar .nk-drop-item > .dropdown {
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Tall scrollable dropdowns (Guides + Databases) */
.nk-navbar .nk-nav .nk-drop-item > .dropdown,
.nk-navbar .dropdown {
  max-height: min(72vh, 560px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
