/*!
 =========================================================
 * WebEngine CMS — IRONVEIL THEME — FIXED
 * Correção: fundos escuros forçados, bordas visíveis,
 * texto legível, sem herança do Bootstrap/CMS
 =========================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@400;600;700&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

/* ─── TOKENS ───────────────────────────────────────────── */
:root {
  --ink:         #04070f;
  --abyss:       #070d1a;
  --deep:        #0b1628;
  --mid:         #112040;
  --surface:     #162a50;
  --rim:         #1e3a6e;

  --silver-dim:  #4a607e;
  --silver:      #8fa8c8;
  --silver-hi:   #c8d8ec;
  --white:       #eef4ff;

  --sapphire:    #2563eb;
  --sapphire-hi: #60a5fa;
  --ice:         #bfdbfe;
  --gold-trim:   #c8a84b;
  --gold-glow:   rgba(200,168,75,0.25);
  --crimson:     #dc2626;
  --crimson-dim: #7f1d1d;

  --b-subtle:    rgba(143,168,200,0.15);
  --b-soft:      rgba(143,168,200,0.25);
  --b-med:       rgba(143,168,200,0.40);
  --b-bright:    rgba(200,168,75,0.50);

  --sh-card:     0 4px 24px rgba(0,0,0,0.7), 0 0 0 1px rgba(143,168,200,0.12);
  --sh-glow-b:   0 0 24px rgba(37,99,235,0.35);
  --sh-glow-g:   0 0 24px rgba(200,168,75,0.35);

  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --f-display: 'Cinzel', serif;
  --f-deco:    'Cinzel Decorative', serif;
  --f-body:    'Crimson Pro', Georgia, serif;

  --ease: all 0.25s cubic-bezier(0.25,0.8,0.25,1);
}

/* ─── RESET AGRESSIVO ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 1200px;
  height: 100%;
  background: var(--ink) !important;
  scrollbar-width: thin;
  scrollbar-color: var(--rim) var(--abyss);
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--abyss); }
::-webkit-scrollbar-thumb { background: var(--rim); border-radius: 3px; }

/* BODY — fundo escuro fixo */
body {
  background: var(--ink) url('../img/background.jpg') no-repeat top center fixed !important;
  background-size: cover !important;
  color: var(--silver-hi) !important;
  font-family: var(--f-body) !important;
  font-size: 15px !important;
  margin: 0 !important;
  min-height: 100vh !important;
}

/* Overlay atmosférico */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: linear-gradient(160deg,
    rgba(4,7,15,0.85) 0%,
    rgba(7,13,26,0.78) 50%,
    rgba(11,22,40,0.90) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Grade sutil */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(143,168,200,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,168,200,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ─── FORÇAR FUNDO ESCURO EM TUDO ──────────────────────── */
/* Neutraliza Bootstrap e herança do CMS */
#container,
#content,
#content > *,
.row,
.col-xs-4,
.col-xs-8,
.col-xs-12 {
  background: transparent !important;
  color: var(--silver-hi) !important;
}

/* ─── LINKS ────────────────────────────────────────────── */
a { color: var(--sapphire-hi) !important; text-decoration: none !important; transition: var(--ease); }
a:hover, a:focus { color: var(--gold-trim) !important; text-decoration: none !important; }
img { border: 0; }

/* ─── INPUTS ───────────────────────────────────────────── */
input[type=text],
input[type=password],
input[type=number],
.form-control {
  background: rgba(11,22,40,0.8) !important;
  border: 1px solid var(--b-soft) !important;
  color: var(--white) !important;
  border-radius: var(--r-sm) !important;
  font-family: var(--f-body) !important;
  transition: var(--ease) !important;
}
input:focus, .form-control:focus {
  border-color: var(--sapphire) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.20) !important;
  outline: none !important;
  background: rgba(11,22,40,0.95) !important;
}
input::placeholder { color: var(--silver-dim) !important; opacity: 1 !important; }

/* ─── TOP BAR ──────────────────────────────────────────── */
.global-top-bar {
  width: 100%;
  background: rgba(4,7,15,0.98) !important;
  backdrop-filter: blur(10px);
  color: var(--silver-dim) !important;
  padding: 6px 0;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--b-subtle) !important;
  position: relative; z-index: 100;
}
.global-top-bar .global-top-bar-content { width: 1200px; margin: 0 auto; }
.global-top-bar a { color: var(--silver-dim) !important; }
.global-top-bar a:hover { color: var(--silver-hi) !important; }
.global-top-bar a.logout { color: var(--crimson) !important; }
.global-top-bar-separator { padding: 0 6px; color: var(--rim); }

/* ─── HEADER ───────────────────────────────────────────── */
#header {
  width: 100% !important;
  text-align: left !important;
  padding: 52px 0 0 44px !important;
  color: #fff !important;
  position: relative;
  background: transparent !important;
}
.header-info-container { display: none !important; }
.webengine-mu-logo { max-width: 300px !important; height: auto !important; transition: var(--ease); }
.webengine-mu-logo:hover { filter: brightness(115%) drop-shadow(0 0 12px rgba(37,99,235,0.5)); }
#header img { max-width: 300px; height: auto; }

/* ─── NAVBAR ───────────────────────────────────────────── */
#navbar {
  width: 100%;
  background: rgba(7,13,26,0.96) !important;
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--b-subtle) !important;
  border-bottom: 1px solid var(--b-subtle) !important;
  position: relative; z-index: 50;
}
#navbar::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-trim) 20%,
    var(--silver-hi) 50%,
    var(--gold-trim) 80%,
    transparent 100%);
  opacity: .7;
}
#navbar ul { text-align: center; margin: 0; padding: 0; list-style: none; }
#navbar ul li { display: inline-block; }
#navbar ul li a {
  display: inline-block;
  color: var(--silver) !important;
  padding: 17px 26px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: var(--f-display) !important;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  transition: var(--ease);
  background: transparent !important;
}
#navbar ul li a::before {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%; height: 1px;
  background: linear-gradient(90deg,transparent,var(--gold-trim),transparent);
  transition: transform .3s ease;
}
#navbar ul li a:hover { color: var(--white) !important; }
#navbar ul li a:hover::before { transform: translateX(-50%) scaleX(1); }

/* ─── CONTAINER ────────────────────────────────────────── */
#container {
  background: transparent !important;
  width: 1200px;
  margin: 0 auto;
  padding: 28px 0;
  border: 0 !important;
  position: relative; z-index: 10;
}
#content {
  width: 100%;
  overflow: hidden;
  min-height: 500px;
  padding: 4px 24px 0 24px;
  background: transparent !important;
}

