/*!
 * xGunZ — Dark Military Cyberpunk Theme
 * Built on WebEngine CMS 1.2.x / Bootstrap 3
 */

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --clr-bg:           #070710;
  --clr-panel:        #0d0d1e;
  --clr-panel-edge:   #12122a;
  --clr-surface:      #111130;
  --clr-red:          #1d8c1d;
  --clr-red-bright:   #39ff14;
  --clr-red-glow:     rgba(57,255,20,0.35);
  --clr-blue:         #00b4d8;
  --clr-gold:         #ffd700;
  --clr-silver:       #c0c0c0;
  --clr-bronze:       #cd7f32;
  --clr-text:         #c8cfe0;
  --clr-text-dim:     #6a7290;
  --clr-text-bright:  #eef1fa;
  --clr-border:       rgba(57,255,20,0.18);
  --clr-border-red:   rgba(57,255,20,0.4);
  --font-ui:          'Rajdhani', 'Arial Narrow', sans-serif;
  --font-mono:        'Share Tech Mono', 'Courier New', monospace;
  --container-max:    1280px;
  --glow-red:         0 0 12px rgba(57,255,20,0.35), 0 0 30px rgba(57,255,20,0.15);
  --glow-blue:        0 0 12px rgba(0,180,216,0.30);
}

/* =========================================================
   KEYFRAME ANIMATIONS
   ========================================================= */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroRenderEntry {
  from { opacity: 0; transform: translateX(60px); filter: brightness(0); }
  to   { opacity: 0.92; transform: translateX(0); filter: brightness(1); }
}

@keyframes glitchSkew {
  0%   { clip-path: inset(40% 0 61% 0); transform: skew(0.1deg); }
  20%  { clip-path: inset(92% 0 1% 0);  transform: skew(0.4deg); }
  40%  { clip-path: inset(43% 0 1% 0);  transform: skew(0.3deg); }
  60%  { clip-path: inset(25% 0 58% 0); transform: skew(0.5deg); }
  80%  { clip-path: inset(54% 0 7% 0);  transform: skew(0.2deg); }
  100% { clip-path: inset(58% 0 43% 0); transform: skew(0.1deg); }
}

@keyframes statPulse {
  0%   { text-shadow: 0 0 4px var(--clr-red); }
  50%  { text-shadow: 0 0 18px var(--clr-red-bright), 0 0 30px rgba(255,36,36,0.4); }
  100% { text-shadow: 0 0 4px var(--clr-red); }
}

@keyframes logoReveal {
  from { opacity: 0; transform: scale(0.9); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1);   filter: blur(0); }
}

@keyframes glowBreathe {
  0%   { box-shadow: 0 0 5px rgba(196,30,30,0.1); }
  50%  { box-shadow: var(--glow-red); }
  100% { box-shadow: 0 0 5px rgba(196,30,30,0.1); }
}

@keyframes siegeFlash {
  0%, 100% { color: var(--clr-red-bright); text-shadow: 0 0 14px var(--clr-red); }
  50%       { color: var(--clr-gold);       text-shadow: 0 0 14px var(--clr-gold); }
}

@keyframes onlinePulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,180,216,0.7); }
  70%  { box-shadow: 0 0 0 6px rgba(0,180,216,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,180,216,0); }
}

/* =========================================================
   BASE RESET
   ========================================================= */
html {
  margin: 0;
  padding: 0;
  background: var(--clr-bg);
  overflow-x: hidden;
  min-height: 100%;
}

body {
  background-color: var(--clr-bg);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.15) 2px,
      rgba(0,0,0,0.15) 4px
    );
  color: var(--clr-text);
  font-family: var(--font-ui);
  font-size: 15px;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color .3s ease, color .3s ease;
}

.footer { margin-top: auto; }

/* Hide cron iframe */
iframe.errorbox { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a0505; }
::-webkit-scrollbar-thumb { background: var(--clr-red); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-red-bright); }

a {
  color: var(--clr-text-dim);
  text-decoration: none;
  transition: all .2s ease-in;
}
a:hover {
  color: var(--clr-text-bright) !important;
  text-decoration: none !important;
}

img { border: 0; }

input[type=text],
input[type=password],
input[type=number] {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border-red);
  color: var(--clr-text);
  font-family: var(--font-mono);
  border-radius: 2px;
  padding: 6px 10px;
}
input[type=text]:focus,
input[type=password]:focus,
input[type=number]:focus {
  border-color: var(--clr-red-bright);
  box-shadow: 0 0 8px var(--clr-red-glow);
  outline: none;
}

