@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   EX PORTAL - Inspired by exmuonline.net
   Tailored for WebEngine CMS 1.2.7
   ========================================================================== */

:root {
  --bg: #05080b;
  --panel: rgba(13, 17, 22, .94);
  --panel-soft: rgba(15, 20, 26, .85);
  --line: rgba(255, 255, 255, .11);
  --primary: #8b1c13;
  --primary-light: #e53935;
  --primary-dark: #4a0f0a;
  --red: #8b1c13;
  --red-soft: rgba(136, 28, 19, .34);
  --text: #f4f4f4;
  --muted: #b9b9b9;
  --green: #35e963;
  --container: 1400px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-light); }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(151, 32, 17, .28), transparent 30%),
    radial-gradient(circle at 25% 24%, rgba(229, 57, 53, .12), transparent 28%),
    linear-gradient(180deg, #080b0f 0%, #05080b 54%, #030507 100%);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* =========================================
   Top Bar
   ========================================= */
.topbar {
  height: 88px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(3, 5, 8, .94);
  border-bottom: 1px solid rgba(231, 169, 45, .15);
  backdrop-filter: blur(14px);
}
.container::before,
.container::after,
.nav-wrap::before,
.nav-wrap::after,
.content-grid::before,
.content-grid::after,
.feature-strip::before,
.feature-strip::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  width: 100%;
}
.brand img {
  width: 188px;
  height: auto;
}
.exmu-logo-glint {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.exmu-logo-glint-light {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: url('../img/logo.png?v=igk-brushed-1') center / 100% 100% no-repeat;
  mask: url('../img/logo.png?v=igk-brushed-1') center / 100% 100% no-repeat;
}
.exmu-logo-glint-light::before {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.55) 25%, #fff 42%, #fff 58%, rgba(255,255,255,.55) 75%, transparent 100%);
  animation: exmu-logo-glint 5s ease-in-out infinite;
}
@keyframes exmu-logo-glint {
  0%, 72% { transform: translateX(0); opacity: 0; }
  74% { opacity: 1; }
  94% { transform: translateX(370%); opacity: 1; }
  95%, 100% { transform: translateX(370%); opacity: 0; }
}
.exmu-footer-logo { margin-bottom: 12px; }
.footer-brand .exmu-footer-logo img { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .exmu-logo-glint-light { display: none; }
}
.nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}
.nav ul.nav-links-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul.nav-links-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul.nav-links-list li a {
  position: relative;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #e7e7e7;
  padding: 6px 2px;
  text-decoration: none;
  opacity: .92;
  transition: color .2s ease, opacity .2s ease;
}
.nav ul.nav-links-list li a:hover,
.nav ul.nav-links-list li a.active {
  color: var(--primary-light);
  opacity: 1;
}
.nav ul.nav-links-list li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--primary-light);
  box-shadow: 0 0 14px var(--primary-light);
}

.exmu-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.exmu-nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.exmu-nav-social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025));
  color: #dce3ed;
  font-size: 16px;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 4px 12px rgba(0, 0, 0, .2);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.exmu-nav-social-link:hover,
.exmu-nav-social-link:focus-visible {
  color: #fff;
  border-color: currentColor;
  transform: translateY(-3px);
  box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 8px 18px rgba(0, 0, 0, .28);
  outline: none;
}
.exmu-nav-social-link.is-facebook:hover,
.exmu-nav-social-link.is-facebook:focus-visible { background: linear-gradient(145deg, #3978d7, #214b91); }
.exmu-nav-social-link.is-discord:hover,
.exmu-nav-social-link.is-discord:focus-visible { background: linear-gradient(145deg, #6975ef, #4249a4); }
.exmu-nav-social-link.is-whatsapp:hover,
.exmu-nav-social-link.is-whatsapp:focus-visible { background: linear-gradient(145deg, #20c878, #087d4c); }
.footer-brand .exmu-nav-social { margin-top: 18px; }
@media (max-width: 600px) {
  .exmu-nav-social { gap: 6px; }
  .exmu-nav-social-link { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; }
}

.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, var(--primary-light), #a31818 52%, var(--primary-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.top-cta:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 4px 12px rgba(229, 57, 53, 0.5);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background-color: #05080b;
  background-image: url('../img/hero-bg-dark-knight-no-helmet.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-bottom: 1px solid #8b1c13;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(4,7,10,.3) 65%, #05080b 100%);
  pointer-events: none;
}
.hero-fog {
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(5,8,11,.9));
  z-index: 2;
}
.hero-inner {
  min-height: 600px;
  position: relative;
}
.hero-copy {
  position: relative;
  z-index: 4;
  width: min(790px, 62vw);
  padding-top: 140px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary-light);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  text-shadow: 0 0 18px rgba(229, 57, 53, .2);
}
h1.hero-headline {
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: -.03em;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
h1.hero-headline strong {
  display: block;
  font-weight: 800;
}
.gold-text {
  font-weight: 800;
  background: linear-gradient(to bottom, #cfc09f 0%, #ffecb3 50%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.6));
}
.hero-copy p {
  margin-top: 18px;
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
  max-width: 580px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 5px;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, var(--primary-light), #b71c1c 54%, var(--primary-dark)) !important;
  border-color: rgba(229, 57, 53, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px rgba(0, 0, 0, .4);
}
.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 14px rgba(229, 57, 53, .45);
}
.btn-outline {
  color: #f3f3f3 !important;
  border: 1px solid rgba(229, 57, 53, .68) !important;
  background: rgba(8, 12, 17, .75) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn-outline:hover {
  border-color: rgba(229, 57, 53, .9);
  background: rgba(18, 24, 32, .85) !important;
}
.btn-full { width: 100%; }

/* =========================================
   Feature Strip (5 Cards)
   ========================================= */
.feature-strip {
  position: relative;
  z-index: 8;
  margin-top: -36px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(13, 17, 22, .92);
  box-shadow: 0 18px 46px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}
.feature-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-right: 1px solid rgba(255,255,255,.09);
}
.feature-card:last-child { border-right: 0; }
.feature-icon {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(229,57,53,.22), rgba(229,57,53,.05));
  border: 1px solid rgba(229,57,53,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.feature-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}
.feature-card span {
  display: block;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 1.3;
}

/* =========================================
   Main Content Grid (2 Columns: Main + Sidebar)
   ========================================= */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  padding: 30px 0 50px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 14px 44px rgba(0,0,0,.32);
}
.exmu-home-column {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 20px;
}
.exmu-home-column > .panel {
  margin: 0;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(229, 57, 53, .22);
}
.panel h2, .panel-header h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .05em;
  margin: 0;
}
.panel-header a {
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
}
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
.news-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: #0b1015;
  transition: transform .18s ease, border-color .18s ease;
}
.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229,57,53,.4);
}
.news-card figure {
  height: 120px;
  position: relative;
  background-size: cover;
  background-position: center;
  margin: 0;
}
.news-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.6));
}
.news-card figure span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(180deg, #dca735, #9f6b12);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.news-body {
  padding: 14px;
}
.news-body h3 {
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 8px 0;
  color: #fff;
  font-weight: 700;
}
.news-body p {
  color: #a3a3a3;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}
.news-body footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #888;
  font-size: 11px;
}
.news-body footer a {
  color: var(--primary-light);
  font-weight: 600;
}

