/*!
 =========================================================
 * WebEngine CMS — Doom MU Dark Gothic Theme
 * Aesthetic: Hellfire, Ancient Ruins, Demonic Power
 * Palette: #050505 | #8B0000 | #C0392B | #C9A84C | #FF6B35
 =========================================================
*/

/* ===== GOOGLE FONTS ===== */
/* Fonts loaded via <link> preconnect in index.php head — no @import needed */

/* ===== CSS VARIABLES ===== */
:root {
  --black:       #050505;
  --deep-black:  #0a0a0a;
  --panel-bg:    #0d0d0d;
  --card-bg:     #111111;
  --card-border: #1e1e1e;
  --crimson:     #8B0000;
  --fire:        #C0392B;
  --gold:        #C9A84C;
  --gold-bright: #E8C86A;
  --ember:       #FF6B35;
  --silver:      #A8A9AD;
  --text-main:   #D4C5A9;
  --text-dim:    #7a6e5f;
  --text-bright: #EDE0C4;
  --glow-red:    rgba(139, 0, 0, 0.6);
  --glow-gold:   rgba(201, 168, 76, 0.4);
  --transition:  all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-width: 1040px;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--black) url('../img/background-animation.webp') no-repeat center center fixed;
  background-size: cover;
  background-color: var(--black);
  color: var(--text-main);
  font-family: 'Crimson Pro', 'Georgia', serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
  height: 100%;
}

/* Dark vignette — heavier at top (smoke), lighter at bottom (fire shows through) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.82) 0%,
      rgba(0,0,0,0.40) 35%,
      rgba(0,0,0,0.10) 60%,
      rgba(0,0,0,0.00) 100%),
    radial-gradient(ellipse at 50% 110%, rgba(180,20,0,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

@media only screen and (min-width: 2000px) {
  body {
    background-image: url('../img/background-2600.jpg') !important;
  }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
  margin-top: 0;
}

/* ===== LINKS ===== */
a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(201, 168, 76, 0.5);
}

img {
  border: 0;
}

/* ===== FORM INPUTS ===== */
input[type=text],
input[type=password],
input[type=number] {
  background: #0d0d0d;
  border: 1px solid #333;
  border-bottom: 1px solid var(--crimson);
  color: var(--text-main);
  padding: 8px 12px;
  transition: var(--transition);
  border-radius: 2px;
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=number]:focus {
  outline: none;
  border-color: var(--fire);
  box-shadow: 0 0 12px rgba(192, 57, 43, 0.4), inset 0 0 8px rgba(192, 57, 43, 0.1);
  background: #120000;
}

/* ===== GLOBAL TOP BAR ===== */
.global-top-bar {
  width: 100%;
  background: transparent;
  border-bottom: none;
  color: var(--text-dim);
  padding: 6px 0;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-family: 'Cinzel', serif;
  position: relative;
  z-index: 200;
}

.global-top-bar .global-top-bar-content {
  width: 1040px;
  margin: 0 auto;
}

.global-top-bar .global-top-bar-content .row {
  margin: 0;
  padding: 0;
}

.global-top-bar a {
  color: var(--text-dim) !important;
  transition: var(--transition);
}

.global-top-bar a:hover {
  color: var(--gold) !important;
  text-shadow: 0 0 6px var(--glow-gold);
}

.global-top-bar a.logout {
  color: var(--fire) !important;
}

.global-top-bar a.logout:hover {
  color: #ff4444 !important;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.global-top-bar-nopadding {
  padding: 0 !important;
}

.global-top-bar-separator {
  padding: 0 6px;
  color: #333;
}

/* Top bar action buttons */
.top-bar-btn {
  font-family: 'Cinzel', serif !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 1px !important;
}

/* ===== NAVBAR ===== */
#navbar {
  width: 100%;
  position: relative;
  z-index: 100;
  background: none;
  border-bottom: none;
}

#navbar ul {
  text-align: center;
  margin: 0;
  padding: 0;
}

#navbar ul li {
  list-style-type: none;
  display: inline-block;
  font-size: 14px;
  font-family: 'Cinzel', serif;
}

#navbar ul li a {
  display: inline-block;
  color: var(--gold) !important;
  text-decoration: none;
  padding: 18px 28px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

#navbar ul li a:hover {
  color: #fff !important;
  text-shadow: 0 0 12px #ff0000, 0 0 24px #ff0000;
}