/* =========================================================
   LAYOUT — CONTAINER
   ========================================================= */
#container {
  background: var(--clr-panel);
  width: 100%;
  max-width: var(--container-max);
  height: auto;
  margin: 0 auto;
  padding: 20px 0;
  border-radius: 4px 4px 0 0;
  border: 1px solid var(--clr-border);
  border-top: none;
}

#content {
  width: 100%;
  overflow: auto;
  min-height: 500px;
  padding: 10px 20px 0;
}

/* Full-width container wrapper */
.container-fluid,
.container {
  max-width: var(--container-max);
  padding-left:  clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

/* =========================================================
   GLOBAL TOP BAR
   ========================================================= */
.global-top-bar {
  width: 100%;
  background: #050508;
  color: #555;
  padding: 5px 0;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(196,30,30,0.1);
}
.global-top-bar .global-top-bar-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,40px);
}
.global-top-bar .global-top-bar-content .row {
  margin: 0;
  padding: 0;
}
.global-top-bar a { color: #555 !important; }
.global-top-bar a:hover { color: var(--clr-text-bright) !important; }
.global-top-bar a.logout { color: var(--clr-red) !important; }
.global-top-bar a.logout:hover { color: var(--clr-red-bright) !important; }
.global-top-bar-nopadding { padding: 0 !important; }
.global-top-bar-separator { padding: 0 5px; color: #333; }

/* =========================================================
   LANGUAGE PICKER
   ========================================================= */
.webengine-language-switcher {
  display: inline-block;
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  width: 46px;
  height: 19px;
  overflow: hidden;
  transition: all .3s ease;
}
.webengine-language-switcher:hover { width: 400px; }
.webengine-language-switcher li {
  display: inline-block;
  list-style-type: none;
  background: #1a1a2e;
  padding: 0 5px 2px;
  border-radius: 3px;
  transition: all .3s ease;
}
.webengine-language-switcher li:hover { filter: brightness(130%); }
.webengine-language-switcher li a { color: #666; }
.webengine-language-switcher li a:hover { color: #fff !important; }

/* =========================================================
   NAVIGATION BAR
   ========================================================= */
/* -------------------------------------------------------
   NAVBAR LOGO
   ------------------------------------------------------- */
.nav-logo {
  display: flex;
  align-items: center;
  padding: 0 20px 0 16px;
  border-right: 1px solid rgba(57,255,20,0.25);
  flex-shrink: 0;
  text-decoration: none !important;
}
.nav-logo img {
  height: 36px;
  display: block;
  transition: filter .3s ease, opacity .3s ease;
}
.nav-logo:hover img { opacity: 0.85; }

/* Dark theme: show logo-02, hide logo-01.
   Use img. prefix for specificity (0,1,1) to beat .nav-logo img rule */
img.nav-logo-dark  { display: block; }
img.nav-logo-light { display: none !important; }

/* Light theme: show logo-01, hide logo-02 */
[data-theme="light"] img.nav-logo-dark  { display: none !important; }
[data-theme="light"] img.nav-logo-light { display: block !important; }

/* Green separator tint on logo in both themes */
.nav-logo {
  background: linear-gradient(90deg, rgba(57,255,20,0.07) 0%, transparent 100%);
}

#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(7,7,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(57,255,20,0.45);
  box-shadow: 0 2px 20px rgba(57,255,20,0.12);
  transition: background .3s ease, box-shadow .3s ease;
}
#navbar.scrolled {
  background: rgba(7,7,16,0.98);
  box-shadow: 0 2px 30px rgba(57,255,20,0.25);
}
#navbar ul {
  flex: 1;
  text-align: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* -------------------------------------------------------
   COMPACT PAGE BANNER (non-home, non-hero pages)
   ------------------------------------------------------- */
.page-banner {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,0.5), transparent);
}
.page-banner-line { display: none; }

/* -------------------------------------------------------
   HERO LOGIN FORM CARD
   ------------------------------------------------------- */