/* Home Slider Banner */
.exmu-home-slider {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #080b0f;
  isolation: isolate;
}
.exmu-home-slider-viewport {
  aspect-ratio: 3 / 1;
}
.exmu-home-slide, .exmu-home-slide > a {
  display: block;
  width: 100%;
  height: 100%;
}
.exmu-home-slide[hidden], .exmu-slider-controls[hidden] {
  display: none;
}
.exmu-home-slide {
  animation: exmu-slide-reveal .45s ease;
}
.exmu-home-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exmu-home-slider::after {
  content: "";
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent, rgba(3, 5, 7, .65));
  pointer-events: none;
}
.exmu-slider-arrow {
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  background: rgba(8, 11, 15, .72);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.exmu-slider-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  font-size: 14px;
}
.exmu-slider-arrow { top: 50%; transform: translateY(-50%); }
.exmu-slider-arrow.is-prev { left: 12px; }
.exmu-slider-arrow.is-next { right: 12px; }
.exmu-slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary-light);
}
.exmu-home-slider button:focus-visible, .exmu-home-slide > a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
@keyframes exmu-slide-reveal { from { opacity: .3; } to { opacity: 1; } }
@media (max-width: 600px) {
  .exmu-home-slider-viewport { aspect-ratio: 2 / 1; }
  .exmu-home-slider-img { object-position: 65% center; }
  .exmu-slider-arrow.is-prev { left: 6px; }
  .exmu-slider-arrow.is-next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .exmu-home-slide { animation: none; }
}

/* Home Articles List */
.home-articles-list {
  padding: 8px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.home-article-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: background .15s ease;
}
.home-article-row:last-child {
  border-bottom: 0;
}
.home-article-row:hover {
  background: rgba(229, 57, 53, .05);
}
.article-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(229, 57, 53, .15);
  color: var(--primary-light);
  border: 1px solid rgba(229, 57, 53, .3);
}
.article-title {
  flex: 1;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color .15s ease;
}
.article-title:hover {
  color: #fff;
}
.article-date {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
}

/* =========================================
   Homepage 3-Rankings Row (Resets, Kills, Guilds)
   ========================================= */
.home-rankings-section {
  overflow: hidden;
}
.home-rankings-main-header {
  background: transparent;
  padding: 16px 20px 12px;
}
.home-rankings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px 16px 18px;
}
@media (max-width: 900px) {
  .home-rankings-grid {
    grid-template-columns: 1fr;
  }
}
.home-rank-card {
  background: #090d12;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-rank-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 57, 53, .4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.home-rank-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(18, 24, 32, .8);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.home-rank-card-title {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}
.home-rank-card-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  transition: color .15s ease;
}
.home-rank-card-link:hover {
  color: #fff;
}
.home-rank-card-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-rank-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background .15s ease, transform .15s ease;
}
.home-rank-row:last-child {
  border-bottom: none;
}
.home-rank-row:hover {
  background: rgba(229, 57, 53, .08);
}
.home-rank-pos {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  border-radius: 4px;
  flex-shrink: 0;
}
.rank-badge-gold {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  box-shadow: 0 0 8px rgba(245, 158, 11, .5);
}
.rank-badge-silver {
  background: linear-gradient(135deg, #94a3b8, #475569);
  color: #fff;
  box-shadow: 0 0 6px rgba(148, 163, 184, .4);
}
.rank-badge-bronze {
  background: linear-gradient(135deg, #d97706, #78350f);
  color: #fff;
  box-shadow: 0 0 6px rgba(217, 119, 6, .4);
}
.rank-badge-normal {
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .08);
}
.home-rank-avatar-wrap {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-rank-avatar {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.5) !important;
}
.guild-logo-frame img {
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,.5);
}
.home-rank-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.home-rank-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-rank-name a {
  color: #fff;
  text-decoration: none;
}
.home-rank-name a:hover {
  color: var(--primary-light);
}
.home-rank-sub {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.1;
}
.home-rank-value {
  flex-shrink: 0;
}
.pill-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pill-blue {
  background: rgba(59, 130, 246, .18);
  border: 1px solid rgba(59, 130, 246, .4);
  color: #93c5fd;
}
.pill-red {
  background: rgba(239, 68, 68, .18);
  border: 1px solid rgba(239, 68, 68, .4);
  color: #fca5a5;
}
.pill-gold {
  background: rgba(234, 179, 8, .18);
  border: 1px solid rgba(234, 179, 8, .4);
  color: #fde047;
}
.home-rank-empty {
  padding: 24px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* =========================================
   Sidebar Cards
   ========================================= */
.sidebar {
  display: grid;
  align-content: start;
}
/* Server Status Card */
.status-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background-color: rgba(11, 14, 18, .98);
  background-image:
    linear-gradient(155deg, rgba(22, 28, 36, .94) 0%, rgba(8, 11, 15, .97) 52%, rgba(10, 13, 17, 1) 100%),
    url('../img/emblem.png');
  background-position: 0 0, calc(100% + 8px) 52%;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 88px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 32px rgba(0, 0, 0, .25);
}
.status-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.status-card__head h2.status-card__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e5e7eb;
}
.status-card .online-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(53, 233, 99, .12);
  border: 1px solid rgba(53, 233, 99, .35);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-card .online-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.status-card__stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.status-card__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}