/* ─── PANELS — FUNDO ESCURO FORÇADO ───────────────────── */
.panel {
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--sh-card) !important;
  color: var(--silver-hi) !important;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,var(--b-med),transparent);
}
.panel-heading {
  background: rgba(0,0,0,0.40) !important;
  border-bottom: 1px solid var(--b-soft) !important;
  padding: 13px 18px !important;
  border-radius: var(--r-md) var(--r-md) 0 0 !important;
}
.panel-title {
  color: var(--silver-hi) !important;
  font-family: var(--f-display) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}
.panel-body {
  padding: 18px !important;
  background: transparent !important;
  color: var(--silver-hi) !important;
}
.panel-sidebar { margin-bottom: 18px; }

/* Sidebar panels explicitamente escuros */
.panel-sidebar.panel {
  background: var(--deep) !important;
}
.panel-sidebar .panel-body {
  background: transparent !important;
}

/* ─── BOTÕES ───────────────────────────────────────────── */
.btn-primary {
  color: var(--silver-hi) !important;
  background: rgba(17,32,64,0.8) !important;
  border: 1px solid var(--b-med) !important;
  border-radius: var(--r-xs) !important;
  font-family: var(--f-display) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  transition: var(--ease) !important;
  padding: 7px 16px !important;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover, .btn-primary:focus {
  color: var(--white) !important;
  background: rgba(37,99,235,0.15) !important;
  border-color: var(--gold-trim) !important;
  box-shadow: 0 0 16px var(--gold-glow) !important;
}

/* ─── PAGE TITLE ───────────────────────────────────────── */
.page-title {
  color: var(--silver-hi) !important;
  font-family: var(--f-display) !important;
  font-size: 26px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}
.page-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 50px; height: 1px;
  background: linear-gradient(90deg,var(--gold-trim),transparent);
}

/* ─── TABLES ───────────────────────────────────────────── */
.table { background: transparent !important; }
.table > tbody > tr > td,
.table > thead > tr > th {
  border-bottom: 1px solid var(--b-soft) !important;
  color: var(--silver-hi) !important;
  padding: 10px 14px !important;
  background: transparent !important;
}
.table > thead > tr > th {
  color: var(--silver) !important;
  font-family: var(--f-display) !important;
  font-size: 10px !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  background: rgba(0,0,0,0.35) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) { background: rgba(255,255,255,0.03) !important; }
.table-hover > tbody > tr:hover { background: rgba(37,99,235,0.10) !important; }

/* ─── RANKINGS ─────────────────────────────────────────── */
.rankings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md);
  overflow: hidden;
}
.rankings-table tr td {
  border-bottom: 1px solid var(--b-soft) !important;
  padding: 11px !important;
  font-size: 14px;
  vertical-align: middle !important;
  text-align: center;
  color: var(--silver-hi) !important;
  transition: var(--ease);
  background: transparent !important;
}
.rankings-table tr:hover td { background: rgba(37,99,235,0.10) !important; }
.rankings-table tr:first-child td {
  color: var(--silver) !important;
  border-bottom: 1px solid var(--b-med) !important;
  font-family: var(--f-display) !important;
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(0,0,0,0.35) !important;
}
.rankings-table-place { color: var(--gold-trim) !important; font-weight: 700; font-size: 18px; font-family: var(--f-display); }
.rankings-update-time { text-align: right; font-size: 11px; color: var(--silver-dim) !important; padding: 8px 0; }
.rankings_menu { width: 100%; overflow: auto; text-align: center; margin-bottom: 16px; }
.rankings_menu span { width: 100%; display: inline-block; padding: 8px 0; color: var(--silver-dim) !important; font-size: 18px; font-family: var(--f-display); }
.rankings_menu a {
  display: inline-block; width: 130px;
  border: 1px solid var(--b-soft) !important;
  text-align: center; padding: 5px 0; margin: 2px;
  background: var(--deep) !important;
  border-radius: var(--r-xs);
  color: var(--silver-dim) !important;
  transition: var(--ease); font-size: 11px;
  text-transform: uppercase; letter-spacing: .07em;
  font-family: var(--f-display);
}
.rankings_menu a:hover { border-color: var(--b-med) !important; color: var(--silver-hi) !important; }
.rankings_menu a.active { color: var(--gold-trim) !important; border-color: var(--b-bright) !important; background: rgba(200,168,75,0.08) !important; }
.rankings-class-image { width: 26px; height: auto; border-radius: 50%; box-shadow: 0 0 6px rgba(0,0,0,0.6); }
.rankings-class-filter {
  display: inline-block; list-style-type: none;
  margin: 16px auto; padding: 12px 20px;
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md);
}
.rankings-class-filter li { display: inline-block; transition: var(--ease); margin-bottom: 8px; }
.rankings-class-filter-selection {
  display: inline-block; width: 70px; text-align: center;
  color: var(--silver-dim) !important;
  font-size: 10px; cursor: pointer;
  letter-spacing: .04em; font-family: var(--f-display);
}
.rankings-class-filter-selection:hover { color: var(--silver-hi) !important; }
.rankings-class-filter-selection img { width: 36px; height: auto; border-radius: 50%; margin-bottom: 4px; transition: var(--ease); box-shadow: 0 0 8px rgba(0,0,0,0.5); }
.rankings-class-filter-grayscale { filter: grayscale(100%) opacity(0.35); }

/* ─── NEWS ─────────────────────────────────────────────── */
.panel-news {
  margin-bottom: 22px;
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: var(--ease);
}
.panel-news:hover { border-color: var(--b-med) !important; }
.panel-news .panel-heading {
  background: rgba(0,0,0,0.35) !important;
  border-bottom: 1px solid var(--b-soft) !important;
  padding: 14px 20px !important;
}
.panel-news .panel-title {
  color: var(--silver-hi) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: var(--f-display) !important;
  letter-spacing: .06em !important;
}
.panel-news .panel-body {
  padding: 18px !important;
  line-height: 1.7;
  color: var(--silver-hi) !important;
  background: transparent !important;
}
.panel-news .panel-footer {
  background: rgba(0,0,0,0.25) !important;
  border-top: 1px solid var(--b-soft) !important;
  font-style: italic; font-size: 11px;
  padding: 10px 18px !important;
  color: var(--silver-dim) !important;
}