.hero-form-card {
  margin-top: 28px;
  background: rgba(7,7,16,0.75);
  border: 1px solid var(--clr-border-red);
  border-left: 3px solid var(--clr-red-bright);
  backdrop-filter: blur(12px);
  padding: 28px 28px 22px;
  max-width: 360px;
  width: 100%;
}
.hero-form-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-form-card input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--clr-border-red);
  color: var(--clr-text-bright);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 14px;
  letter-spacing: 1px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
}
.hero-form-card input::placeholder { color: var(--clr-text-dim); }
.hero-form-card input:focus {
  border-color: var(--clr-red-bright);
  box-shadow: 0 0 8px var(--clr-red-glow);
}
.hero-form-card button[type="submit"] {
  background: var(--clr-red-bright);
  color: #070710;
  border: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 12px;
  cursor: pointer;
  transition: filter .2s, box-shadow .2s;
  margin-top: 4px;
}
.hero-form-card button[type="submit"]:hover {
  filter: brightness(1.15);
  box-shadow: var(--glow-red);
}
.hero-form-error {
  background: rgba(196,30,30,0.15);
  border-left: 3px solid var(--clr-red-bright);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--clr-red-bright);
  margin-bottom: 12px;
}
.hero-form-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero-form-links a {
  font-size: 11px;
  color: var(--clr-text-dim);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color .2s;
}
.hero-form-links a:hover { color: var(--clr-red-bright); }

/* -------------------------------------------------------
   REGISTER FORM CARD EXTENSIONS
   ------------------------------------------------------- */
.hero-register-card { max-width: 520px; }

.reg-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.reg-field-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--clr-red-bright);
  text-transform: uppercase;
}
.reg-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.reg-tos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--clr-text-dim);
}
.reg-tos input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--clr-red-bright);
  flex-shrink: 0;
}
.reg-tos label { cursor: pointer; margin: 0; }
.reg-tos a {
  color: var(--clr-red-bright);
  text-decoration: none;
}
.reg-tos a:hover { text-decoration: underline; }

.hero-form-alert {
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 16px;
  border-left: 3px solid;
}
.hero-form-alert--error {
  background: rgba(196,30,30,0.12);
  border-color: var(--clr-red-bright);
  color: var(--clr-red-bright);
}
.hero-form-alert--success {
  background: rgba(57,255,20,0.10);
  border-color: #39ff14;
  color: #39ff14;
}

/* -------------------------------------------------------
   HERO DOWNLOAD LIST
   ------------------------------------------------------- */
.hero-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-stat-single {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 24px;
}
#navbar ul li {
  display: inline-block;
  font-size: 13px;
  position: relative;
}
#navbar ul li a {
  display: inline-block;
  color: var(--clr-text) !important;
  text-decoration: none;
  padding: 18px 24px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all .3s ease;
  position: relative;
}
#navbar ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--clr-red-bright);
  box-shadow: 0 0 8px var(--clr-red);
  transition: all .3s ease;
  transform: translateX(-50%);
}
#navbar ul li a:hover,
#navbar ul li a:active,
#navbar ul li a:focus {
  color: var(--clr-red-bright) !important;
  text-shadow: 0 0 10px var(--clr-red);
  text-decoration: none;
}
#navbar ul li a:hover::after { width: 100%; }

.admincp-button {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--clr-red) !important;
  border: 2px solid var(--clr-red-bright) !important;
  color: #fff !important;
  font-weight: bold !important;
  font-family: var(--font-ui) !important;
  letter-spacing: 1px;
  border-radius: 2px !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--clr-red);
  color: var(--clr-text);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 18px;
  margin: 10px;
  font-family: var(--font-ui);
  letter-spacing: 1px;
}

/* =========================================================
   HEADER (legacy — hidden when hero is visible)
   ========================================================= */
#header {
  width: 100%;
  margin: 0 auto;
  padding: 60px 0 10px;
  text-align: center;
  color: #fff;
}
.webengine-mu-logo {
  filter: drop-shadow(0 0 8px var(--clr-red));
  transition: all .3s ease;
}
.webengine-mu-logo:hover { filter: drop-shadow(0 0 14px var(--clr-red-bright)) brightness(1.2); }

/* =========================================================
   HEADER INFO (server time / online bar)
   ========================================================= */
.header-info-container {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: right;
  padding: 0 clamp(16px,4vw,40px);
}
.header-info-container .header-info {
  display: inline-block;
  width: 350px;
  background: rgba(13,13,30,0.85);
  backdrop-filter: blur(6px);
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--clr-border);
  border-top: none;
  border-radius: 0 0 4px 4px;
  color: var(--clr-text);
  font-family: var(--font-mono);
  font-size: 11px;
}
.header-info-container .header-info .header-info-block { padding: 0; color: var(--clr-text-dim); }
.header-info-container .header-info .header-info-block #tServerTime,
.header-info-container .header-info .header-info-block #tLocalTime { color: var(--clr-text-bright); }
.header-info-container .header-info .header-info-block #tServerDate,
.header-info-container .header-info .header-info-block #tLocalDate { color: var(--clr-text-dim); }
.header-info-container .header-info .header-info-block .online-count { color: var(--clr-blue); }