.admincp-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--crimson) !important;
  border: 1px solid var(--fire) !important;
  color: var(--gold) !important;
  font-family: 'Cinzel', serif !important;
  font-weight: bold !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border-radius: 1px !important;
  transition: var(--transition) !important;
}

.admincp-button:hover {
  background: var(--fire) !important;
  box-shadow: 0 0 12px var(--glow-red) !important;
}

/* ===== HEADER ===== */
#header {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  color: #fff;
  position: relative;
  height: 180px;
}

/* ===== WEBSITE LOGO ===== */
.webengine-mu-logo {
  transition: filter 0.5s ease;
  filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.4));
  animation: logo-fade-in 2s ease-out;
}

.webengine-mu-logo:hover {
  filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.9)) brightness(1.2);
}

@keyframes logo-fade-in {
  0%   { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER INFO BOX ===== */
.header-info-container {
  width: 1040px;
  margin: 0 auto;
  text-align: right;
  position: relative;
  z-index: 10;
}

.header-info-container .header-info {
  display: inline-block;
  width: 320px;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 0, 0, 0.5);
  border-top: 2px solid var(--crimson);
  margin: 0;
  padding: 16px 20px;
  overflow: auto;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.3), inset 0 0 20px rgba(0,0,0,0.5);
  border-radius: 0 0 2px 2px;
  color: var(--text-main);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.header-info-container .header-info .header-info-block {
  color: var(--text-dim);
}

.header-info-container .header-info .header-info-block #tServerTime,
.header-info-container .header-info .header-info-block #tLocalTime {
  color: var(--gold);
  text-shadow: 0 0 8px var(--glow-gold);
}

.header-info-container .header-info .header-info-block #tServerDate,
.header-info-container .header-info .header-info-block #tLocalDate {
  color: var(--text-dim);
}

.header-info-container .header-info .header-info-block .online-count {
  color: #00ff88;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  font-weight: 700;
}

/* ===== ONLINE BAR ===== */
.webengine-online-bar {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #2a0000;
  height: 6px;
  margin: 8px 0;
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
  transition: var(--transition);
}

.webengine-online-bar .webengine-online-bar-progress {
  height: 6px;
  background: linear-gradient(90deg, var(--crimson), var(--fire), var(--ember));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(192, 57, 43, 0.7);
  animation: pulse-bar 2s ease-in-out infinite alternate;
}

@keyframes pulse-bar {
  0%   { box-shadow: 0 0 6px rgba(192, 57, 43, 0.5); }
  100% { box-shadow: 0 0 14px rgba(255, 107, 53, 0.9); }
}

.webengine-online-bar:hover {
  filter: brightness(130%);
}

/* ===== MAIN CONTAINER ===== */
#container {
  background: rgba(8, 8, 8, 0.92);
  width: 1040px;
  margin: 0 auto;
  padding: 24px 0;
  border-radius: 0;
  border-top: 1px solid rgba(139, 0, 0, 0.3);
  border-left: 1px solid rgba(139, 0, 0, 0.1);
  border-right: 1px solid rgba(139, 0, 0, 0.1);
  box-shadow: 0 0 60px rgba(0,0,0,0.9), 0 0 30px rgba(139, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

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

/* ===== PAGE TITLE ===== */
.page-title {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 0 20px var(--glow-gold), 0 2px 4px rgba(0,0,0,0.8);
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(139, 0, 0, 0.4);
  padding-bottom: 10px;
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--fire), transparent);
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(5, 5, 5, 0.95);
  border-top: 1px solid rgba(139, 0, 0, 0.4);
  border-left: 1px solid rgba(139, 0, 0, 0.1);
  border-right: 1px solid rgba(139, 0, 0, 0.1);
  border-bottom: 2px solid var(--crimson);
  font-family: 'Cinzel', serif;
  width: 1040px;
  font-size: 11px;
  color: var(--text-dim);
  padding: 32px 40px;
  overflow: auto;
  margin: 0 auto 80px;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 20px rgba(139, 0, 0, 0.15);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer > .footer-container {
  width: 100%;
  margin: 0 auto;
}

.footer > .footer-container a {
  color: var(--text-dim);
  transition: var(--transition);
}