/* ─── MY ACCOUNT ───────────────────────────────────────── */
.myaccount-table {
  width: 100%;
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md);
  overflow: hidden;
}
.myaccount-table tr td:first-child {
  color: var(--silver-dim) !important;
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .05em;
  background: rgba(0,0,0,0.2) !important;
}
.myaccount-table tr td {
  border-bottom: 1px solid var(--b-soft) !important;
  padding: 13px 16px !important;
  color: var(--silver-hi) !important;
  background: transparent !important;
}
.myaccount-table tr:last-child td { border: 0 !important; }
.myaccount-character-block {
  background: var(--mid) !important;
  border: 1px solid var(--b-soft) !important;
  padding: 8px; border-radius: var(--r-md);
  display: inline-block; margin: 0 auto;
  box-shadow: var(--sh-card); transition: var(--ease);
}
.myaccount-character-block:hover { border-color: var(--b-bright) !important; box-shadow: var(--sh-glow-g); }
.myaccount-character-block img { width: 100px; height: auto; border-radius: var(--r-sm); }
.myaccount-character-block-level {
  position: relative; top: -77px; display: inline-block;
  background: rgba(4,7,15,0.9) !important;
  padding: 1px 6px; border-radius: var(--r-xs);
  color: var(--gold-trim) !important;
  font-size: 10px; font-family: var(--f-display); letter-spacing: .06em;
}
.myaccount-character-block-location { font-size: 11px; color: var(--silver-dim) !important; margin-bottom: 16px; margin-top: 2px; }
.myaccount-character-name a { font-weight: 700; color: var(--silver-hi) !important; font-size: 14px; }