/* Online progress bar */
.webengine-online-bar {
  width: 100%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(196,30,30,0.3);
  height: 6px;
  margin: 8px 0;
  border-radius: 3px;
  overflow: hidden;
  transition: all .3s ease;
}
.webengine-online-bar .webengine-online-bar-progress {
  height: 6px;
  background: linear-gradient(90deg, var(--clr-red), var(--clr-red-bright));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--clr-red-glow);
}
.webengine-online-bar:hover { filter: brightness(1.2); }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #070710 0%, #0d0010 50%, #070710 100%);
}

/* Red diagonal accent stripe */
.hero-section::before {
  content: '';
  position: absolute;
  top: -20%; right: 28%;
  width: 4px; height: 200%;
  background: linear-gradient(180deg, transparent, rgba(196,30,30,0.5), transparent);
  transform: rotate(15deg);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: -20%; right: 26%;
  width: 1px; height: 200%;
  background: linear-gradient(180deg, transparent, rgba(196,30,30,0.25), transparent);
  transform: rotate(15deg);
  pointer-events: none;
}

/* Hero diagonal overlay div */
.hero-diagonal {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(196,30,30,0.04) 100%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

/* Character render */
.hero-render {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 95vh;
  max-height: 900px;
  opacity: 0.92;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  animation: heroRenderEntry 1.2s ease 0.3s both;
  filter: drop-shadow(-20px 0 40px rgba(196,30,30,0.3));
}

/* Hero left content */
.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 80px;
  padding-bottom: 80px;
  max-width: 580px;
}

/* Readability overlay behind hero content */
.hero-content::before {
  content: '';
  position: absolute;
  inset: -32px -48px -32px -48px;
  background: linear-gradient(
    105deg,
    rgba(7,7,16,0.88) 0%,
    rgba(7,7,16,0.72) 60%,
    transparent 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
  pointer-events: none;
}

.hero-logo {
  margin-bottom: 24px;
}
.hero-logo img {
  filter: drop-shadow(0 0 12px var(--clr-red)) drop-shadow(0 0 30px rgba(196,30,30,0.3));
}

.hero-tagline {
  font-family: var(--font-ui);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  margin-bottom: 36px;
  animation-fill-mode: both;
}

/* Hero stats row */
.hero-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  animation-fill-mode: both;
  flex-wrap: wrap;
}

.hero-stat {
  background: rgba(13,13,30,0.7);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-red);
  padding: 14px 20px;
  min-width: 110px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: bold;
  color: var(--clr-red-bright);
  animation: statPulse 3s ease infinite;
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  margin-top: 4px;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation-fill-mode: both;
}

.btn-hero-primary {
  display: inline-block;
  background: var(--clr-red);
  color: #fff !important;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 32px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all .25s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.btn-hero-primary:hover {
  background: var(--clr-red-bright) !important;
  box-shadow: var(--glow-red);
  color: #fff !important;
}

.btn-hero-secondary {
  display: inline-block;
  background: rgba(57,255,20,0.08);
  color: var(--clr-red-bright) !important;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 13px 30px;
  border: 1px solid var(--clr-red-bright);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all .25s ease;
  text-shadow: 0 0 8px var(--clr-red-glow);
}
.btn-hero-secondary:hover {
  background: rgba(57,255,20,0.18) !important;
  box-shadow: var(--glow-red);
  color: var(--clr-red-bright) !important;
}

.btn-hero-ghost {
  display: inline-block;
  background: rgba(0,0,0,0.35);
  color: var(--clr-text-bright) !important;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 20px;
  border: 1px solid rgba(200,207,224,0.35);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all .25s ease;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: var(--clr-text-bright);
  color: #fff !important;
}

/* Animation delay utilities */
.anim-delay-1 { animation-delay: 0.4s !important; }
.anim-delay-2 { animation-delay: 0.65s !important; }
.anim-delay-3 { animation-delay: 0.85s !important; }

/* =========================================================
   CLASSES STRIP
   ========================================================= */
.classes-strip {
  background: var(--clr-panel);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 40px 0;
  overflow: hidden;
}

.strip-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  text-align: center;
  margin-bottom: 30px;
}
.strip-title::before,
.strip-title::after {
  content: '——';
  padding: 0 12px;
  color: var(--clr-red);
  opacity: 0.5;
}