.footer > .footer-container a:hover {
  color: var(--gold) !important;
  text-decoration: none !important;
  text-shadow: 0 0 6px var(--glow-gold);
}

.footer hr {
  border: none;
  border-top: 1px solid rgba(139, 0, 0, 0.3);
  margin: 20px 0;
}

.footer .footer-social-link {
  display: inline-block;
  filter: grayscale(100%) brightness(0.5);
  transition: var(--transition);
  opacity: 0.6;
}

.footer .footer-social-link:hover {
  filter: grayscale(0%) brightness(1.2) drop-shadow(0 0 8px rgba(201, 168, 76, 0.7));
  opacity: 1;
  transform: translateY(-2px);
}

/* ===== WEBENGINE POWERED ===== */
.webengine-powered { color: var(--text-dim) !important; font-size: 10px; }
.webengine-powered:hover { color: var(--fire) !important; }

/* ===== LANGUAGE SWITCHER ===== */
.webengine-language-switcher {
  display: inline-block;
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  width: 46px;
  height: 19px;
  overflow: hidden;
  transition: width 0.3s ease;
}

.webengine-language-switcher:hover {
  width: 400px;
}

.webengine-language-switcher li {
  display: inline-block;
  list-style-type: none;
  background: #1a0000;
  border: 1px solid #330000;
  padding: 0 5px 2px;
  border-radius: 2px;
  transition: var(--transition);
}

.webengine-language-switcher li:hover {
  background: var(--crimson);
}