/* ─── CASTLE ───────────────────────────────────────────── */
.castle-siege-block .castle-owner-panel {
  background: url('../img/castle_owner_bg.jpg') no-repeat center !important;
  background-size: cover !important;
  color: #fff !important;
  border-radius: var(--r-lg);
  border: 1px solid var(--b-soft) !important;
  box-shadow: var(--sh-card);
  padding: 24px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.castle-owner-widget {
  background: url('../img/castle_owner_bg.jpg') no-repeat top right !important;
  background-size: cover !important;
  color: var(--silver-hi) !important;
  border-radius: var(--r-lg);
  border: 1px solid var(--b-soft) !important;
  box-shadow: var(--sh-card);
  padding: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}
.castle-owner-widget .panel-heading { background: transparent !important; border: 0 !important; text-align: center; }
.castle-owner-widget .panel-heading .panel-title {
  font-size: 20px !important; font-weight: 700 !important;
  color: #fff !important; font-family: var(--f-display) !important;
  letter-spacing: .06em !important;
}

/* ─── PROFILES ─────────────────────────────────────────── */
.profiles_player_table .cname {
  font-family: var(--f-display); text-align: center;
  font-size: 22px; color: var(--white) !important; font-weight: 700;
}
.profiles_player_table .cclass {
  text-align: center; font-size: 10px;
  color: var(--silver-dim) !important;
  letter-spacing: .1em; text-transform: uppercase;
}
.profiles_player_table .isoffline { color: var(--crimson) !important; }
.profiles_player_table .isonline { color: #4ade80 !important; }
.profiles_player_table_info tr td { padding: 3px 10px; color: var(--silver-hi) !important; background: transparent !important; }
.profiles_player_table_info tr td:first-child {
  text-align: right; color: var(--silver-dim) !important;
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
}

/* ─── DOWNLOADS ────────────────────────────────────────── */
.panel-downloads {
  margin-bottom: 22px;
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
  color: var(--silver-hi) !important;
}
.download-description { font-size: 11px; position: relative; top: -6px; color: var(--silver-dim) !important; }
.thumbnail {
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md); padding: 6px;
  transition: var(--ease);
}
a.thumbnail:hover { border-color: var(--b-bright) !important; box-shadow: var(--sh-glow-g); }

/* ─── ALERTS ───────────────────────────────────────────── */
.alert { border-radius: var(--r-md) !important; border: 1px solid !important; }
.alert-success { background: rgba(74,222,128,0.10) !important; border-color: rgba(74,222,128,0.35) !important; color: #4ade80 !important; }
.alert-danger, .alert-error { background: rgba(220,38,38,0.10) !important; border-color: rgba(220,38,38,0.40) !important; color: #fca5a5 !important; }
.alert-warning { background: rgba(200,168,75,0.10) !important; border-color: rgba(200,168,75,0.40) !important; color: var(--gold-trim) !important; }
.alert-info { background: rgba(37,99,235,0.10) !important; border-color: rgba(37,99,235,0.40) !important; color: var(--sapphire-hi) !important; }

/* ─── ONLINE BAR ───────────────────────────────────────── */
.webengine-online-bar {
  width: 100%;
  background: rgba(0,0,0,0.5) !important;
  border: 1px solid var(--b-soft) !important;
  height: 6px; margin: 10px 0;
  border-radius: 3px; overflow: hidden;
}
.webengine-online-bar .webengine-online-bar-progress {
  height: 6px;
  background: linear-gradient(90deg,var(--sapphire),var(--sapphire-hi));
  border-radius: 3px;
}

/* ─── FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--abyss) !important;
  font-family: var(--f-body);
  width: 1200px;
  font-size: 12px;
  color: var(--silver-dim) !important;
  padding: 32px 40px;
  overflow: auto;
  margin: 0 auto 80px auto;
  border-radius: 0 0 var(--r-md) var(--r-md);
  border: 1px solid var(--b-soft) !important;
  border-top: 1px solid var(--b-med) !important;
  position: relative; z-index: 10;
}
.footer::before {
  content: '';
  display: block;
  width: 80px; height: 1px;
  background: linear-gradient(90deg,transparent,var(--gold-trim),transparent);
  margin: 0 auto 24px auto;
}
.footer > .footer-container a { color: var(--silver-dim) !important; }
.footer > .footer-container a:hover { color: var(--silver-hi) !important; text-decoration: underline !important; }
.footer hr { border-top: 1px solid var(--b-soft) !important; }
.footer .footer-social-link { filter: grayscale(100%) opacity(0.4); transition: all .3s ease; }
.footer .footer-social-link:hover { filter: grayscale(0%) opacity(1); }
.webengine-powered { color: var(--silver-dim) !important; }
.webengine-powered:hover { color: var(--crimson) !important; }

/* ─── PAYPAL ───────────────────────────────────────────── */
.paypal-gateway-content {
  background: rgba(200,168,75,0.08) !important;
  border: 2px solid rgba(200,168,75,0.40) !important;
  padding: 16px; border-radius: var(--r-md);
  font-weight: 600; color: var(--silver-hi) !important;
}
.paypal-gateway-logo {
  background: rgba(255,255,255,0.05) url('../img/paypal-logo-200-68.png') no-repeat center !important;
  background-size: contain !important;
  margin-bottom: 16px; border-radius: var(--r-md);
  height: 80px; border: 1px solid var(--b-soft) !important;
}

/* ─── GENERAL TABLE ────────────────────────────────────── */
.general-table-ui {
  width: 100%; table-layout: fixed;
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md); overflow: hidden; margin: 12px 0;
}
.general-table-ui tr td {
  padding: 10px 12px !important; vertical-align: middle !important;
  border-bottom: 1px solid var(--b-soft) !important;
  color: var(--silver-hi) !important; text-align: center;
  background: transparent !important;
}
.general-table-ui tr:first-child td {
  color: var(--silver) !important;
  font-family: var(--f-display) !important;
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(0,0,0,0.35) !important;
}
.general-table-ui tr:nth-child(2n+2) td { background: rgba(255,255,255,0.025) !important; }
.general-table-ui img { width: 44px; height: auto; border-radius: var(--r-sm); }

/* ─── ADD STATS / RESET ────────────────────────────────── */
.panel-addstats, .panel-resetchar, .panel-addmasterpoints {
  margin-bottom: 22px;
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md);
  color: var(--silver-hi) !important;
  box-shadow: var(--sh-card);
}
.panel-addstats .character-name,
.panel-resetchar .character-name,
.panel-addmasterpoints .character-name {
  color: var(--gold-trim) !important;
  font-family: var(--f-display);
  font-size: 16px;
  border-bottom: 1px solid var(--b-soft) !important;
  padding: 16px 0; margin-bottom: 16px !important;
  font-weight: 700; letter-spacing: .05em;
}
.panel-addstats .character-avatar img,
.panel-resetchar .character-avatar img {
  width: 100px; height: auto;
  border-radius: var(--r-sm);
  box-shadow: 0 0 12px rgba(0,0,0,0.7);
}

/* ─── LANGUAGE ─────────────────────────────────────────── */
.webengine-language-switcher {
  display: inline-block; list-style: none;
  padding: 0 !important; margin: 0 !important;
  width: 46px; height: 19px;
  overflow: hidden; transition: width .3s ease;
}
.webengine-language-switcher:hover { width: 400px; }
.webengine-language-switcher li {
  display: inline-block; list-style-type: none;
  background: rgba(11,22,40,0.7) !important;
  padding: 0 5px 2px 5px; border-radius: 3px;
  transition: var(--ease);
  border: 1px solid var(--b-soft) !important;
}
.webengine-language-switcher li:hover { background: rgba(22,42,80,0.9) !important; }
.webengine-language-switcher li a { color: var(--silver-dim) !important; }
.webengine-language-switcher li a:hover { color: var(--white) !important; }

/* ─── ADMIN ────────────────────────────────────────────── */
.admincp-button {
  position: absolute; top: 10px; right: 10px;
  background: var(--deep) !important;
  border: 1px solid var(--b-bright) !important;
  color: var(--gold-trim) !important;
  font-weight: 700 !important; font-family: var(--f-display) !important;
  font-size: 10px !important; letter-spacing: .1em !important;
  text-transform: uppercase !important;
  border-radius: var(--r-xs) !important;
  transition: var(--ease) !important;
}
.admincp-button:hover { background: var(--gold-trim) !important; color: var(--ink) !important; }

/* ─── LOGIN FIX ────────────────────────────────────────── */
.panel-sidebar .panel-body .clearfix { display: flex; align-items: center; }
.panel-sidebar .panel-body button { margin-right: auto; }

/* ─── BG FIX — MÁXIMA PRIORIDADE ──────────────────────── */
html {
  background: var(--ink) url('../img/background.jpg') no-repeat center top !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
}
body {
  background: transparent !important;
  width: 100% !important;
  max-width: none !important;
}

/* ─── SOBRESCREVE BOOTSTRAP BRANCO ─────────────────────── */
/* Bootstrap coloca bg branco em algumas classes */
.well {
  background-color: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  color: var(--silver-hi) !important;
}
.list-group {
  background: transparent !important;
}
.list-group-item {
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  color: var(--silver-hi) !important;
}
.list-group-item:hover {
  background: rgba(37,99,235,0.10) !important;
  color: var(--white) !important;
}
.nav-tabs > li > a {
  background: var(--mid) !important;
  border-color: var(--b-soft) !important;
  color: var(--silver) !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover {
  background: var(--deep) !important;
  border-color: var(--b-soft) !important;
  color: var(--silver-hi) !important;
}
.tab-content {
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-top: 0 !important;
  padding: 16px !important;
  color: var(--silver-hi) !important;
  border-radius: 0 0 var(--r-md) var(--r-md) !important;
}
.modal-content {
  background: var(--deep) !important;
  border: 1px solid var(--b-med) !important;
  color: var(--silver-hi) !important;
}
.modal-header {
  background: rgba(0,0,0,0.35) !important;
  border-bottom: 1px solid var(--b-soft) !important;
}
.modal-footer {
  background: rgba(0,0,0,0.25) !important;
  border-top: 1px solid var(--b-soft) !important;
}
/* Dropdown Bootstrap */
.dropdown-menu {
  background: var(--abyss) !important;
  border: 1px solid var(--b-med) !important;
  box-shadow: var(--sh-card) !important;
}
.dropdown-menu > li > a {
  color: var(--silver) !important;
  background: transparent !important;
}
.dropdown-menu > li > a:hover {
  background: rgba(37,99,235,0.12) !important;
  color: var(--white) !important;
}
/* Paginação */
.pagination > li > a,
.pagination > li > span {
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  color: var(--silver) !important;
}
.pagination > .active > a,
.pagination > .active > span {
  background: var(--sapphire) !important;
  border-color: var(--sapphire) !important;
  color: #fff !important;
}
.pagination > li > a:hover {
  background: rgba(37,99,235,0.15) !important;
  border-color: var(--b-med) !important;
  color: var(--white) !important;
}
/* Breadcrumb */
.breadcrumb {
  background: rgba(11,22,40,0.7) !important;
  border: 1px solid var(--b-subtle) !important;
  color: var(--silver-dim) !important;
}
.breadcrumb > li + li::before { color: var(--silver-dim) !important; }

/* ─── HOME PAGE COMPONENTS ─────────────────────────────── */
/* iv-news-row */
.iv-news-row {
  display: flex; align-items: center; gap: 16px;
  padding: 11px 16px; margin-bottom: 5px;
  background: rgba(17,32,64,0.5) !important;
  border: 1px solid var(--b-soft) !important;
  border-left: 2px solid transparent;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  transition: all .25s ease;
}
.iv-news-row:last-child { margin-bottom: 0; }
.iv-news-row:hover {
  background: rgba(37,99,235,0.10) !important;
  border-color: rgba(37,99,235,0.35) !important;
  border-left-color: var(--sapphire-hi) !important;
  transform: translateX(4px);
}
.iv-news-badge {
  flex-shrink: 0;
  background: var(--sapphire) !important;
  color: #fff !important;
  font-family: var(--f-display);
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .08em;
}
.iv-news-title {
  flex: 1; color: var(--silver-hi) !important;
  font-size: 14px; font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s;
}
.iv-news-row:hover .iv-news-title { color: var(--white) !important; }
.iv-news-date {
  flex-shrink: 0; color: var(--silver-dim) !important;
  font-size: 11px; font-weight: 600;
  letter-spacing: .05em; font-family: var(--f-display);
}

/* Castle */
.iv-castle-wrap {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 22px;
  border: 1px solid var(--b-med) !important;
  box-shadow: var(--sh-card), 0 0 40px rgba(0,0,0,0.6);
  min-height: 130px;
  display: flex; align-items: center; justify-content: space-between;
}
.iv-castle-bg {
  position: absolute; inset: 0;
  background: #000 url('../img/castle_owner_bg.jpg') no-repeat center;
  background-size: cover;
}
.iv-castle-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(7,13,26,0.92) 0%,
    rgba(7,13,26,0.70) 40%,
    rgba(7,13,26,0.88) 100%);
}
.iv-castle-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-trim), var(--silver-hi), var(--gold-trim), transparent);
  z-index: 5;
}
.iv-castle-content {
  position: relative; z-index: 3;
  display: flex; align-items: center;
  width: 100%; padding: 22px 28px; gap: 24px;
}
.iv-castle-label {
  font-family: var(--f-display); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-trim) !important; margin-bottom: 6px; opacity: .9;
}
.iv-castle-name {
  font-family: var(--f-deco); font-size: 28px; font-weight: 900;
  color: #fff !important;
  text-shadow: 0 0 30px rgba(37,99,235,0.5), 2px 2px 4px rgba(0,0,0,0.9);
  line-height: 1; letter-spacing: .04em;
}
.iv-castle-master { margin-top: 6px; font-size: 13px; color: var(--silver-hi) !important; font-style: italic; }
.iv-castle-master span { color: #fff !important; font-style: normal; font-weight: 600; }
.iv-castle-divider {
  width: 1px; height: 70px;
  background: linear-gradient(180deg, transparent, var(--b-med), transparent);
  flex-shrink: 0;
}
.iv-castle-no-owner { font-family: var(--f-display); font-size: 16px; color: var(--silver) !important; letter-spacing: .06em; }
.iv-castle-socials { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; padding-right: 4px; }
.iv-social-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--r-xs);
  background: rgba(11,22,40,0.7) !important;
  border: 1px solid var(--b-soft) !important;
  color: var(--silver-hi) !important;
  font-family: var(--f-display); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none !important; transition: all .25s ease; white-space: nowrap;
}
.iv-social-btn:hover {
  background: rgba(37,99,235,0.18) !important;
  border-color: rgba(37,99,235,0.5) !important;
  color: var(--white) !important; transform: translateX(-3px);
}