.classes-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.class-card {
  position: relative;
  width: 140px;
  height: 180px;
  overflow: hidden;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-left: 2px solid var(--clr-red);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all .3s ease;
  cursor: pointer;
}
.class-card:hover {
  border-color: var(--clr-red-bright);
  box-shadow: var(--glow-red);
  transform: translateY(-4px);
}
.class-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: all .4s ease;
}
.class-card:hover img { transform: scale(1.05); filter: brightness(1.1); }
.class-card-name {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-text);
  text-align: center;
  padding: 8px 4px;
  background: rgba(13,13,30,0.9);
}

/* =========================================================
   PANELS / BOXES
   ========================================================= */
.page-title {
  color: var(--clr-red-bright);
  font-family: var(--font-ui);
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(196,30,30,0.4);
}

/* Sidebar panels */
.panel-sidebar {
  background: var(--clr-panel);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-red);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 20px;
  transition: box-shadow .3s ease;
}
.panel-sidebar:hover { box-shadow: var(--glow-red); }
.panel-sidebar > .panel-heading {
  background: var(--clr-surface);
  color: var(--clr-text-bright);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-bottom: 1px solid var(--clr-border);
  border-radius: 0;
  padding: 12px 16px;
}
.panel-sidebar > .panel-heading .panel-title { color: var(--clr-red); font-size: 12px; letter-spacing: 2px; }
.panel-sidebar > .panel-body { padding: 16px; color: var(--clr-text); }

/* General panels */
.panel-general {
  margin-bottom: 24px;
  background: var(--clr-panel);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-red);
  border-radius: 0;
  color: var(--clr-text);
  transition: box-shadow .3s ease;
}
.panel-general:hover { box-shadow: var(--glow-red); }

.panel-body .panel-title {
  color: var(--clr-text-dim);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 16px !important;
  font-weight: 700;
  padding-bottom: 8px;
}

/* NEWS MODULE */
.panel-news {
  margin-bottom: 24px;
  background: var(--clr-panel);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-red);
  border-radius: 0;
  color: var(--clr-text);
  box-shadow: none;
}
.panel-news .panel-heading {
  background: var(--clr-surface);
  padding: 12px 16px;
  border-bottom: 1px solid var(--clr-border);
}
.panel-news .panel-title {
  color: var(--clr-text-bright);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.panel-news .panel-body {
  padding: 16px;
  color: var(--clr-text);
  line-height: 1.7;
}
.panel-news .panel-footer {
  border-top: 1px solid var(--clr-border);
  background: var(--clr-panel);
  font-style: italic;
  font-size: 11px;
  height: 36px;
  line-height: 36px;
  color: var(--clr-text-dim);
  font-family: var(--font-mono);
}

/* =========================================================
   RANKINGS TABLE
   ========================================================= */
.rankings-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  font-family: var(--font-ui);
}

.rankings-class-image {
  width: 30px;
  height: auto;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  border-radius: 0;
}

.rankings-table tr td {
  border-bottom: 1px solid var(--clr-border);
  padding: 10px 14px;
  font-size: 16px;
  vertical-align: middle !important;
  text-align: center;
  background: var(--clr-panel);
  color: var(--clr-text);
  transition: background .2s ease;
}
.rankings-table tr:nth-child(even) td { background: var(--clr-surface); }
.rankings-table tr:hover td { background: rgba(196,30,30,0.08); }

.rankings-table-place {
  color: var(--clr-text-dim);
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 20px;
  text-align: center;
}

/* Gold #1 */
.rankings-table tr:nth-child(2) td {
  color: var(--clr-gold);
  border-bottom: 2px solid var(--clr-gold);
}
.rankings-table tr:nth-child(2) td:first-child { border-left: 3px solid var(--clr-gold); }

/* Silver #2 */
.rankings-table tr:nth-child(3) td:first-child { border-left: 3px solid var(--clr-silver); }

/* Bronze #3 */
.rankings-table tr:nth-child(4) td:first-child { border-left: 3px solid var(--clr-bronze); }

.rankings-update-time {
  text-align: right;
  font-size: 11px;
  color: var(--clr-text-dim);
  font-family: var(--font-mono);
  padding: 8px 0;
}