.webengine-language-switcher li a { color: var(--text-dim); }
.webengine-language-switcher li a:hover { color: #fff !important; }

/* ===== SIDEBAR ===== */
.panel-sidebar {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-top: 2px solid var(--crimson);
  border-radius: 0;
  box-shadow: 0 0 20px rgba(0,0,0,0.6), 0 0 10px rgba(139, 0, 0, 0.1);
  margin-bottom: 20px;
}

.panel-sidebar > .panel-heading {
  background: linear-gradient(135deg, #0d0000, #1a0000);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-bottom: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 0;
  padding: 12px 16px;
}

.panel-sidebar > .panel-heading .panel-title {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--glow-gold);
}

.panel-sidebar > .panel-body {
  padding: 16px;
}

/* User CP panel background */
.panel-usercp {
  background: linear-gradient(180deg, #0d0000, rgba(5,5,5,0.98)) !important;
}

.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;
  border-bottom: 1px solid rgba(139, 0, 0, 0.15);
}

.panel-usercp ul li a {
  color: var(--text-main) !important;
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  transition: var(--transition);
}

.panel-usercp ul li a:hover {
  color: var(--gold) !important;
  padding-left: 4px;
}

.panel-usercp ul li img {
  position: relative;
  top: -2px;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  filter: hue-rotate(330deg) saturate(2) brightness(0.8);
}

/* Sidebar banners */
.sidebar-banner {
  margin: 16px 0;
  border: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.sidebar-banner img {
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 2px;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  transition: var(--transition);
}

.sidebar-banner img:hover {
  box-shadow: 0 0 30px rgba(192, 57, 43, 0.6);
  border-color: var(--fire);
}

.sidebar-banner a {
  display: block !important;
  width: 100% !important;
}

/* ===== NEWS MODULE ===== */
.panel-news {
  margin-bottom: 28px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(139, 0, 0, 0.25);
  border-top: 2px solid rgba(139, 0, 0, 0.6);
  border-radius: 0;
  color: var(--text-main);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.panel-news .panel-heading {
  background: linear-gradient(135deg, #0d0000 0%, #1a0000 100%);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.panel-news .panel-title {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 0 16px var(--glow-gold);
  letter-spacing: 0.04em;
}

.panel-news .panel-body {
  padding: 16px;
  color: var(--text-main);
}

.panel-news .panel-footer {
  background: rgba(5, 5, 5, 0.8);
  border-top: 1px solid rgba(139, 0, 0, 0.2);
  font-style: italic;
  font-size: 12px;
  height: 40px;
  color: var(--text-dim);
  padding: 10px 16px;
  display: flex;
  align-items: center;
}

/* ===== GENERAL PANEL ===== */
.panel-general {
  margin-bottom: 28px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(139, 0, 0, 0.25);
  border-top: 2px solid rgba(139, 0, 0, 0.5);
  border-radius: 0;
  color: var(--text-main);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.panel-body .panel-title {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
  margin-bottom: 18px !important;
  padding-bottom: 10px;
  font-weight: 600;
}

/* ===== RANKINGS TABLE ===== */
.rankings-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  font-family: 'Cinzel', serif;
}

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

.rankings-table tr td {
  border-bottom: 1px solid rgba(139, 0, 0, 0.15);
  padding: 10px 12px;
  font-size: 14px;
  vertical-align: middle !important;
  text-align: center;
  color: var(--text-main);
  transition: var(--transition);
}

.rankings-table tr:hover td {
  background: rgba(139, 0, 0, 0.08);
}

.rankings-table-place {
  color: var(--text-dim);
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  font-family: 'Cinzel', serif;
}

/* Header row */
.rankings-table tr:first-child td {
  background: linear-gradient(135deg, #1a0000, #0d0000);
  color: var(--gold);
  border-bottom: 2px solid var(--crimson);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--glow-gold);
}

/* Top 3 highlights */
.rankings-table tr:nth-child(2) td {
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.08), transparent);
  color: var(--gold-bright);
}
.rankings-table tr:nth-child(2) .rankings-table-place { color: var(--gold); text-shadow: 0 0 12px var(--glow-gold); }

.rankings-table tr:nth-child(3) td {
  background: linear-gradient(90deg, rgba(168, 169, 173, 0.06), transparent);
  color: #d4d5d9;
}
.rankings-table tr:nth-child(3) .rankings-table-place { color: var(--silver); }

.rankings-table tr:nth-child(4) td {
  background: linear-gradient(90deg, rgba(176, 101, 28, 0.06), transparent);
  color: #c09070;
}
.rankings-table tr:nth-child(4) .rankings-table-place { color: #cd7f32; }

.rankings-update-time {
  text-align: right;
  font-size: 11px;
  color: var(--text-dim);
  padding: 8px 0;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.06em;
}

.rankings_menu {
  width: 100%;
  overflow: auto;
  text-align: center;
  margin-bottom: 12px;
}

.rankings_menu span {
  width: 100%;
  display: inline-block;
  padding: 10px 0;
  color: var(--gold);
  font-family: 'Cinzel Decorative', serif;
  font-size: 20px;
  text-shadow: 0 0 20px var(--glow-gold);
  letter-spacing: 0.06em;
}

.rankings_menu a {
  display: inline-block;
  width: 140px;
  border: 1px solid rgba(139, 0, 0, 0.4);
  text-align: center;
  padding: 6px 0;
  margin: 3px;
  background: rgba(10, 10, 10, 0.9);
  border-radius: 1px;
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
}

.rankings_menu a:hover {
  border-color: var(--crimson);
  color: var(--gold);
  background: rgba(139, 0, 0, 0.15);
}

.rankings_menu a.active {
  color: var(--gold);
  border-color: var(--crimson);
  background: rgba(139, 0, 0, 0.2);
  text-shadow: 0 0 8px var(--glow-gold);
}

.rankings_guild_logo tr td {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.rankings-gens-img {
  width: auto !important;
  height: 28px !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ===== CLASS FILTER ===== */
.rankings-class-filter {
  display: inline-block;
  list-style-type: none;
  margin: 16px auto;
  padding: 12px 20px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-radius: 2px;
}

.rankings-class-filter li {
  display: inline-block;
  transition: var(--transition);
  margin-bottom: 8px;
}

.rankings-class-filter li:hover {
  filter: grayscale(0%);
}

.rankings-class-filter-selection {
  display: inline-block;
  width: 72px;
  text-align: center;
  color: var(--text-dim);
  font-size: 10px;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.06em;
}

.rankings-class-filter-selection:hover {
  color: var(--gold) !important;
}

.rankings-class-filter-selection:hover img {
  filter: brightness(130%) drop-shadow(0 0 4px var(--crimson));
}

.rankings-class-filter-selection img {
  width: 38px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 4px;
  transition: var(--transition);
  box-shadow: 0 0 8px rgba(139, 0, 0, 0.4);
  border: 1px solid rgba(139, 0, 0, 0.3);
}

.rankings-class-filter-grayscale {
  filter: grayscale(100%) brightness(0.5);
}

/* ===== MY ACCOUNT TABLE ===== */
.myaccount-table {
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(139, 0, 0, 0.25);
}

.myaccount-table tr td:first-child {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.myaccount-table tr td {
  border-bottom: 1px solid rgba(139, 0, 0, 0.12);
  padding: 14px 16px !important;
  color: var(--text-main);
}

.myaccount-table tr:last-child td {
  border: 0;
}

/* ===== GENERAL TABLE UI ===== */
.general-table-ui {
  width: 100%;
  table-layout: fixed;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(139, 0, 0, 0.25);
  padding: 10px;
  margin: 10px 0;
}

.general-table-ui tr td {
  padding: 8px;
  vertical-align: middle !important;
  color: var(--text-main);
}

.general-table-ui tr:first-child td {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.general-table-ui tr:nth-child(2n+2) td {
  background: rgba(139, 0, 0, 0.04);
}

.general-table-ui tr td {
  text-align: center;
}

.general-table-ui img {
  width: 48px;
  height: auto;
  box-shadow: 0 0 8px rgba(139, 0, 0, 0.4);
  border-radius: 2px;
  border: 1px solid rgba(139, 0, 0, 0.3);
}

/* ===== CHARACTER BLOCKS ===== */
.myaccount-character-block {
  background: rgba(15, 5, 5, 0.95);
  border: 1px solid rgba(139, 0, 0, 0.4);
  padding: 6px;
  border-radius: 2px;
  display: inline-block;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.2);
  transition: var(--transition);
}

.myaccount-character-block:hover {
  border-color: var(--fire);
  box-shadow: 0 0 30px rgba(192, 57, 43, 0.4);
}

.myaccount-character-block img {
  width: 100px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
  transition: var(--transition);
}

.myaccount-character-block img:hover {
  filter: brightness(120%) drop-shadow(0 0 6px var(--crimson));
}

.myaccount-character-block-location {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 18px;
  margin-top: 2px;
  line-height: 1.2;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.06em;
}

.myaccount-character-block-level {
  position: relative;
  top: -74px;
  display: inline-block;
  background: rgba(139, 0, 0, 0.75);
  padding: 1px 6px;
  border-radius: 1px;
  color: var(--gold);
  font-size: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.myaccount-character-name a {
  font-family: 'Cinzel', serif;
  font-weight: bold;
  color: var(--gold);
  font-size: 14px;
  transition: var(--transition);
}

.myaccount-character-name a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 10px var(--glow-gold);
}

/* ===== ADD STATS MODULE ===== */
.panel-addstats {
  margin-bottom: 28px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(139, 0, 0, 0.25);
  border-top: 2px solid rgba(139, 0, 0, 0.5);
  border-radius: 0;
  color: var(--text-main);
}

.panel-addstats .character-avatar img {
  width: 100px;
  height: auto;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 2px;
}

.panel-addstats .character-name {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  font-size: 16px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
  padding: 16px 0;
  margin-bottom: 18px !important;
  font-weight: bold;
  text-shadow: 0 0 12px var(--glow-gold);
}

/* ===== DOWNLOADS ===== */
.panel-downloads {
  margin-bottom: 28px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(139, 0, 0, 0.25);
  border-top: 2px solid rgba(139, 0, 0, 0.5);
  border-radius: 0;
  color: var(--text-main);
}

.download-description {
  font-size: 12px;
  position: relative;
  top: -5px;
  color: var(--text-dim);
  font-style: italic;
}

/* ===== TERMS OF SERVICE ===== */
.tos_list li {
  color: var(--fire);
  font-family: 'Cinzel', serif;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 36px;
  letter-spacing: 0.06em;
}

.tos_list li p {
  font-family: 'Crimson Pro', serif;
  color: var(--text-main);
  text-align: justify;
  text-justify: inter-word;
  text-transform: none;
  padding-right: 32px;
  font-size: 15px;
  font-weight: 300;
}

/* ===== PAYPAL ===== */
.paypal-gateway-container {
  width: 100%;
}

.paypal-gateway-content {
  background: rgba(15, 10, 0, 0.9);
  border: 2px solid rgba(201, 168, 76, 0.4);
  padding: 16px;
  overflow: auto;
  border-radius: 2px;
  color: var(--text-main);
}

.paypal-gateway-logo {
  width: 100%;
  height: 100px;
  background: rgba(255, 249, 236, 0.08) url('../img/paypal-logo-200-68.png') no-repeat center;
  background-size: contain;
  margin-bottom: 16px;
  border-radius: 2px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.paypal-gateway-conversion-rate {
  margin: 0 auto;
  text-align: center;
  color: var(--gold);
  font-size: 18px;
  font-family: 'Cinzel', serif;
  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(--gold);
  font-family: 'Cinzel', serif;
  font-size: 22px;
}

.paypal-gateway-form input[type=text] {
  width: 70px;
  font-size: 22px;
  border: 2px solid rgba(201, 168, 76, 0.5);
  border-radius: 2px;
  color: var(--gold);
  background: #0a0500;
  text-align: center;
}

.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;
  cursor: pointer;
  transition: var(--transition);
}

.paypal-gateway-continue input[type=submit]:hover {
  filter: brightness(1.1);
}

.module-requirements {
  font-size: 12px;
  margin-top: 20px;
  color: var(--text-dim);
  font-style: italic;
}

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

/* ===== HOME NEWS BLOCK ===== */
.home-news-block {}

.home-news-block .home-news-block-header h2 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  padding: 0 !important;
  margin: 0 0 18px !important;
  font-style: normal;
  text-shadow: 0 0 20px var(--glow-gold);
}

.home-news-block .home-news-block-header a {
  display: inline-block;
  padding-top: 4px;
  font-style: italic;
  font-size: 15px;
  color: var(--text-dim);
}

.home-news-block-article {
  margin-top: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(139, 0, 0, 0.12);
  transition: var(--transition);
}

.home-news-block-article:hover {
  border-bottom-color: rgba(139, 0, 0, 0.35);
}

.home-news-block-article .home-news-block-article-type {
  display: block;
  border: 1px solid rgba(192, 57, 43, 0.5);
  padding: 4px;
  text-align: center;
  color: var(--fire);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(192, 57, 43, 0.05);
  transition: var(--transition);
}

.home-news-block-article:hover .home-news-block-article-type {
  background: rgba(192, 57, 43, 0.12);
  border-color: var(--fire);
}

.home-news-block-article .home-news-block-article-title-container {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-block-article .home-news-block-article-title,
.home-news-block-article .home-news-block-article-date {
  line-height: 30px;
  color: var(--text-main);
}

/* ===== EVENT TIMER ===== */
.event-schedule-open {
  color: #00cc66;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 204, 102, 0.5);
}

.event-schedule-inprogress {
  color: var(--ember);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
  animation: pulse-event 1.5s ease-in-out infinite alternate;
}

@keyframes pulse-event {
  0%   { opacity: 0.8; }
  100% { opacity: 1; }
}

.panel-sidebar-events .smalltext {
  font-size: 11px;
  position: relative;
  top: -4px;
  color: var(--text-dim);
}

/* ===== BOOTSTRAP OVERRIDES — Dark Gothic ===== */
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
  border-top: none !important;
  color: var(--text-main);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(139, 0, 0, 0.04) !important;
}

.table-hover > tbody > tr:hover {
  background-color: rgba(139, 0, 0, 0.1) !important;
}

.form-control {
  background: #0d0d0d;
  border: 1px solid #2a0000;
  border-bottom: 1px solid var(--crimson);
  color: var(--text-main);
  border-radius: 1px;
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  background: #120000;
  border-color: var(--fire);
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.3);
  color: var(--text-bright);
}

.form-group label {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Buttons */
.btn-primary {
  color: var(--gold) !important;
  background: linear-gradient(135deg, #1a0000, #2d0000) !important;
  border: 1px solid var(--crimson) !important;
  border-radius: 1px !important;
  font-family: 'Cinzel', serif !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  transition: var(--transition) !important;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--crimson), var(--fire)) !important;
  border-color: var(--fire) !important;
  box-shadow: 0 0 16px var(--glow-red) !important;
}

.btn-success {
  color: var(--gold) !important;
  background: linear-gradient(135deg, #001a00, #002d00) !important;
  border: 1px solid #1a5c1a !important;
  border-radius: 1px !important;
  font-family: 'Cinzel', serif !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  transition: var(--transition) !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background: linear-gradient(135deg, #1a5c1a, #1a8c1a) !important;
  border-color: #00cc00 !important;
  box-shadow: 0 0 12px rgba(0, 180, 0, 0.4) !important;
  color: #fff !important;
}

.btn-default {
  color: var(--text-dim) !important;
  background: rgba(20, 20, 20, 0.8) !important;
  border: 1px solid #333 !important;
  border-radius: 1px !important;
  font-family: 'Cinzel', serif !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  transition: var(--transition) !important;
}

.btn-default:hover {
  border-color: var(--text-dim) !important;
  color: var(--text-main) !important;
}

/* Panel heading bootstrap */
.panel-heading {
  background: linear-gradient(135deg, #0d0000, #1a0000) !important;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3) !important;
}

.panel {
  background: rgba(10, 10, 10, 0.92) !important;
  border: 1px solid rgba(139, 0, 0, 0.25) !important;
  border-radius: 0 !important;
  color: var(--text-main) !important;
}

.panel-footer {
  background: rgba(5, 5, 5, 0.8) !important;
  border-top: 1px solid rgba(139, 0, 0, 0.2) !important;
}

/* Alert boxes */
.alert-success {
  background: rgba(0, 40, 0, 0.8) !important;
  border: 1px solid #1a5c1a !important;
  color: #88cc88 !important;
  border-radius: 1px !important;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.alert-danger, .alert-error {
  background: rgba(40, 0, 0, 0.8) !important;
  border: 1px solid var(--crimson) !important;
  color: #cc4444 !important;
  border-radius: 1px !important;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.alert-warning {
  background: rgba(30, 20, 0, 0.8) !important;
  border: 1px solid #664400 !important;
  color: var(--gold) !important;
  border-radius: 1px !important;
  font-family: 'Cinzel', serif;
  font-size: 12px;
}

.alert-info {
  background: rgba(0, 20, 40, 0.8) !important;
  border: 1px solid #004466 !important;
  color: #6699cc !important;
  border-radius: 1px !important;
  font-family: 'Cinzel', serif;
  font-size: 12px;
}

/* Nav tabs */
.nav-tabs {
  border-bottom: 1px solid rgba(139, 0, 0, 0.3) !important;
}

.nav-tabs > li > a {
  background: rgba(10, 10, 10, 0.9) !important;
  color: var(--text-dim) !important;
  border: 1px solid rgba(139, 0, 0, 0.3) !important;
  border-radius: 0 !important;
  font-family: 'Cinzel', serif !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  transition: var(--transition) !important;
}

.nav-tabs > li > a:hover {
  background: rgba(139, 0, 0, 0.2) !important;
  color: var(--gold) !important;
  border-color: var(--crimson) !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  background: rgba(139, 0, 0, 0.3) !important;
  color: var(--gold) !important;
  border-color: var(--crimson) !important;
  border-bottom-color: transparent !important;
}

/* Thumbnail */
.thumbnail {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(139, 0, 0, 0.25);
  border-radius: 1px;
  transition: var(--transition);
}

a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
  border-color: var(--crimson);
  box-shadow: 0 0 16px var(--glow-red);
}

/* Misc utils */
.nopadding { padding: 0 !important; margin: 0 !important; }
.vcenter { display: inline-block; vertical-align: middle; float: none; }

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 768px) {
  html { min-width: 0; }

  #container,
  .footer {
    width: 100%;
    border-left: none;
    border-right: none;
  }

  .header-info-container {
    width: 100%;
    text-align: center;
  }

  .header-info-container .header-info {
    width: 100%;
    border-radius: 0;
  }

  .global-top-bar .global-top-bar-content {
    width: 100%;
    padding: 0 12px;
  }

  #navbar ul li a {
    padding: 12px 14px;
    font-size: 12px;
  }

  .doom-nav-wrapper {
    width: 100% !important;
    height: auto !important;
    background: rgba(5, 5, 5, 0.95) !important;
    border-bottom: 1px solid rgba(139, 0, 0, 0.4) !important;
  }

  .doom-nav-wrapper ul {
    grid-template-columns: repeat(3, 1fr) !important;
    position: static !important;
  }

  .doom-nav-wrapper ul li a {
    padding: 14px 8px !important;
    font-size: 11px !important;
  }

  .doom-nav-wrapper ul li:nth-child(n) a { padding-left: 0 !important; padding-right: 0 !important; }
  .doom-nav-wrapper ul li:nth-child(n)::before { display: none !important; }

  #header {
    height: auto;
    padding: 20px 0;
  }

  .rankings_menu a { width: 120px; }
}