/* Gens cards */
.iv-gens-wrap { display: flex; gap: 18px; margin-bottom: 22px; }
.iv-gens-card {
  flex: 1; background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md);
  box-shadow: var(--sh-card); overflow: hidden; transition: var(--ease);
}
.iv-gens-card:hover { border-color: var(--b-med) !important; }
.iv-gens-blue { border-top: 2px solid #3b82f6 !important; }
.iv-gens-gold { border-top: 2px solid var(--gold-trim) !important; }
.iv-gens-head {
  padding: 13px 16px;
  background: rgba(0,0,0,0.35) !important;
  border-bottom: 1px solid var(--b-soft) !important;
  text-align: center;
}
.iv-gens-head h3 {
  margin: 0; font-family: var(--f-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.iv-gens-blue .iv-gens-head h3 { color: #93c5fd !important; }
.iv-gens-gold .iv-gens-head h3 { color: var(--gold-trim) !important; }
.iv-gens-body { padding: 10px; }
.iv-gens-row {
  display: flex; align-items: center;
  padding: 9px 12px; margin-bottom: 6px;
  border-radius: var(--r-sm);
  background: rgba(17,32,64,0.5) !important;
  border: 1px solid var(--b-soft) !important;
  transition: all .2s ease;
}
.iv-gens-row:last-child { margin-bottom: 0; }
.iv-gens-blue .iv-gens-row:hover { background: rgba(59,130,246,0.12) !important; border-color: rgba(59,130,246,0.35) !important; }
.iv-gens-gold .iv-gens-row:hover { background: rgba(200,168,75,0.10) !important; border-color: rgba(200,168,75,0.35) !important; }
.iv-gens-rank { width: 30px; text-align: center; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.iv-gens-rc {
  width: 22px; height: 22px;
  background: rgba(11,22,40,0.8) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--silver-dim) !important; font-family: var(--f-display);
}
.iv-gens-name { flex: 1; padding: 0 12px; font-size: 14px; font-weight: 600; }
.iv-gens-name a { color: var(--silver-hi) !important; }
.iv-gens-blue .iv-gens-row:hover .iv-gens-name a { color: #bfdbfe !important; }
.iv-gens-gold .iv-gens-row:hover .iv-gens-name a { color: var(--gold-trim) !important; }
.iv-gens-score { text-align: right; font-size: 10px; color: var(--silver-dim) !important; text-transform: uppercase; letter-spacing: .08em; font-family: var(--f-display); }
.iv-gens-score span { display: block; color: var(--white) !important; font-size: 15px; font-family: var(--f-display); margin-top: 2px; }

/* Micro rankings */
.iv-micro-wrap { display: flex; gap: 16px; margin-bottom: 22px; }
.iv-micro-card {
  flex: 1; background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md); box-shadow: var(--sh-card); overflow: hidden;
}
.iv-mc-lv { border-top: 2px solid #3b82f6 !important; }
.iv-mc-gd { border-top: 2px solid var(--silver) !important; }
.iv-mc-pk { border-top: 2px solid var(--crimson) !important; }
.iv-micro-head {
  padding: 10px 14px;
  background: rgba(0,0,0,0.35) !important;
  border-bottom: 1px solid var(--b-soft) !important;
  text-align: center;
}
.iv-mc-lv .iv-micro-head h4 { color: #93c5fd !important; }
.iv-mc-gd .iv-micro-head h4 { color: var(--silver-hi) !important; }
.iv-mc-pk .iv-micro-head h4 { color: #fca5a5 !important; }
.iv-micro-head h4 {
  margin: 0; font-family: var(--f-display);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.iv-micro-list { padding: 8px 10px; list-style: none; margin: 0; }
.iv-micro-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 6px;
  border-bottom: 1px solid var(--b-subtle) !important;
  font-size: 13px; transition: .2s;
  color: var(--silver-hi) !important;
  background: transparent !important;
}
.iv-micro-list li:last-child { border: 0; }
.iv-micro-list li:hover { background: rgba(255,255,255,0.03) !important; border-radius: 4px; padding-left: 10px; }
.iv-micro-list .iv-ml-name a { color: var(--silver-hi) !important; font-weight: 600; }
.iv-micro-list .iv-ml-name a:hover { color: var(--white) !important; }
.iv-mc-lv .iv-ml-val { color: #93c5fd !important; }
.iv-mc-gd .iv-ml-val { color: var(--silver-hi) !important; }
.iv-mc-pk .iv-ml-val { color: #fca5a5 !important; }
.iv-ml-val { font-family: var(--f-display); font-weight: 700; font-size: 12px; }

/* Hall of Fame */
.iv-hof-wrap {
  margin-bottom: 22px;
  background: var(--deep) !important;
  border: 1px solid var(--b-med) !important;
  border-radius: var(--r-md); box-shadow: var(--sh-card);
  overflow: hidden; position: relative;
}
.iv-hof-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-trim), var(--silver-hi), var(--gold-trim), transparent);
}
.iv-hof-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px;
  background: rgba(0,0,0,0.35) !important;
  border-bottom: 1px solid var(--b-soft) !important;
}
.iv-hof-head h3 {
  margin: 0; font-family: var(--f-display); font-size: 14px;
  font-weight: 700; letter-spacing: .14em;
  color: var(--silver-hi) !important; text-transform: uppercase;
}
.iv-hof-head a {
  font-size: 10px; text-transform: uppercase; font-weight: 700;
  letter-spacing: .1em; color: var(--silver-dim) !important;
  border: 1px solid var(--b-soft) !important;
  padding: 4px 12px; border-radius: 2px; transition: .2s;
  font-family: var(--f-display); text-decoration: none !important;
  background: rgba(11,22,40,0.6) !important;
}
.iv-hof-head a:hover { border-color: var(--b-bright) !important; color: var(--gold-trim) !important; background: rgba(200,168,75,0.08) !important; }
.iv-hof-podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 26px 22px 0; }
.iv-hof-item { flex: 1; max-width: 175px; display: flex; flex-direction: column; align-items: center; position: relative; }
.iv-hof-item.first { order: 2; }
.iv-hof-item.second { order: 1; }
.iv-hof-item.third { order: 3; }
.iv-hof-avatar {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; font-family: var(--f-display);
  position: relative; z-index: 2; margin-bottom: 8px;
  width: 52px; height: 52px;
}
.iv-hof-item.first .iv-hof-avatar {
  width: 66px; height: 66px; font-size: 24px;
  background: radial-gradient(circle, #fef3c7, #92400e) !important;
  color: #fff !important; box-shadow: 0 0 24px rgba(200,168,75,0.6);
  border: 2px solid var(--gold-trim) !important;
}
.iv-hof-item.second .iv-hof-avatar {
  background: radial-gradient(circle, var(--surface), var(--mid)) !important;
  color: var(--silver-hi) !important; box-shadow: 0 0 12px rgba(143,168,200,0.3);
  border: 2px solid var(--silver-dim) !important;
}
.iv-hof-item.third .iv-hof-avatar {
  background: radial-gradient(circle, #431407, #1c0a03) !important;
  color: #fb923c !important; box-shadow: 0 0 12px rgba(180,83,9,0.35);
  border: 2px solid #92400e !important;
}
.iv-hof-name { font-family: var(--f-display); font-size: 12px; font-weight: 700; color: var(--silver-hi) !important; text-align: center; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.iv-hof-name a { color: inherit !important; text-decoration: none !important; }
.iv-hof-name a:hover { color: var(--gold-trim) !important; }
.iv-hof-resets { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--silver-dim) !important; text-align: center; margin-bottom: 6px; font-family: var(--f-display); }
.iv-hof-resets span { font-family: var(--f-display); font-size: 15px; color: var(--gold-trim) !important; font-weight: 700; }
.iv-hof-block { width: 100%; border-radius: 4px 4px 0 0; display: flex; align-items: center; justify-content: center; }
.iv-hof-item.first .iv-hof-block { height: 60px; background: linear-gradient(180deg, rgba(200,168,75,0.18), rgba(200,168,75,0.04)) !important; border: 1px solid rgba(200,168,75,0.30) !important; border-bottom: 0; }
.iv-hof-item.second .iv-hof-block { height: 44px; background: linear-gradient(180deg, rgba(143,168,200,0.12), rgba(143,168,200,0.03)) !important; border: 1px solid var(--b-soft) !important; border-bottom: 0; }
.iv-hof-item.third .iv-hof-block { height: 30px; background: linear-gradient(180deg, rgba(146,64,14,0.15), rgba(146,64,14,0.03)) !important; border: 1px solid rgba(146,64,14,0.25) !important; border-bottom: 0; }
.iv-hof-list { padding: 12px 22px 16px; }
.iv-hof-list-row {
  display: flex; align-items: center; padding: 8px 10px;
  border-radius: var(--r-sm); margin-bottom: 3px;
  border: 1px solid transparent !important;
  transition: all .2s ease;
  background: transparent !important;
}
.iv-hof-list-row:last-child { margin-bottom: 0; }
.iv-hof-list-row:hover { background: rgba(37,99,235,0.07) !important; border-color: rgba(37,99,235,0.20) !important; }
.iv-hof-list-rank { width: 28px; font-size: 11px; font-weight: 700; color: var(--silver-dim) !important; text-align: center; font-family: var(--f-display); }
.iv-hof-list-name { flex: 1; padding-left: 12px; font-size: 13px; font-weight: 600; color: var(--silver-hi) !important; }
.iv-hof-list-name a { color: inherit !important; text-decoration: none !important; }
.iv-hof-list-class { font-size: 10px; color: var(--silver-dim) !important; padding-right: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-family: var(--f-display); }
.iv-hof-list-val { font-family: var(--f-display); font-size: 13px; font-weight: 700; color: var(--gold-trim) !important; min-width: 60px; text-align: right; }
.iv-hof-list-val small { font-size: 10px; color: var(--silver-dim) !important; font-weight: 400; margin-left: 2px; }

/* Last Kills */
.iv-lk-wrap {
  margin-bottom: 22px;
  background: var(--deep) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-md); box-shadow: var(--sh-card);
  overflow: hidden; position: relative;
}
.iv-lk-wrap::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,var(--crimson),#fca5a5,var(--crimson),transparent); }
.iv-lk-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0,0,0,0.35) !important;
  border-bottom: 1px solid var(--b-soft) !important;
}
.iv-lk-head h3 { margin: 0; font-family: var(--f-display); font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--silver-hi) !important; text-transform: uppercase; }
.iv-lk-item {
  display: flex; align-items: center;
  background: rgba(17,32,64,0.5) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-sm); padding: 9px 14px; gap: 10px;
  transition: all .2s ease;
}
.iv-lk-item:hover { background: rgba(220,38,38,0.08) !important; border-color: rgba(220,38,38,0.25) !important; }
.iv-lk-info { flex:1; font-size:13px; line-height:1.6; color: var(--silver-hi) !important; }
.iv-lk-killer { font-weight:700; color:#fca5a5 !important; font-family:var(--f-display); }
.iv-lk-killer a { color:inherit !important; text-decoration:none !important; }
.iv-lk-vs { color:var(--silver-dim) !important; font-size:11px; margin:0 5px; }
.iv-lk-victim { font-weight:600; color:var(--silver) !important; }
.iv-lk-victim a { color:inherit !important; text-decoration:none !important; }
.iv-lk-map { font-size:10px; color:var(--silver-dim) !important; text-transform:uppercase; letter-spacing:.05em; font-weight:600; font-family:var(--f-display); }
.iv-lk-time { font-size:10px; color:var(--silver-dim) !important; font-weight:700; text-transform:uppercase; letter-spacing:.05em; text-align:right; min-width:48px; font-family:var(--f-display); }
.iv-lk-empty { text-align:center; padding:28px; color:var(--silver-dim) !important; font-size:13px; }

/* Download btn */
.iv-download-btn {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--mid) 0%, var(--deep) 100%) !important;
  border: 1px solid var(--b-med) !important;
  border-radius: var(--r-md); padding: 14px 18px;
  color: var(--silver-hi) !important;
  text-decoration: none !important; transition: all .25s ease;
  box-shadow: var(--sh-card); margin-bottom: 16px; position: relative; overflow: hidden;
}
.iv-download-btn::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--b-bright), transparent);
}
.iv-download-btn:hover {
  border-color: var(--b-bright) !important;
  box-shadow: var(--sh-card), 0 0 24px var(--gold-glow);
  transform: translateY(-2px); color: var(--white) !important;
}
.iv-download-btn .d-icon { font-size: 28px; margin-right: 14px; color: var(--sapphire-hi) !important; flex-shrink: 0; }
.iv-download-btn .d-text { display:flex; flex-direction:column; text-align:left; }
.iv-download-btn .d-title { font-family: var(--f-display); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--silver-hi) !important; }
.iv-download-btn .d-desc { font-size: 11px; color: var(--silver-dim) !important; font-weight: 600; letter-spacing: .05em; margin-top: 3px; }