.rankings_menu {
  width: 100%;
  overflow: auto;
  text-align: center;
  margin-bottom: 12px;
}
.rankings_menu span {
  width: 100%;
  display: inline-block;
  padding: 8px 0;
  color: var(--clr-text-dim);
  font-size: 20px;
  font-family: var(--font-ui);
}
.rankings_menu a {
  display: inline-block;
  width: 150px;
  border: 1px solid var(--clr-border);
  text-align: center;
  padding: 4px 0;
  margin: 2px;
  background: var(--clr-panel);
  border-radius: 2px;
  color: var(--clr-text-dim);
  font-family: var(--font-ui);
  letter-spacing: 1px;
  font-size: 12px;
  transition: all .2s ease;
}
.rankings_menu a:hover { border-color: var(--clr-red); color: var(--clr-text-bright) !important; }
.rankings_menu a.active { color: var(--clr-text-bright); border-color: var(--clr-red); border-left: 2px solid var(--clr-red); }

.rankings_guild_logo tr td { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.rankings-gens-img {
  width: auto !important; height: 30px !important; border: 0 !important;
  box-shadow: none !important; border-radius: 0 !important;
}

/* =========================================================
   RANKINGS CLASS FILTER
   ========================================================= */
.rankings-class-filter {
  display: inline-block;
  list-style-type: none;
  margin: 16px auto;
  padding: 10px 20px;
  border-radius: 0;
}
.rankings-class-filter li {
  display: inline-block;
  transition: all .3s ease;
  margin-bottom: 8px;
}
.rankings-class-filter li:hover { filter: grayscale(0%); }

.rankings-class-filter-selection {
  display: inline-block;
  width: 75px;
  text-align: center;
  color: var(--clr-text-dim);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
}
.rankings-class-filter-selection:hover { color: var(--clr-text-bright) !important; }
.rankings-class-filter-selection:hover img { filter: brightness(1.3); }
.rankings-class-filter-selection img {
  width: 40px; height: auto;
  border-radius: 50%;
  margin-bottom: 4px;
  transition: all .3s ease;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.rankings-class-filter-grayscale { filter: grayscale(100%); }

/* =========================================================
   SIDEBAR LOGIN FORM
   ========================================================= */
.form-login-dark .form-group { margin-bottom: 10px; }
.form-login-dark .form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border-red);
  color: var(--clr-text);
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 2px;
  box-shadow: none;
  height: 36px;
}
.form-login-dark .form-control:focus {
  background: rgba(255,255,255,0.06);
  border-color: var(--clr-red-bright);
  box-shadow: 0 0 8px var(--clr-red-glow);
  color: var(--clr-text-bright);
}
.form-login-dark .form-control::placeholder { color: var(--clr-text-dim); }

/* =========================================================
   SIDEBAR DOWNLOAD BANNER
   ========================================================= */
.sidebar-banner {
  margin: 16px 0;
  border: 0;
}
.sidebar-banner img {
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  border-radius: 2px;
  width: 100%;
  filter: saturate(0.8);
  transition: all .3s ease;
}
.sidebar-banner img:hover { filter: saturate(1.2) brightness(1.1); box-shadow: var(--glow-red); }

/* =========================================================
   USERCP PANEL
   ========================================================= */
.panel-usercp {
  background: linear-gradient(135deg, rgba(13,0,20,0.95), rgba(30,0,10,0.95));
}
.panel-usercp ul { list-style-type: none; padding: 0; margin: 0; }
.panel-usercp ul li { display: table; width: 100%; vertical-align: middle; line-height: 32px; }
.panel-usercp ul li a {
  color: var(--clr-text) !important;
  font-weight: 600;
  font-family: var(--font-ui);
  letter-spacing: 1px;
  font-size: 13px;
}
.panel-usercp ul li a:hover { color: var(--clr-red-bright) !important; }
.panel-usercp ul li img { position: relative; top: -2px; padding-right: 8px; }

/* =========================================================
   MY ACCOUNT MODULE
   ========================================================= */
.myaccount-table {
  width: 100%;
  background: var(--clr-panel);
  border: 1px solid var(--clr-border);
}
.myaccount-table tr td:first-child { color: var(--clr-text-dim); font-weight: 600; font-family: var(--font-ui); }
.myaccount-table tr td {
  border-bottom: 1px solid var(--clr-border);
  padding: 12px 15px !important;
  color: var(--clr-text);
}
.myaccount-table tr:last-child td { border: 0; }

/* =========================================================
   GENERAL TABLE UI
   ========================================================= */
.general-table-ui {
  width: 100%;
  table-layout: fixed;
  background: var(--clr-panel);
  border: 1px solid var(--clr-border);
  padding: 8px;
  margin: 10px 0;
}
.general-table-ui tr td {
  padding: 6px;
  vertical-align: middle !important;
  text-align: center;
  color: var(--clr-text);
}
.general-table-ui tr:first-child td { color: var(--clr-red-bright); }
.general-table-ui tr:nth-child(2n+2) td { background: var(--clr-surface); }
.general-table-ui img { width: 50px; height: auto; box-shadow: 0 0 5px rgba(0,0,0,0.5); border-radius: 0; }