.status-card__value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.status-card__value strong {
  color: var(--primary-light);
  font-size: 18px;
}
.status-card__cap {
  color: var(--muted);
  font-size: 13px;
}
.status-progress {
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #b71c1c, var(--primary-light));
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(229, 57, 53, .6);
}
.status-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Server Info Specs in Status Card */
.server-specs-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.server-spec-item {
  display: flex;
  flex-direction: column;
  background: rgba(8, 12, 17, .7);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 5px;
  padding: 7px 10px;
  transition: border-color .15s ease;
}
.server-spec-item:hover {
  border-color: rgba(229, 57, 53, .3);
}
.server-spec-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}
.server-spec-label i {
  color: var(--primary-light);
  font-size: 10px;
}
.server-spec-val {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.server-spec-val.gold-accent {
  color: #fbbf24;
}

/* Countdown Widget */
.countdown-widget {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: linear-gradient(155deg, rgba(18, 23, 30, .98), rgba(7, 10, 14, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 10px 26px rgba(0, 0, 0, .22);
}
.countdown-widget::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229, 57, 53, .52), transparent);
}
.siege-widget-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
}
.siege-widget-icon {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(229, 57, 53, .18);
  border-radius: 8px;
  background: rgba(229, 57, 53, .08);
  color: #d96861;
  font-size: 15px;
}
.siege-widget-heading { flex: 1 1 auto; min-width: 0; }
.siege-widget-kicker {
  color: #8e98a6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.siege-widget-heading h2 {
  margin: 3px 0 0;
  color: #f0f2f5;
  font-size: 14px;
  font-weight: 750;
}
.siege-widget-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .025);
  color: #9da6b2;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.siege-widget-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d96861;
}
.siege-timer-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 12px 12px;
  padding: 12px 10px 13px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 7px;
  background: rgba(0, 0, 0, .16);
}
.siege-timer-label {
  color: #8e98a6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.siege-countdown {
  color: #f0d5d3;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  text-align: center;
}
.siege-countdown span {
  margin-left: 2px;
  color: #ca7771;
  font-size: 11px;
  font-weight: 600;
}
.siege-owner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 12px 0;
  padding: 13px;
  border: 1px solid rgba(229, 57, 53, .22);
  border-left: 3px solid rgba(229, 57, 53, .62);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(139, 28, 19, .12), rgba(255, 255, 255, .025) 58%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 5px 16px rgba(0, 0, 0, .14);
  color: #c5ccd6;
  font-size: 10px;
}
.siege-owner-mark {
  display: inline-flex;
  flex: 0 0 62px;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(229, 57, 53, .28);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
  box-shadow: 0 0 14px rgba(229, 57, 53, .07);
}
.siege-owner-mark img {
  display: block;
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
}
.siege-owner-details {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.siege-owner-label { color: #aeb7c3; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.siege-owner-label i { margin-right: 4px; color: #d96861; }
.siege-owner-details > strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .015em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.siege-owner-details > strong a { color: inherit; }
.siege-owner-details > strong a:hover { color: #ffaaa4; }
.siege-owner-master { overflow: hidden; color: #929daa; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.siege-owner-master i { margin-right: 3px; color: #b86a64; }

/* Ranking Card */
.ranking-card {
  padding: 0;
  overflow: hidden;
}
.event-time-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(10, 13, 17, .96);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.event-time-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .018);
}
.event-time-header h2 {
  margin: 3px 0 0;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .03em;
}
.event-time-kicker {
  color: #98a2af;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.event-time-kicker i { margin-right: 4px; color: #cf746c; }
.event-time-clock {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 5px;
  background: rgba(255, 255, 255, .02);
  color: #929ba8;
  font-size: 9px;
  text-align: right;
}
.event-time-clock i { margin-right: 4px; color: #cf746c; }
.event-time-list {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 2px;
  padding: 8px 12px;
  min-height: 0;
  max-height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #8b302a rgba(255,255,255,.035);
  scrollbar-gutter: stable;
}
.event-time-list::-webkit-scrollbar { width: 6px; }
.event-time-list::-webkit-scrollbar-track { background: rgba(255,255,255,.035); }
.event-time-list::-webkit-scrollbar-thumb { background: #8b302a; border-radius: 6px; }
.event-time-list::-webkit-scrollbar-thumb:hover { background: #b94339; }
.event-time-list:focus-visible { outline: 2px solid var(--primary-light); outline-offset: -2px; }
.event-time-card.is-height-matched .event-time-list { flex: 1; max-height: none; }
.event-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.event-time-row:last-child { border-bottom: 0; }
.event-time-icon {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 6px;
  background: rgba(255, 255, 255, .025);
  color: #c18b86;
  font-size: 12px;
}
.event-time-row:nth-child(2) .event-time-icon { color: #b79ad4; }
.event-time-row:nth-child(3) .event-time-icon { color: #8eadd7; }
.event-time-row:nth-child(4) .event-time-icon { color: #8fc5ba; }
.event-time-row:nth-child(5) .event-time-icon { color: #d2b176; }
.event-time-row:nth-child(6) .event-time-icon { color: #c18b86; }
.event-time-row:hover .event-time-icon { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .045); }
.event-time-info { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; gap: 4px; }
.event-time-info strong { overflow: hidden; color: #e9edf3; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.event-time-label { overflow: hidden; color: #7f8a99; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.event-time-label > span { color: #aab3bf; }
.event-time-countdown {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d2938b;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.event-time-countdown .event-schedule-open,
.event-time-countdown .event-schedule-inprogress {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid rgba(53, 233, 99, .24);
  border-radius: 4px;
  background: rgba(53, 233, 99, .1);
  color: #71f39a;
  font-size: 9px;
  text-transform: uppercase;
}
.event-time-countdown .event-schedule-inprogress {
  border-color: rgba(245, 158, 11, .26);
  background: rgba(245, 158, 11, .1);
  color: #fbbf24;
}
.ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ranking-tabs {
  display: flex;
  gap: 6px;
}
.ranking-tabs button {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}
.ranking-tabs button.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
}
.rank-list-table {
  width: 100%;
  border-collapse: collapse;
}
.rank-list-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.rank-list-table tr:last-child { border-bottom: none; }
.rank-list-table td {
  padding: 10px 14px;
  font-size: 13px;
  vertical-align: middle;
}
.rank-num {
  font-weight: 800;
  color: var(--muted);
  width: 24px;
}
.rank-gold { color: #f59e0b !important; }
.rank-silver { color: #e2e8f0 !important; }
.rank-bronze { color: #b45309 !important; }
.rank-char-name { font-weight: 700; color: #fff; }
.rank-char-lvl { text-align: right; font-weight: 700; color: var(--primary-light); }



/* =========================================
   WebEngine CMS Core & UserCP Styles
   ========================================= */
.main-module-box {
  padding: 24px;
}
.page-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(229, 57, 53, .25);
}
.page-title span {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
}

/* UserCP Dashboard Tiles */
.main-module-box .col-xs-3 {
  margin-bottom: 20px;
}
.main-module-box .row:not(:has(.myaccount-character-block)) > .col-xs-3 > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  background: #0b1015;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: #f4f4f4;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  min-height: 140px;
}
.main-module-box .row:not(:has(.myaccount-character-block)) > .col-xs-3 > a img {
  width: 58px !important;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.6));
  transition: transform .2s ease;
}
.main-module-box .row:not(:has(.myaccount-character-block)) > .col-xs-3 > a:hover {
  background: #121820;
  border-color: var(--primary-light);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.5), 0 0 15px rgba(229, 57, 53, .3);
}
.main-module-box .row:not(:has(.myaccount-character-block)) > .col-xs-3 > a:hover img {
  transform: scale(1.1);
}

/* MyAccount Unified Character Box */
.main-module-box .row:has(.myaccount-character-block) > .col-xs-3 {
  background: #0b1015;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 14px 10px 18px !important;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,.4);
  transition: all .2s ease;
  width: calc(25% - 16px);
  margin-left: 8px;
  margin-right: 8px;
}
.main-module-box .row:has(.myaccount-character-block) > .col-xs-3:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
}
.myaccount-character-name { margin-bottom: 10px; }
.myaccount-character-name a {
  display: inline !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  min-height: auto !important;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
}
.myaccount-character-block {
  background: #05080b;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 6px;
  display: inline-block;
  margin-bottom: 8px;
}
.myaccount-character-block a {
  display: block !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  min-height: auto !important;
  transform: none !important;
}
.myaccount-character-block img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 5px;
}
.myaccount-character-block-location {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.myaccount-character-block-level {
  display: inline-block;
  background: linear-gradient(180deg, var(--primary-light), #7f1d1d);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
  margin-top: 6px;
}

/* UserCP Sidebar Menu (Compact Grid) */
.panel-usercp {
  padding: 0;
  overflow: hidden;
}
.panel-usercp .panel-header {
  padding: 12px 16px;
}
.usercp-compact-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
  padding: 10px !important;
  margin: 0 !important;
  list-style: none !important;
}
.usercp-compact-grid li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.usercp-compact-grid li a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  background: rgba(18, 24, 32, .75) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 6px !important;
  color: #d1d5db !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all .18s ease !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.usercp-compact-grid li a span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.usercp-compact-grid li a .usercp-icon {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)) !important;
}
.usercp-compact-grid li a:hover {
  background: rgba(229, 57, 53, .18) !important;
  border-color: rgba(229, 57, 53, .5) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3) !important;
}

/* Standard WebEngine Tables & Forms */
.table {
  color: var(--text);
  margin-bottom: 0;
}
.table > thead > tr > th {
  background: rgba(229, 57, 53, .12);
  border-bottom: 1px solid rgba(229, 57, 53, .3) !important;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 12px;
}
.table > tbody > tr > td {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 10px 12px;
  vertical-align: middle;
}
.table-hover > tbody > tr:hover > td {
  background: rgba(229, 57, 53, .06) !important;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea,
.form-control {
  background: #080c10 !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  color: #fff !important;
  border-radius: 5px !important;
  padding: 8px 12px !important;
  height: auto !important;
  min-height: 38px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.4) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: var(--primary-light) !important;
  box-shadow: 0 0 10px rgba(229, 57, 53, .4) !important;
  outline: none !important;
}

/* Chrome/Edge Autofill Dark Override */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #080c10 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

input[type="submit"],
button[type="submit"],
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 5px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid rgba(229, 57, 53, 0.4) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, var(--primary-light), #b71c1c 54%, var(--primary-dark)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .15s ease, box-shadow .15s ease;
}
input[type="submit"]:hover,
button[type="submit"]:hover,
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 14px rgba(229, 57, 53, .45);
}

/* Alert Messages */
.alert {
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 18px;
}
.alert-danger {
  background: rgba(185, 28, 28, .2);
  border: 1px solid rgba(239, 68, 68, .4);
  color: #fca5a5;
}
.alert-success {
  background: rgba(22, 101, 52, .2);
  border: 1px solid rgba(34, 197, 94, .4);
  color: #86efac;
}
.alert-warning {
  background: rgba(180, 83, 9, .2);
  border: 1px solid rgba(245, 158, 11, .4);
  color: #fde68a;
}
.alert-info {
  background: rgba(29, 78, 216, .2);
  border: 1px solid rgba(59, 130, 246, .4);
  color: #93c5fd;
}

/* =========================================
   WEBENGINE MODULE: RANKINGS
   ========================================= */
.rankings_menu {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.rankings_menu span {
  width: 100%;
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.rankings_menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 9px 16px;
  background: #090d12;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  transition: all .2s ease;
}
.rankings_menu a:hover {
  background: #141b24;
  border-color: rgba(229, 57, 53, .5);
  color: #fff;
  transform: translateY(-1px);
}
.rankings_menu a.active {
  color: #fff !important;
  background: linear-gradient(180deg, var(--primary-light), #b71c1c 65%, #7f1d1d) !important;
  border-color: rgba(229, 57, 53, .7) !important;
  box-shadow: 0 4px 14px rgba(229, 57, 53, .4);
}

/* Class Filter Icons */
.rankings-class-filter {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none !important;
  margin: 10px auto 26px !important;
  padding: 14px 18px !important;
  border-radius: 8px;
  background: rgba(11, 15, 20, .85);
  border: 1px solid rgba(255, 255, 255, .08);
  gap: 12px;
}
.rankings-class-filter li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.rankings-class-filter-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 68px;
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}
.rankings-class-filter-selection img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 6px;
  border: 2px solid rgba(255, 255, 255, .15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
  background: #000;
  transition: all .2s ease;
}
.rankings-class-filter-selection:hover {
  color: #fff !important;
  transform: translateY(-2px);
}
.rankings-class-filter-selection:hover img {
  border-color: var(--primary-light);
  box-shadow: 0 0 14px rgba(229, 57, 53, .6);
  filter: brightness(115%);
}
.rankings-class-filter-grayscale {
  filter: grayscale(100%) opacity(40%);
}

/* Rankings Table */
.rankings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(11, 15, 20, .85);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.rankings-table tr td {
  border-bottom: 1px solid rgba(255, 255, 255, .05) !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  vertical-align: middle !important;
  text-align: center;
  color: #e2e8f0;
  transition: background .15s ease, color .15s ease;
}
.rankings-table tr:first-child td {
  background: linear-gradient(180deg, rgba(229, 57, 53, .22), rgba(139, 28, 19, .15)) !important;
  border-bottom: 2px solid rgba(229, 57, 53, .6) !important;
  color: #fff !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em;
  padding: 14px 12px !important;
}
.rankings-table tr:nth-child(even):not(:first-child) td {
  background: rgba(255, 255, 255, .015);
}
.rankings-table tr:hover:not(:first-child) td {
  background: rgba(229, 57, 53, .1) !important;
}
.rankings-table-place {
  font-weight: 800 !important;
  font-size: 14px !important;
  text-align: center;
  width: 54px;
  color: #fff;
}
.rankings-table tr:nth-child(2) .rankings-table-place {
  color: #ffd700 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 12px rgba(255, 215, 0, .7);
}
.rankings-table tr:nth-child(3) .rankings-table-place {
  color: #e2e8f0 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 10px rgba(226, 232, 240, .6);
}
.rankings-table tr:nth-child(4) .rankings-table-place {
  color: #cd7f32 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 10px rgba(205, 127, 50, .6);
}
.rankings-class-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
  vertical-align: middle;
  transition: transform .15s ease, border-color .15s ease;
}
.rankings-table tr:hover:not(:first-child) .rankings-class-image {
  transform: scale(1.1);
  border-color: var(--primary-light);
}
.rankings-table a {
  color: #f8fafc;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease;
}
.rankings-table a:hover {
  color: var(--primary-light);
}
.online-status-indicator {
  margin-left: 6px;
  vertical-align: middle;
}
.rankings-update-time {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  padding: 12px 4px 0;
}
.rankings_guild_logo tr td {
  border: 0px !important;
  padding: 0px !important;
  margin: 0px !important;
}
.rankings-gens-img {
  width: auto !important;
  height: 28px !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0px !important;
  vertical-align: middle;
}

/* =========================================
   WEBENGINE MODULE: DOWNLOADS
   ========================================= */
.panel-downloads {
  margin-bottom: 26px;
  background: #090d12;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  overflow: hidden;
}
.panel-downloads .panel-body {
  padding: 20px;
}
.panel-downloads .panel-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .05em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(229, 57, 53, .3);
}
.download-description {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.download-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.download-platform {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(23,29,38,.85), rgba(8,12,17,.9));
}
.download-platform-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #f4f4f4;
  font-size: 14px;
  font-weight: 800;
}
.download-platform-icon {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(229,57,53,.24);
  border-radius: 8px;
  color: #ef706a;
  background: rgba(139,28,19,.15);
}
.download-platform-icon svg {
  display: block;
  width: 19px;
  height: 19px;
}
.download-list { display: grid; gap: 10px; }
.download-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  background: rgba(0,0,0,.18);
}
.download-info { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.download-info strong { color: #f1f3f5; font-size: 13px; }
.download-size { color: #aeb6c1; font-size: 11px; white-space: nowrap; }
.download-action.btn { min-height: 34px; padding: 7px 12px; font-size: 11px; }
.download-empty { margin: 0; color: #939ba8; font-size: 12px; }
@media (max-width: 600px) {
  .download-platforms { grid-template-columns: 1fr; }
}

/* =========================================
   WEBENGINE MODULE: ADD STATS
   ========================================= */
.panel-addstats {
  margin-bottom: 30px;
  background: #090d12;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 20px;
  color: #e2e8f0;
}
.panel-addstats .character-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .15);
}
.panel-addstats .character-name {
  color: #fff;
  font-size: 18px;
  border-bottom: 1px solid rgba(229, 57, 53, .3);
  padding: 10px 0 15px;
  margin-bottom: 20px !important;
  font-weight: 800;
}

/* =========================================
   WEBENGINE MODULE: GENERAL TABLE & MY ACCOUNT
   ========================================= */
.myaccount-table,
.general-table-ui {
  width: 100%;
  background: #090d12;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.myaccount-table tr td,
.general-table-ui tr td {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 12px 16px !important;
  color: #d1d5db;
}
.myaccount-table tr td:first-child {
  color: #fff;
  font-weight: 700;
  width: 35%;
}
.general-table-ui tr:first-child td {
  background: rgba(229, 57, 53, .12);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #030508;
  padding: 40px 0 30px;
  font-size: 13px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
.footer-brand img {
  width: 170px;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.5;
  color: #9ca3af;
  margin-bottom: 14px;
}
.footer h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px 0;
  letter-spacing: .05em;
}
.footer a {
  display: block;
  color: #9ca3af;
  margin-bottom: 8px;
  font-size: 13px;
}
.footer a:hover {
  color: var(--primary-light);
}
.footer .exmu-nav-social-link {
  display: inline-flex;
  margin-bottom: 0;
  color: #dce3ed;
  font-size: 16px;
}
.footer .exmu-nav-social-link:hover,
.footer .exmu-nav-social-link:focus-visible {
  color: #fff;
}
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}
.footer-credits-glint {
  position: relative;
  display: inline-block;
  color: #c5cbd4;
  font-weight: 700;
}
.footer-credits-flash {
  position: absolute;
  inset: 0;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  text-shadow: 0 0 7px rgba(255,255,255,.65);
  animation: footer-credits-glint 5s ease-in-out infinite;
}
@keyframes footer-credits-glint {
  0%, 72%, 88%, 100% { opacity: 0; }
  79% { opacity: 1; }
  83% { opacity: .2; }
  85% { opacity: .65; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-credits-flash { display: none; }
}

/* =========================================
   Shared WebEngine page polish
   ========================================= */
:root {
  --surface-raised: rgba(18, 23, 30, .94);
  --surface-soft: rgba(255, 255, 255, .035);
  --line-strong: rgba(255, 255, 255, .14);
  --accent-glow: 0 8px 24px rgba(0, 0, 0, .28), 0 0 18px rgba(229, 57, 53, .1);
}

.main-module-box {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  color: #d9dee7;
}
.main-module-box > * + * { margin-top: 16px; }
.main-module-box p { line-height: 1.7; }
.main-module-box .page-title {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0 0 22px;
  padding: 0 0 13px;
  border-bottom-color: rgba(229, 57, 53, .32);
  position: relative;
}
.main-module-box .page-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), transparent);
}
.main-module-box .page-title span {
  font-size: clamp(16px, 2vw, 19px);
  letter-spacing: .07em;
}

.main-module-box .form-horizontal { margin: 0; }
.main-module-box .form-group {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 9px;
  background: var(--surface-soft);
}
.main-module-box .control-label {
  padding-top: 10px;
  color: #c4ccd8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.main-module-box .help-block { margin: 8px 0 0; color: #9ca8b8; }
.main-module-box .help-block a,
.main-module-box .text-primary { color: #ff7770; }
.main-module-box .form-control,
.main-module-box input[type="text"],
.main-module-box input[type="password"],
.main-module-box input[type="email"],
.main-module-box input[type="number"],
.main-module-box select,
.main-module-box textarea {
  border-color: rgba(255, 255, 255, .13) !important;
  border-radius: 7px !important;
  background: rgba(4, 7, 11, .78) !important;
}
.main-module-box .form-control:focus,
.main-module-box input:focus,
.main-module-box select:focus,
.main-module-box textarea:focus {
  border-color: rgba(229, 57, 53, .75) !important;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .12), 0 0 16px rgba(229, 57, 53, .12) !important;
}

.main-module-box .btn,
.main-module-box input[type="submit"],
.main-module-box button[type="submit"] {
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 7px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}
.main-module-box .btn-primary,
.main-module-box input[type="submit"],
.main-module-box button[type="submit"] {
  border: 1px solid rgba(255, 112, 104, .42) !important;
  background: linear-gradient(135deg, #db302d, #8b1c13) !important;
  box-shadow: 0 5px 14px rgba(116, 20, 16, .24), inset 0 1px rgba(255, 255, 255, .17);
  color: #fff !important;
}
.main-module-box .btn:hover,
.main-module-box input[type="submit"]:hover,
.main-module-box button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(116, 20, 16, .35), 0 0 16px rgba(229, 57, 53, .15);
}
.main-module-box .btn-xs { min-height: 30px; padding: 5px 10px; }

.main-module-box .alert {
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 8px;
  background: rgba(15, 20, 27, .92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  line-height: 1.55;
}
.main-module-box .alert-danger { border: 1px solid rgba(239, 68, 68, .32); color: #fecaca; }
.main-module-box .alert-success { border: 1px solid rgba(53, 233, 99, .26); color: #bbf7d0; }
.main-module-box .alert-warning { border: 1px solid rgba(245, 158, 11, .3); color: #fde68a; }
.main-module-box .alert-info { border: 1px solid rgba(96, 165, 250, .28); color: #bfdbfe; }

.main-module-box .panel-downloads,
.main-module-box .panel-addstats,
.main-module-box .panel-usercp,
.main-module-box .myaccount-table,
.main-module-box .general-table-ui,
.main-module-box .rankings-table {
  border-color: var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(18, 23, 30, .97), rgba(8, 11, 15, .97));
  box-shadow: var(--accent-glow);
}
.main-module-box .panel-downloads { overflow: hidden; }
.main-module-box .panel-downloads .panel-body { padding: clamp(16px, 2.5vw, 24px); }
.main-module-box .panel-downloads .panel-title { color: #fff; }

/* Downloads page: scoped to the EX Portal template. */
.page-downloads.main-module-box {
  padding: clamp(18px, 2.8vw, 34px);
}
.page-downloads .page-title {
  min-height: 100px;
  margin-bottom: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(229, 57, 53, .24);
  border-radius: 12px;
  background: radial-gradient(ellipse at 90% 10%, rgba(171, 38, 29, .26), transparent 58%), linear-gradient(115deg, #191b22, #0b0f14);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 12px 30px rgba(0, 0, 0, .16);
}
.page-downloads .page-title::before {
  content: "\2193";
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 52px;
  margin-right: 16px;
  border: 1px solid rgba(232, 78, 68, .3);
  border-radius: 10px;
  color: #ffaaa2;
  background: rgba(139, 28, 19, .22);
  font-size: 27px;
  line-height: 1;
}
.page-downloads .page-title::after { display: none; }
.page-downloads .page-title span {
  font-size: clamp(21px, 2.5vw, 29px);
  letter-spacing: .045em;
}
.page-downloads .panel-downloads {
  margin-bottom: 18px;
  border-color: rgba(255, 255, 255, .075);
  background: linear-gradient(145deg, rgba(17, 22, 29, .98), rgba(8, 11, 15, .98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
.page-downloads .panel-downloads .panel-body { padding: clamp(17px, 2.4vw, 26px); }
.page-downloads .panel-downloads .panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  letter-spacing: .1em;
}
.page-downloads .panel-downloads .panel-title::before {
  content: "";
  width: 5px;
  height: 16px;
  border-radius: 4px;
  background: #df5149;
  box-shadow: 0 0 12px rgba(229, 57, 53, .3);
}
.page-downloads .download-platforms { gap: 16px; align-items: stretch; }
.page-downloads .download-platform {
  --platform-accent: #f27770;
  --platform-tint: rgba(229, 57, 53, .16);
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  background: radial-gradient(ellipse at 0 0, var(--platform-tint), transparent 58%), linear-gradient(145deg, #171d25, #0b1016);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.page-downloads .download-platform-4 { --platform-accent: #c1cbd9; --platform-tint: rgba(169, 186, 207, .1); }
.page-downloads .download-platform-5 { --platform-accent: #91cba6; --platform-tint: rgba(78, 162, 107, .13); }
.page-downloads .download-platform-6 { --platform-accent: #87b8e6; --platform-tint: rgba(74, 134, 196, .13); }
.page-downloads .download-platform::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 20px;
  width: 48px;
  height: 2px;
  background: var(--platform-accent);
  opacity: .8;
}
.page-downloads .download-platform:hover,
.page-downloads .download-platform:focus-within {
  border-color: var(--platform-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transform: translateY(-2px);
}
.page-downloads .download-platform-title {
  gap: 14px;
  margin-bottom: 18px;
  font-size: 16px;
  letter-spacing: .02em;
}
.page-downloads .download-platform-icon {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 12px;
  color: var(--platform-accent);
  background: var(--platform-tint);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}
.page-downloads .download-platform-icon svg { width: 23px; height: 23px; }
.page-downloads .download-item {
  gap: 12px;
  padding: 14px;
  border-color: rgba(255, 255, 255, .06);
  border-radius: 8px;
  background: rgba(4, 7, 10, .44);
}
.page-downloads .download-info strong { font-size: 13px; line-height: 1.4; }
.page-downloads .download-description { color: #a8b0bc; line-height: 1.5; }
.page-downloads .download-size {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 5px;
  background: rgba(255, 255, 255, .035);
  color: #b8c0ca;
}
.page-downloads .download-action.btn {
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 6px;
  letter-spacing: .04em;
}
.page-downloads .download-action.btn::after {
  content: "\2197";
  margin-left: 2px;
  font-size: 14px;
  line-height: 1;
}
.page-downloads .download-action.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.page-downloads .download-empty {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 8px;
  color: #a0a9b5;
  background: rgba(4, 7, 10, .25);
}
@media (max-width: 600px) {
  .page-downloads .page-title { min-height: 78px; padding: 15px 16px; }
  .page-downloads .page-title::before { flex-basis: 42px; height: 42px; font-size: 22px; }
  .page-downloads .download-platform { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-downloads .download-platform { transition: none; }
  .page-downloads .download-platform:hover,
  .page-downloads .download-platform:focus-within { transform: none; }
}
.main-module-box .table > tbody > tr > td { border-top-color: rgba(255, 255, 255, .075); }
.main-module-box .table > tbody > tr:hover > td { background: rgba(255, 255, 255, .025); }
.main-module-box .table a { color: #ff817a; }
.main-module-box .table a:hover { color: #fff; }
.main-module-box .myaccount-table tr td,
.main-module-box .general-table-ui tr td { line-height: 1.55; }
.main-module-box .myaccount-table tr td:last-child a { margin-left: 8px; }

/* Keep UserCP character cards at their intended grid size. */
.main-module-box .row:has(.myaccount-character-block) > .col-xs-3 {
  width: 25% !important;
  height: auto !important;
  min-height: 220px;
  flex-shrink: 1 !important;
  padding: 16px 12px 18px !important;
  border-color: rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(20, 26, 34, .98), rgba(8, 11, 15, .98));
  filter: none !important;
}
.main-module-box .row:has(.myaccount-character-block) > .col-xs-3:hover {
  border-color: rgba(229, 57, 53, .48);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .34), 0 0 16px rgba(229, 57, 53, .1);
  transform: translateY(-2px);
}
.main-module-box .myaccount-character-block { max-width: 100%; }

@media (max-width: 767px) {
  .main-module-box { padding: 18px 15px; }
  .main-module-box .form-horizontal .form-group { padding: 12px; }
  .main-module-box .form-horizontal .control-label { text-align: left; padding: 0 0 8px; }
  .main-module-box .row:has(.myaccount-character-block) > .col-xs-3 {
    width: 50% !important;
    min-height: 205px;
  }
  .main-module-box .myaccount-table tr td,
  .main-module-box .general-table-ui tr td { padding: 10px 11px !important; }
}
@media (max-width: 480px) {
  .main-module-box { padding: 16px 12px; }
  .main-module-box .form-group { margin-inline: 0; }
  .main-module-box .row:has(.myaccount-character-block) > .col-xs-3 {
    width: 100% !important;
    min-height: 0;
  }
  .main-module-box .myaccount-table tr td:first-child { width: 38%; }
  .main-module-box .myaccount-table tr td:last-child a { margin: 5px 0 0; }
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .hero { background-position: 70% top; }
  .hero::before { background: linear-gradient(180deg, rgba(4,7,10,.65), rgba(4,7,10,.7) 65%, #05080b 100%); }
  .hero-copy { width: 100%; padding-top: 100px; text-align: center; }
  .hero-actions { justify-content: center; }
  .feature-strip { grid-template-columns: 1fr; margin-top: 20px; }
  .feature-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .content-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Login and registration forms */
.main-module-box:has(#webengineLogin1) > .col-xs-8,
.main-module-box:has(#webengineRegistration1) > .col-xs-8 {
  float: none;
  width: min(100%, 700px);
  margin: 30px auto 10px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(17, 22, 29, .97), rgba(8, 11, 15, .98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .035);
}
.main-module-box:has(#webengineLogin1) .form-horizontal,
.main-module-box:has(#webengineRegistration1) .form-horizontal { margin: 0; }
.main-module-box:has(#webengineLogin1) .form-group,
.main-module-box:has(#webengineRegistration1) .form-group {
  margin: 0 0 18px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  border-radius: 0;
  background: transparent;
}
.main-module-box:has(#webengineLogin1) .form-group:last-child,
.main-module-box:has(#webengineRegistration1) .form-group:last-child {
  margin: 0;
  padding: 4px 0 0;
  border-bottom: 0;
}
.main-module-box:has(#webengineLogin1) .control-label,
.main-module-box:has(#webengineRegistration1) .control-label {
  color: #c1c9d3;
  font-size: 11px;
  letter-spacing: .06em;
}
.main-module-box:has(#webengineLogin1) .form-control,
.main-module-box:has(#webengineRegistration1) .form-control {
  min-height: 44px;
  border-color: rgba(255, 255, 255, .12) !important;
  border-radius: 7px !important;
  background: rgba(3, 6, 10, .55) !important;
}
.main-module-box:has(#webengineLogin1) .help-block,
.main-module-box:has(#webengineRegistration1) .help-block {
  color: #929dab;
  font-size: 11px;
  line-height: 1.55;
}
.main-module-box:has(#webengineLogin1) .help-block a,
.main-module-box:has(#webengineRegistration1) a { color: #d87972; }
.main-module-box:has(#webengineLogin1) .help-block a:hover,
.main-module-box:has(#webengineRegistration1) a:hover { color: #ffaaa4; }
.main-module-box:has(#webengineLogin1) button[type="submit"],
.main-module-box:has(#webengineRegistration1) button[type="submit"] {
  min-height: 44px;
  min-width: 180px;
  padding: 11px 22px;
  border-radius: 7px;
  letter-spacing: .045em;
}
.main-module-box:has(#webengineRegistration1) .g-recaptcha {
  overflow: hidden;
  max-width: 100%;
}
@media (max-width: 767px) {
  .main-module-box:has(#webengineLogin1) > .col-xs-8,
  .main-module-box:has(#webengineRegistration1) > .col-xs-8 {
    width: 100%;
    margin: 20px 0 8px;
    padding: 20px 16px;
  }
  .main-module-box:has(#webengineLogin1) .form-group,
  .main-module-box:has(#webengineRegistration1) .form-group { padding: 0 0 14px; }
  .main-module-box:has(#webengineLogin1) .form-horizontal .control-label,
  .main-module-box:has(#webengineRegistration1) .form-horizontal .control-label {
    padding: 0 0 7px;
    text-align: left;
  }
  .main-module-box:has(#webengineLogin1) button[type="submit"],
  .main-module-box:has(#webengineRegistration1) button[type="submit"] { width: 100%; }
}

/* News list and article detail */
.main-module-box .panel-news {
  position: relative;
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  background: linear-gradient(150deg, rgba(17, 22, 29, .98), rgba(8, 11, 15, .98));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .025);
}
.main-module-box .panel-news::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 18px;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), rgba(229, 57, 53, .12));
}
.main-module-box .panel-news > .panel-heading {
  padding: 19px 22px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
  background: rgba(255, 255, 255, .018);
}
.main-module-box .panel-news .panel-title {
  color: #f3f5f8;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 750;
  line-height: 1.4;
  white-space: normal;
}
.main-module-box .panel-news .panel-title a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}
.main-module-box .panel-news .panel-title a:hover { color: #ff918a; }
.main-module-box .panel-news > .panel-body {
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 24px);
  color: #c5ccd6;
  font-size: 14px;
  line-height: 1.8;
}
.main-module-box .panel-news > .panel-body > :first-child { margin-top: 0; }
.main-module-box .panel-news > .panel-body > :last-child { margin-bottom: 0; }
.main-module-box .panel-news .panel-body p { margin: 0 0 15px; color: #c5ccd6; line-height: 1.8; }
.main-module-box .panel-news .panel-body h1,
.main-module-box .panel-news .panel-body h2,
.main-module-box .panel-news .panel-body h3,
.main-module-box .panel-news .panel-body h4 {
  margin: 22px 0 10px;
  color: #f0f2f5;
  font-weight: 700;
  line-height: 1.35;
}
.main-module-box .panel-news .panel-body a:not(.news-readmore) {
  color: #e8837d;
  text-decoration: underline;
  text-decoration-color: rgba(232, 131, 125, .35);
  text-underline-offset: 3px;
}
.main-module-box .panel-news .panel-body a:not(.news-readmore):hover { color: #ffb2ad; }
.main-module-box .panel-news .panel-body ul,
.main-module-box .panel-news .panel-body ol { margin: 0 0 16px; padding-left: 24px; }
.main-module-box .panel-news .panel-body li { margin: 5px 0; }
.main-module-box .panel-news .panel-body blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid rgba(229, 57, 53, .55);
  background: rgba(255, 255, 255, .025);
  color: #aeb7c3;
}
.main-module-box .panel-news .panel-body img,
.main-module-box .panel-news .panel-body video,
.main-module-box .panel-news .panel-body iframe {
  max-width: 100%;
  border-radius: 7px;
}
.main-module-box .panel-news .panel-body img {
  height: auto;
  margin: 16px auto;
  border: 1px solid rgba(255, 255, 255, .09);
}
.main-module-box .panel-news .panel-body table {
  max-width: 100%;
  overflow-x: auto;
  border-color: rgba(255, 255, 255, .08);
}
.main-module-box .panel-news .news-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 5px;
  padding: 8px 13px;
  border: 1px solid rgba(229, 57, 53, .24);
  border-radius: 6px;
  background: rgba(139, 28, 19, .12);
  color: #e88a84;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.main-module-box .panel-news .news-readmore:hover {
  border-color: rgba(229, 57, 53, .42);
  background: rgba(139, 28, 19, .22);
  color: #fff;
}
.main-module-box .panel-news > .panel-footer {
  display: flex;
  justify-content: flex-end;
  min-height: 42px;
  padding: 11px 20px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .12);
  color: #8993a0;
  font-size: 10px;
  letter-spacing: .025em;
}
.main-module-box .panel-news > .panel-footer .col-xs-6:first-child { display: none; }
.main-module-box .panel-news > .panel-footer .col-xs-6:last-child {
  float: none;
  width: auto;
  padding: 0;
}
@media (max-width: 600px) {
  .main-module-box .panel-news { margin-bottom: 15px; }
  .main-module-box .panel-news > .panel-heading { padding: 16px 17px 13px; }
  .main-module-box .panel-news > .panel-body { padding: 17px; font-size: 13px; }
  .main-module-box .panel-news > .panel-footer { padding: 10px 16px; }
}

/* Editorial refinements for news cards */
.main-module-box .panel-news {
  transition: border-color .18s ease;
}
.main-module-box .panel-news:hover {
  border-color: rgba(255, 255, 255, .14);
}
.main-module-box .panel-news > .panel-heading {
  padding-top: 19px;
  background: rgba(255, 255, 255, .012);
}
.main-module-box .panel-news > .panel-heading::before {
  content: none;
}
.main-module-box .panel-news .panel-title { max-width: 900px; }
.main-module-box .panel-news > .panel-body {
  background: transparent;
}
.main-module-box .panel-news .panel-body > p:first-child {
  color: #c5ccd6;
  font-size: 14px;
}
.main-module-box .panel-news .panel-body > p strong { color: #f0f2f5; }
.main-module-box .panel-news .panel-body hr {
  height: 1px;
  border: 0;
  background: rgba(255, 255, 255, .08);
}
.main-module-box .panel-news .panel-body pre,
.main-module-box .panel-news .panel-body code {
  border-color: rgba(255, 255, 255, .08);
  border-radius: 5px;
  background: rgba(0, 0, 0, .28);
  color: #e5a09b;
}
.main-module-box .panel-news > .panel-footer {
  min-height: 44px;
  background: rgba(0, 0, 0, .16);
}
.main-module-box .panel-news > .panel-footer .col-xs-6:last-child::before {
  content: "\f073";
  margin-right: 7px;
  color: #9a6763;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
@media (max-width: 600px) {
  .main-module-box .panel-news > .panel-heading { padding-top: 16px; }
}

/* Server information page */
.main-module-box:has(iframe[src*="youtube.com"]) {
  --info-surface: var(--panel-soft, rgba(127, 127, 127, .06));
  --info-border: rgba(127, 127, 127, .2);
  --info-muted: var(--muted, #929aa5);
  color: #e4e9f0;
}
.main-module-box:has(iframe[src*="youtube.com"]) > br { display: none; }
.main-module-box:has(iframe[src*="youtube.com"]) > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 13px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--info-border);
  color: #f3f5f8;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: .025em;
}
.main-module-box:has(iframe[src*="youtube.com"]) > h2::before {
  content: "";
  flex: 0 0 3px;
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: var(--primary-light, #a34a45);
}
.main-module-box:has(iframe[src*="youtube.com"]) > table.table {
  width: 100%;
  margin: 0 0 18px;
  border: 1px solid var(--info-border);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--info-surface);
  color: #e4e9f0;
  overflow: hidden;
}
.main-module-box:has(iframe[src*="youtube.com"]) > table.table > thead > tr > th,
.main-module-box:has(iframe[src*="youtube.com"]) > table.table > tbody > tr > td {
  padding: 12px 15px;
  border-color: var(--info-border);
  color: #e4e9f0 !important;
  line-height: 1.55;
  vertical-align: middle;
}
.main-module-box:has(iframe[src*="youtube.com"]) > table.table > thead > tr > th {
  background: rgba(127, 127, 127, .12);
  color: #fff !important;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.main-module-box:has(iframe[src*="youtube.com"]) > table.table > tbody > tr:nth-child(even) > td {
  background: rgba(127, 127, 127, .055);
}
.main-module-box:has(iframe[src*="youtube.com"]) > table.table > tbody > tr:hover > td {
  background: rgba(127, 127, 127, .12);
}
/* The Chaos Machine and party rate tables have two header rows. */
.main-module-box:has(iframe[src*="youtube.com"]) > table.table:nth-of-type(2) > tbody > tr:nth-child(-n+2) > td,
.main-module-box:has(iframe[src*="youtube.com"]) > table.table:nth-of-type(3) > tbody > tr:nth-child(-n+2) > td {
  background: rgba(127, 127, 127, .12);
  color: #fff !important;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .035em;
}
.main-module-box:has(iframe[src*="youtube.com"]) > table.table:nth-of-type(2) > tbody > tr:nth-child(n+3) > td:first-child,
.main-module-box:has(iframe[src*="youtube.com"]) > table.table:nth-of-type(3) > tbody > tr:nth-child(n+3) > td:first-child,
.main-module-box:has(iframe[src*="youtube.com"]) > table.table:nth-of-type(4) > tbody > tr > td:first-child {
  color: inherit;
  font-weight: 700;
}
.main-module-box:has(iframe[src*="youtube.com"]) > table.table:nth-of-type(4) > tbody > tr > td:first-child {
  width: 34%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--primary-light, #c9756f);
}
.main-module-box:has(iframe[src*="youtube.com"]) > iframe[src*="youtube.com"] {
  display: block;
  width: 100% !important;
  max-width: 760px;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 1px solid var(--info-border);
  border-radius: 8px;
  background: var(--info-surface);
}
@media (max-width: 600px) {
  .main-module-box:has(iframe[src*="youtube.com"]) > h2 { margin-top: 22px; font-size: 15px; }
  .main-module-box:has(iframe[src*="youtube.com"]) > table.table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .main-module-box:has(iframe[src*="youtube.com"]) > table.table > thead > tr > th,
  .main-module-box:has(iframe[src*="youtube.com"]) > table.table > tbody > tr > td { padding: 10px 12px; }
}

/* Keep Info page colors independent from shared module table rules. */
.main-module-box.page-info { color: #e4e9f0; }
.main-module-box.page-info > h2 { color: #f3f5f8 !important; }
.main-module-box.page-info > table.table {
  color: #e4e9f0 !important;
  background: #111820 !important;
  border-color: #35404d !important;
}
.main-module-box.page-info > table.table > thead > tr > th,
.main-module-box.page-info > table.table > tbody > tr > td {
  color: #e4e9f0 !important;
  border-color: #35404d !important;
}
.main-module-box.page-info > table.table > thead > tr > th,
.main-module-box.page-info > table.table:nth-of-type(2) > tbody > tr:nth-child(-n+2) > td,
.main-module-box.page-info > table.table:nth-of-type(3) > tbody > tr:nth-child(-n+2) > td {
  color: #fff !important;
  background: #202832 !important;
}
.main-module-box.page-info > table.table > tbody > tr:nth-child(even) > td {
  background: #151d26 !important;
}
.main-module-box.page-info > table.table > tbody > tr:nth-child(odd) > td {
  background: #10161e !important;
  color: #e4e9f0 !important;
}
.main-module-box.page-info > table.table:nth-of-type(2) > tbody > tr:nth-child(-n+2) > td,
.main-module-box.page-info > table.table:nth-of-type(3) > tbody > tr:nth-child(-n+2) > td {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.45;
}
.main-module-box.page-info > table.table:nth-of-type(2) > tbody > tr:first-child > td:nth-child(2),
.main-module-box.page-info > table.table:nth-of-type(3) > tbody > tr:first-child > td:nth-child(2) {
  font-size: 16px !important;
  letter-spacing: .015em;
}
.main-module-box.page-info > table.table > tbody > tr:hover > td {
  background: #232d38 !important;
}
.main-module-box.page-info > iframe {
  display: block;
  width: 100% !important;
  max-width: 760px;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}