/* Status/info rows */
.iv-status-bar { background: rgba(0,0,0,0.5) !important; border: 1px solid var(--b-soft) !important; border-radius: 3px; height: 6px; overflow: hidden; margin: 8px 0; }
.iv-status-fill { height: 6px; background: linear-gradient(90deg, var(--sapphire), var(--sapphire-hi)); border-radius: 3px; transition: width .4s ease; }
.iv-info-row { display:flex; justify-content:space-between; align-items:center; padding:10px 18px; border-bottom:1px solid var(--b-soft) !important; }
.iv-info-row:last-child { border-bottom:0; }
.iv-info-lbl { font-size:10px; color:var(--silver-dim) !important; text-transform:uppercase; font-weight:700; letter-spacing:.1em; font-family:var(--f-display); }
.iv-info-val { font-family:var(--f-display); font-size:13px; font-weight:700; color:var(--gold-trim) !important; }

/* VIP list */
.iv-vip-list { list-style:none; padding:0; margin:0; color:var(--silver) !important; font-size:14px; line-height:2.2; }
.iv-vip-list li::before { content:'◆'; color:var(--sapphire-hi) !important; margin-right:8px; font-size:10px; }

/* Usercp */
.iv-usercp-header {
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(200,168,75,0.06)) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-sm); padding: 14px; margin-bottom: 16px;
}
.iv-stat-lbl { font-size:10px; color:var(--silver-dim) !important; text-transform:uppercase; font-weight:700; letter-spacing:.1em; font-family:var(--f-display); }
.iv-stat-val { font-size:15px; color:var(--sapphire-hi) !important; font-weight:700; font-family:var(--f-display); }
.iv-ucp-sec-title {
  font-size:9px; text-transform:uppercase; letter-spacing:.18em;
  color:var(--silver-dim) !important; font-weight:700; font-family:var(--f-display);
  padding:6px 10px; margin-bottom:4px;
  border-bottom:1px solid var(--b-soft) !important;
  display:flex; align-items:center; gap:6px;
  cursor:pointer; user-select:none; transition:color .2s;
  background: transparent !important;
}
.iv-ucp-sec-title:hover { color:var(--silver-hi) !important; }
.iv-ucp-item {
  display:flex; align-items:center; gap:10px;
  padding:8px 10px; margin-bottom:3px;
  background: rgba(17,32,64,0.4) !important;
  border-left:2px solid transparent !important;
  border-radius:var(--r-xs);
  text-decoration:none !important; color:var(--silver) !important;
  font-size:13px; font-weight:600; font-family:var(--f-body);
  transition:all .2s ease; cursor:pointer;
}
.iv-ucp-item:hover {
  background:rgba(37,99,235,0.12) !important;
  border-left-color:var(--sapphire-hi) !important;
  color:var(--white) !important; padding-left:14px;
}
.iv-ucp-badge { background:var(--crimson) !important; color:#fff !important; font-size:9px; font-weight:700; padding:1px 5px; border-radius:2px; margin-left:auto; font-family:var(--f-display); letter-spacing:.05em; }

/* Events panel */
.iv-events-panel {
  margin-bottom: 18px;
  background: var(--deep) !important;
  border: 1px solid var(--b-med) !important;
  border-radius: var(--r-md); box-shadow: var(--sh-card);
  overflow: hidden; position: relative;
}
.iv-events-panel::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,transparent,var(--gold-trim),var(--silver-hi),var(--gold-trim),transparent);
}
.iv-events-head {
  padding: 13px 18px;
  background: rgba(0,0,0,0.40) !important;
  border-bottom: 1px solid var(--b-soft) !important;
  display: flex; align-items: center; justify-content: space-between;
}
.iv-events-head-title { font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--silver-hi) !important; }
.iv-events-head-sub { font-family: var(--f-display); font-size: 9px; letter-spacing: .12em; color: var(--silver-dim) !important; text-transform: uppercase; }
.iv-ev-featured {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,0.35) !important;
  border: 1px solid var(--b-med) !important;
  border-radius: var(--r-sm); padding: 16px; margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.iv-ev-digit {
  width: 28px; height: 36px;
  background: rgba(4,7,15,0.9) !important;
  border: 1px solid var(--b-med) !important;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-deco); font-size: 20px; font-weight: 900;
  color: var(--silver-hi) !important; position: relative; overflow: hidden;
}
.iv-ev-feat-name { font-family: var(--f-display); font-size: 15px; font-weight: 700; color: var(--white) !important; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; text-align: center; }
.iv-ev-feat-status { font-size: 9px; text-transform: uppercase; letter-spacing: .15em; color: var(--silver-dim) !important; font-family: var(--f-display); margin-bottom: 14px; text-align: center; }
.iv-ev-digit-lbl { font-family: var(--f-display); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--silver-dim) !important; }
.iv-ev-colon { font-family: var(--f-deco); font-size: 22px; font-weight: 900; color: var(--b-med) !important; margin-bottom: 12px; }
.iv-ev-mini {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(17,32,64,0.5) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: var(--r-sm); cursor: pointer; transition: all .2s ease; position: relative;
}
.iv-ev-mini.active-ev { background: rgba(37,99,235,0.12) !important; border-color: rgba(37,99,235,0.40) !important; }
.iv-ev-mini:hover { background: rgba(37,99,235,0.08) !important; border-color: var(--b-soft) !important; }
.iv-ev-mini-name { font-size:9px; text-transform:uppercase; letter-spacing:.06em; color:var(--silver-dim) !important; font-weight:700; font-family:var(--f-display); margin-bottom:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.iv-ev-mini-next { font-family:var(--f-display); font-size:13px; font-weight:700; color:var(--silver-hi) !important; }
.iv-ev-mini-eta { font-size:9px; color:var(--silver-dim) !important; font-family:var(--f-display); margin-top:1px; }

/* Section separator */
.iv-section-sep { display: flex; align-items: center; gap: 12px; margin: 28px 0 18px; user-select: none; }
.iv-section-sep span { font-family: var(--f-display); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--silver-dim) !important; white-space: nowrap; }
.iv-section-sep::before, .iv-section-sep::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--b-med), transparent); }