/* =========================================================
   CHARACTER BLOCK (MY ACCOUNT)
   ========================================================= */
.myaccount-character-block {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: 5px;
  border-radius: 2px;
  display: inline-block;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.myaccount-character-block img {
  width: 100px; height: auto;
  border-radius: 2px;
  box-shadow: 0 0 5px #000;
  transition: all .3s ease;
}
.myaccount-character-block img:hover { filter: brightness(1.2); }

.myaccount-character-block-location {
  font-size: 11px;
  color: var(--clr-text-dim);
  margin-bottom: 16px;
  margin-top: 2px;
  line-height: 1.2;
  font-family: var(--font-mono);
}
.myaccount-character-block-level {
  position: relative;
  top: -77px;
  display: inline-block;
  background: rgba(0,0,0,0.7);
  padding: 0 5px;
  border-radius: 2px;
  color: var(--clr-red-bright);
  font-family: var(--font-mono);
  font-size: 10px;
}
.myaccount-character-name a {
  font-weight: bold;
  color: var(--clr-text-bright);
  font-size: 15px;
  font-family: var(--font-ui);
  letter-spacing: 1px;
}

/* =========================================================
   ADD STATS MODULE
   ========================================================= */
.panel-addstats {
  margin-bottom: 24px;
  background: var(--clr-panel);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-red);
  border-radius: 0;
  color: var(--clr-text);
}
.panel-addstats .character-avatar img {
  width: 100px; height: auto;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  border-radius: 2px;
}
.panel-addstats .character-name {
  color: var(--clr-text-bright);
  font-family: var(--font-ui);
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--clr-border);
  padding: 16px 0;
  margin-bottom: 16px !important;
  font-weight: bold;
}

/* =========================================================
   DOWNLOADS MODULE
   ========================================================= */
.panel-downloads {
  margin-bottom: 24px;
  background: var(--clr-panel);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-red);
  border-radius: 0;
  color: var(--clr-text);
}
.download-description {
  font-size: 11px;
  position: relative;
  top: -5px;
  color: var(--clr-text-dim);
  font-family: var(--font-mono);
}

/* =========================================================
   TERMS OF SERVICE
   ========================================================= */
.tos_list li {
  color: var(--clr-red-bright);
  font-weight: bold;
  font-size: 17px;
  margin-bottom: 32px;
}
.tos_list li p {
  color: var(--clr-text);
  text-align: justify;
  font-size: 14px;
  font-weight: normal;
  padding-right: 30px;
}

/* =========================================================
   PAYPAL
   ========================================================= */
.paypal-gateway-container { width: 100%; }
.paypal-gateway-content {
  background: rgba(13,13,30,0.9);
  border: 2px solid var(--clr-red);
  padding: 15px;
  overflow: auto;
  border-radius: 2px;
  font-weight: bold;
  color: var(--clr-text);
}
.paypal-gateway-logo {
  width: 100%; height: 100px;
  background: rgba(0,0,0,0.3) url('../img/paypal-logo-200-68.png') no-repeat center;
  background-size: contain;
  margin-bottom: 15px;
  border-radius: 2px;
}
.paypal-gateway-conversion-rate { margin: 0 auto; text-align: center; color: var(--clr-text-bright); font-size: 18px; padding: 10px 0; }
.paypal-gateway-form { width: 100%; margin: 20px auto; text-align: center; }
.paypal-gateway-form div { display: inline-block; padding: 0 10px; color: var(--clr-text-bright); font-size: 24px; }
.paypal-gateway-form input[type=text] {
  width: 60px; font-size: 24px;
  border: 2px solid var(--clr-red);
  border-radius: 2px;
  color: var(--clr-red-bright);
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono);
}
.paypal-gateway-continue { margin: 0 auto; text-align: center; }
.paypal-gateway-continue input[type=submit] {
  background: url('../img/paypal-submit.jpg') no-repeat;
  width: 200px; height: 40px; border: 0;
}
.module-requirements { font-size: 12px; margin-top: 16px; color: var(--clr-text-dim); }

/* =========================================================
   ONLINE STATUS INDICATOR
   ========================================================= */
.online-status-indicator { margin-left: 5px; }

/* =========================================================
   WEBENGINE CREDIT
   ========================================================= */
.webengine-powered { color: var(--clr-text-dim) !important; }
.webengine-powered:hover { color: var(--clr-red) !important; }