/* ─── EVENTS STATUS ────────────────────────────────────── */
.event-schedule-open { color: #4ade80 !important; font-weight: 700; }
.event-schedule-inprogress { color: var(--gold-trim) !important; font-weight: 700; }

/* ─── ANIMATIONS ───────────────────────────────────────── */
#container, .footer { animation: ironFadeUp .4s ease both; }
@keyframes ironFadeUp { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:translateY(0);} }
@keyframes ivTrophyPulse { 0%,100%{filter:drop-shadow(0 0 4px currentColor);transform:scale(1);} 50%{filter:drop-shadow(0 0 10px currentColor);transform:scale(1.1);} }
.iv-trophy { animation: ivTrophyPulse 2.2s infinite; }
@keyframes ivCrown { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(-4px);} }
.iv-hof-crown { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 17px; animation: ivCrown 2.5s ease-in-out infinite; }
@keyframes ivLivePulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.4;transform:scale(.8);} }
.iv-lk-live { display:inline-flex; align-items:center; gap:6px; font-size:10px; font-weight:700; color:var(--crimson) !important; text-transform:uppercase; letter-spacing:.1em; font-family:var(--f-display); }
.iv-lk-live::before { content:''; width:7px; height:7px; background:var(--crimson); border-radius:50%; box-shadow:0 0 6px var(--crimson); animation:ivLivePulse 1.5s ease-in-out infinite; }
@keyframes ivRingPulse { 0%,100%{transform:scale(1);opacity:.6;} 50%{transform:scale(1.08);opacity:1;} }
.iv-ev-icon-ring { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; position: relative; flex-shrink: 0; }
.iv-ev-icon-ring::after { content:''; position:absolute; inset:-3px; border-radius:50%; border:1px solid var(--b-med); animation:ivRingPulse 2.5s ease-in-out infinite; }
.iv-ev-icon-ring svg { width:26px; height:26px; }
@keyframes ivKillIn { from{opacity:0;transform:translateX(-8px);} to{opacity:1;transform:translateX(0);} }
.iv-lk-item { animation: ivKillIn .3s ease; }
.iv-ev-mini.active-ev::after { content:''; position:absolute; top:0; left:0; bottom:0; width:2px; background: var(--sapphire-hi); border-radius:var(--r-sm) 0 0 var(--r-sm); }

/* Progress bars */
.iv-progress { width:100%; height:4px; background:rgba(0,0,0,0.5) !important; border-radius:2px; overflow:hidden; margin-top:4px; }
.iv-progress-fill { height:100%; background:linear-gradient(90deg,var(--sapphire),var(--sapphire-hi)); border-radius:2px; }
.iv-stat-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.iv-stat-row:last-child { margin-bottom:0; }
.iv-ucp-section { margin-bottom:16px; }
.iv-ucp-sec-toggle { margin-left:auto; font-size:9px; transition:transform .3s; }
.iv-ucp-section.collapsed .iv-ucp-sec-toggle { transform:rotate(-90deg); }
.iv-ucp-items { max-height:500px; overflow:hidden; transition:max-height .3s ease; }
.iv-ucp-section.collapsed .iv-ucp-items { max-height:0; }
.iv-ucp-item-icon { width:20px; height:20px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.iv-ucp-item-icon svg { width:15px; height:15px; stroke-width:1.8; stroke: var(--silver-dim); }
.iv-ucp-item:hover .iv-ucp-item-icon svg { stroke: var(--sapphire-hi); }
.iv-ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