/* =========================================================
   FOOTER
   ========================================================= */
/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  width: 100%;
  background: var(--clr-panel);
  border-top: 1px solid var(--clr-border-red);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px clamp(16px,4vw,40px) 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--clr-text-dim);
}

/* Top row */
.footer-top {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-logo { flex-shrink: 0; }
.footer-logo img { display: block; }

/* Nav links */
.footer-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.footer-links a {
  color: var(--clr-text-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--clr-red-bright) !important; }

/* Social icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.footer-social-link {
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity .2s ease, filter .2s ease;
  filter: grayscale(100%);
}
.footer-social-link:hover {
  opacity: 1;
  filter: grayscale(0%) drop-shadow(0 0 6px var(--clr-red-bright));
}
.footer-social-link img { display: block; }

/* Divider */
.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--clr-border);
  margin: 20px 0 16px;
}

/* Bottom row */
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--clr-text-dim);
  opacity: 0.7;
}
.footer-sep { color: var(--clr-red-bright); }

/* =========================================================
   RESPONSIVE — TABLET / CONTAINER
   ========================================================= */
@media (max-width: 991px) {
  #container { border-left: none; border-right: none; }
}

/* =========================================================
   RESPONSIVE — NAVBAR (colapsa em 920px)
   ========================================================= */
@media (max-width: 920px) {
  /* Hamburger layout */
  #navbar { flex-wrap: wrap; }
  .nav-toggle { display: block; margin-left: auto; }

  /* Esconde lang/tema da navbar — aparecem dentro do menu aberto */
  .lang-select-wrapper { display: none; }
  .theme-toggle { display: none; }

  /* Menu fechado */
  #navbar ul {
    display: none;
    flex-direction: column;
    text-align: left;
    width: 100%;
    background: rgba(7,7,16,0.98);
    border-top: 1px solid var(--clr-border);
  }
  #navbar ul.nav-open { display: flex; }
  #navbar ul li { display: block; }
  #navbar ul li a { padding: 14px 20px; border-bottom: 1px solid var(--clr-border); display: block; }

  /* Language selector dentro do menu aberto */
  #navbar.menu-open .lang-select-wrapper {
    display: flex;
    width: 100%;
    padding: 12px 20px;
    background: rgba(7,7,16,0.98);
    border-top: 1px solid var(--clr-border);
    box-sizing: border-box;
  }
  #navbar.menu-open .lang-select { width: auto; }

  /* Theme toggle dentro do menu aberto */
  #navbar.menu-open .theme-toggle {
    display: flex;
    width: 100%;
    padding: 12px 20px;
    background: rgba(7,7,16,0.98);
    border-top: 1px solid var(--clr-border);
    margin-left: 0;
    box-sizing: border-box;
    justify-content: space-between;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE (≤767px)
   ========================================================= */
@media (max-width: 767px) {
  /* --- Header info --- */
  .header-info-container .header-info { width: 100%; border-radius: 0; }
  .header-info-container { padding: 0; }

  /* --- Hero section --- */
  .hero-render {
    opacity: 0.12;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    right: 0; left: 0;
  }
  .hero-section { min-height: 100svh; min-height: 100vh; }
  .hero-content { max-width: 100%; padding-top: 100px; }
  .hero-content::before { inset: -32px 0 -32px 0; }
  .hero-stats { gap: 8px; }
  .hero-stat { min-width: 90px; padding: 10px 14px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-hero-ghost { text-align: center; }

  /* --- Hero logo --- */
  .hero-logo img { height: 52px; }

  /* --- Hero forms (login / register / forgot) --- */
  .hero-form-card { max-width: 100%; }
  .reg-field-row { grid-template-columns: 1fr; gap: 0; }

  /* --- Hero download list --- */
  .hero-download-list { flex-direction: column; }
  .hero-download-list .btn-hero-primary,
  .hero-download-list .btn-hero-secondary { text-align: center; width: 100%; box-sizing: border-box; }

  /* --- Classes strip --- */
  .classes-row { gap: 6px; }
  .class-card { width: 110px; height: 148px; }
  .class-card img { height: 110px; }

  /* --- Content area --- */
  #container { margin-top: 16px; }
  #content { padding: 10px 10px 0; overflow-x: hidden; }
  #content > .row { margin-left: 0; margin-right: 0; }
  #content > .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }

  /* --- Tabelas com scroll horizontal --- */
  .rankings-table,
  .general-table-ui { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* --- Footer --- */
  .footer-inner { padding-bottom: 28px; }
}
