/*!
    
 =========================================================
 * WebEngine CMS
 * https://webenginecms.org/
 =========================================================
 * Licensed under the MIT license
 * http://opensource.org/licenses/MIT
 =========================================================
 
*/
.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;
}

/* Fluid layout - container ocupa toda la pantalla menos 50px de cada lado */
html {
    min-width: unset;
}

body {
    background: #020202 url('../img/background.jpg') no-repeat top center !important;
}

body {
    background-position: center -150px !important; /* Mueve la imagen de fondo principal hacia arriba */
}

#container,
.footer {
    width: calc(100% - 100px) !important;
    max-width: none !important;
}

#container {
    background: transparent !important;
}

#header {
    padding: 10px 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header .header-logo-wrap {
    flex-shrink: 0;
    margin-left: 200px; /* Movido ligeramente a la derecha */
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: bold;
    color: #dbb778; /* Mismo color que el borde de la derecha */
    margin-bottom: 5px;
    user-select: none;
}

#header .webengine-mu-logo {
    max-height: 350px;
    width: auto;
}

.header-logo-slogan1 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: bold;
    color: #fdf5e6; /* Blanco hueso (Old Lace) */
    margin-top: 10px;
    letter-spacing: 2px;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
    text-align: center;
    user-select: none;
}

.header-logo-slogan2 {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: #fdf5e6; /* Blanco hueso */
    letter-spacing: 1px;
    margin-top: 2px;
    text-shadow: 0px 1px 3px rgba(0,0,0,0.8);
    text-align: center;
    user-select: none;
}

.header-logo-join-wrap {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.header-join-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 75px;
    text-decoration: none !important;
}

.header-join-btn::before,
.header-join-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 1;
}

.header-join-btn::before {
    background-image: url('../img/btn_join.png');
}

.header-join-btn::after {
    background-image: url('../img/btn_join_hover.png');
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-join-btn:hover {
    color: #ffffff !important;
}

.header-join-btn:hover::after {
    opacity: 1;
}

.header-join-title {
    position: relative;
    z-index: 2;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#header .header-server-status {
    position: relative;
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: #020202;
    padding: 20px; /* Increased padding slightly since corners are inside now */
    box-sizing: border-box;
    border: 1px solid rgba(219, 183, 120, 0.35); /* Color extraído del SVG (#dbb778) con 35% de opacidad */
}

.status-corner {
    position: absolute;
    width: 44px;
    height: 44px;
    background: url('../img/borders/borde.svg') no-repeat center center;
    background-size: contain;
    pointer-events: none; /* So they don't block clicks */
    opacity: 0.35; /* Reducimos la opacidad para que haga juego con las líneas */
}

/* El SVG por defecto apunta a la esquina inferior izquierda */
/* Con -2px alineamos la línea interior del SVG (que tiene un pequeño margen) con el borde CSS */
.corner-bl {
    bottom: -2px;
    left: -2px;
    transform: rotate(0deg);
}

.corner-tl {
    top: -2px;
    left: -2px;
    transform: rotate(90deg);
}

.corner-tr {
    top: -2px;
    right: -2px;
    transform: rotate(180deg);
}

.corner-br {
    bottom: -2px;
    right: -2px;
    transform: rotate(270deg);
}

#header .header-server-status-title {
    font-family: 'Cinzel', serif;
    font-size: 15px; /* Agrandado */
    font-weight: bold;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(219, 183, 120, 0.35);
    padding-bottom: 8px;
    width: 100%;
    text-align: center;
}

.server-status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.server-status-dot {
    width: 12px; /* Agrandado para hacer juego con el texto */
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.server-status-label {
    font-family: 'Cinzel', serif;
    font-size: 18px; /* Agrandado a petición */
    letter-spacing: 2px;
    font-weight: bold;
}

.server-status-online .server-status-dot {
    background: #00e676;
    box-shadow: 0 0 6px #00e676;
    animation: pulse-online 2s infinite;
}

.server-status-online .server-status-label {
    color: #00e676;
}

.server-status-offline .server-status-dot {
    background: #ff3d3d;
    box-shadow: 0 0 6px #ff3d3d;
}

.server-status-offline .server-status-label {
    color: #ff3d3d;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px #00e676; }
    50%       { opacity: 0.5; box-shadow: 0 0 12px #00e676; }
}

/* Bloques con bordes SVG (Reutilizable) */
.custom-bordered-block {
    position: relative;
    background-color: #020202; /* Fondo oscuro idéntico al panel de estado */
    box-sizing: border-box;
    border: 1px solid rgba(219, 183, 120, 0.35); /* Borde haciendo juego con el SVG */
}

/* Home News Block - Estilo con marco SVG */
.home-news-block {
    padding: 20px;
    margin-bottom: 20px;
}

/* Bloque de características (debajo de las noticias) */
.home-features-block {
    padding: 30px 20px;
    margin-bottom: 20px;
    width: 100%;
    user-select: none;
}

.home-features-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: bold;
    color: #dbb778; /* Color dorado a petición */
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.5);
}

.features-grid {
    display: flex;
    flex-wrap: nowrap; /* Fuerza a que entren todos en una línea */
    gap: 10px;
    justify-content: center;
}

.feature-card {
    flex: 1; /* Distribuye el espacio equitativamente */
    min-width: 0;
    min-height: 115px; /* Estira un poco la tarjeta hacia abajo */
    padding: 15px 5px; /* Aumenta el margen interno vertical */
    display: flex;
    flex-direction: column; /* Apila la imagen y el texto verticalmente */
    justify-content: center; /* Centra el contenido verticalmente */
    align-items: center;
}

.feature-card img {
    max-width: 100%;
    max-height: 40px; /* Reducido aún más para el nuevo ancho */
    height: auto;
    display: block;
}

/* Achicar las esquinas exclusivamente dentro de las cards */
.feature-card .status-corner {
    width: 20px;
    height: 20px;
}

.feature-card-title {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: bold;
    color: #dbb778; /* Dorado */
    margin-top: 10px;
    text-align: center;
    line-height: 1.2;
}

.feature-card-desc {
    font-family: 'PT Sans', sans-serif;
    font-size: 10px;
    color: #fdf5e6; /* Blanco hueso */
    text-align: center;
    margin-top: 3px;
    line-height: 1.2;
}

.header-online-players {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.header-online-players-label {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.header-online-players-count {
    font-family: 'PT Sans', sans-serif;
    font-size: 26px; /* Agrandado */
    font-weight: bold;
    color: #ffffff;
    margin-top: 2px;
}

.header-download-wrap {
    width: 100%;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(219, 183, 120, 0.35);
    display: flex;
    justify-content: center;
}

.header-download-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 90px;
    text-decoration: none !important;
}

/* Pseudo-elementos para lograr la transición suave entre las dos imágenes de fondo */
.header-download-btn::before,
.header-download-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 1;
}

.header-download-btn::before {
    background-image: url('../img/btn_download.png');
}

.header-download-btn::after {
    background-image: url('../img/btn_download_hover.png');
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-download-btn:hover {
    color: #ffffff !important;
}

.header-download-btn:hover::after {
    opacity: 1;
}

.header-download-title {
    position: relative;
    z-index: 2;
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin-top: -5px;
}

.header-download-subtitle {
    position: relative;
    z-index: 2;
    font-family: 'PT Sans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: -2px;
}

a:focus, a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.form-control {
	background: #fafafa;
	border: 1px solid #e3e3e3;
	color: #666;
}
.form-control:focus {
	border: 1px solid #ccc;
}

/* http://stackoverflow.com/questions/19562903/remove-padding-from-columns-in-bootstrap-3 */
.nopadding {
   padding: 0 !important;
   margin: 0 !important;
}

/* http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3 */
.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.thumbnail {
    background-color: #f1f1f1;
    border: 1px solid #e3e3e3;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
  border-color: #ff0000;
}

.btn-primary {
    color: #3f6588;
    background-color: transparent;
	border-color: #3f6588;
	-moz-transition: all .1s ease-in;
    -o-transition: all .1s ease-in;
    -webkit-transition: all .1s ease-in;
    transition: all .1s ease-in;
	-moz-border-radius: 0px;
	border-radius: 0px;
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
    color: #fff !important;
    background-color: #3f6588 !important;
	border-color: #3f6588 !important;
}

.form-horizontal .control-label {
	text-align: left !important;
}

/* Navbar Active Item Image */
#navbar ul li a.active,
#navbar ul li a:hover {
    position: relative;
}

#navbar ul li a.active {
    background-image: linear-gradient(to top, rgba(255, 0, 0, 0.25), transparent);
    background-repeat: no-repeat;
    background-position: bottom center;
    color: #ffffff !important;
}

#navbar ul li a:not(.active):hover {
    background-image: linear-gradient(to top, rgba(255, 0, 0, 0.15), transparent);
    background-repeat: no-repeat;
    background-position: bottom center;
    color: #ffffff !important;
}

#navbar ul li a.active::after,
#navbar ul li a:not(.active):hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 100%;
    height: 10px;
    background: url('../img/navbar_active.png') no-repeat center bottom;
    pointer-events: none;
}

#navbar ul li a:not(.active)::after {
    opacity: 0;
    transition: opacity .3s ease;
}

#navbar ul li a:not(.active):hover::after {
    opacity: 1;
}

/* Custom Info Page Glass Table - Red and Gold */
.page-info-custom h2 {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 24px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 5px;
}

.info-glass-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #020202;
    border: 1px solid rgba(219, 183, 120, 0.35);
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    color: #fff;
}

.info-glass-table thead {
    background: url('../img/texture.png') no-repeat center center;
    background-size: 100% 100%;
}

.info-glass-table th {
    padding: 15px;
    text-align: left;
    font-family: 'Cinzel', serif;
    color: #ffd700;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    border-bottom: 1px solid rgba(255, 215, 0, 0.5) !important;
}

.info-glass-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1) !important;
    font-family: 'PT Sans', sans-serif;
    background-color: transparent !important;
}

.info-glass-table tbody tr {
    transition: background-color 0.3s ease;
    background-color: transparent !important;
}

.info-glass-table tbody tr:nth-child(odd),
.info-glass-table tbody tr:nth-child(even) {
    background-color: transparent !important;
}

.info-glass-table tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.1) !important;
}

.info-glass-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Custom Downloads Page Glass Panels - Red and Gold */
.info-glass-panel {
    position: relative;
    background-color: #020202;
    border: 1px solid rgba(219, 183, 120, 0.35);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-bottom: 25px;
    overflow: hidden;
    color: #fdf5e6;
}

/* Custom Page Form Controls (UserCP, etc) */
/* Custom Page Form Controls (UserCP, etc) */
.page-info-custom .form-control {
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(219, 183, 120, 0.35) !important;
    color: #dbb778 !important;
    transition: all 0.3s ease;
}

.page-info-custom .form-control:focus {
    border-color: #ffd700 !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3) !important;
    outline: none !important;
}

.page-info-custom select.form-control option {
    background: #020202 !important;
    color: #dbb778 !important;
}

.page-info-custom label,
.page-info-custom .control-label {
    color: #fdf5e6 !important;
    font-weight: normal !important;
}

/* Strip inner panels (Add Stats, Buy Zen, etc) of their white backgrounds */
.page-info-custom .panel,
.page-info-custom .panel-general,
.page-info-custom .panel-addstats {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
}

.page-info-custom .panel-body,
.page-info-custom .panel-footer {
    background: transparent !important;
    color: #fff !important;
    border-top: 1px solid rgba(219, 183, 120, 0.35) !important;
}

.page-info-custom .panel-heading {
    background: transparent !important;
    border-bottom: 1px solid rgba(219, 183, 120, 0.35) !important;
    color: #ffd700 !important;
    font-family: 'Cinzel', serif;
}

/* Fix MyAccount Characters Text Colors */
.page-info-custom .myaccount-character-block {
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(219, 183, 120, 0.35) !important;
}

.page-info-custom .myaccount-character-name a {
    color: #ffd700 !important;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.page-info-custom .myaccount-character-block-location {
    color: #fdf5e6 !important;
}

/* Global Page Titles Redesign */
.page-title,
.page-title span {
    color: #ffd700 !important;
    font-family: 'Cinzel', serif !important;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8) !important;
}

.page-title {
    border-bottom: 2px solid rgba(219, 183, 120, 0.35) !important;
    background: url('../img/texture.png') no-repeat center center;
    background-size: 100% 100%;
    padding: 15px 20px !important;
    border-radius: 5px;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Footer Redesign */
.footer {
    background: #020202 !important;
    border-top: 2px solid rgba(255, 0, 0, 0.3) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    color: #dbb778 !important;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
    border-radius: 0 !important;
    width: 100% !important;
    margin: 50px 0 0 0 !important;
}

.footer > .footer-container {
    max-width: 1040px;
    margin: 0 auto;
}

.footer hr {
    border-top: 1px solid rgba(219, 183, 120, 0.35) !important;
}

.footer a {
    color: #ffd700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #ff4c4c !important;
    text-shadow: 0 0 5px rgba(255, 76, 76, 0.5);
}

/* Darken usercp_bg.jpg */
.info-glass-panel.panel-usercp {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../img/usercp_bg.jpg') no-repeat top center !important;
    background-size: cover !important;
}

/* UserCP Menu Links Styling */
.info-glass-panel.panel-usercp ul li a {
    color: #ff4c4c !important; /* Warm Red */
    font-family: 'Cinzel', serif;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.info-glass-panel.panel-usercp ul li a:hover {
    color: #ffd700 !important; /* Gold */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    transform: translateX(5px);
}

/* Custom Rankings Page Menus & Filters */
.page-info-custom .rankings_menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    background: #020202;
    padding: 15px;
    border: 1px solid rgba(219, 183, 120, 0.35);
    border-radius: 10px;
    position: relative;
}

.page-info-custom .rankings_menu a {
    background: linear-gradient(135deg, rgba(120, 0, 0, 0.5) 0%, rgba(60, 0, 0, 0.5) 100%);
    border: 1px solid rgba(219, 183, 120, 0.35);
    color: rgba(253, 245, 230, 0.8);
    padding: 8px 15px;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.page-info-custom .rankings_menu a.active,
.page-info-custom .rankings_menu a:hover {
    background: linear-gradient(135deg, #8a0000 0%, #4a0000 100%);
    border-color: #ffd700;
    color: #ffd700 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.page-info-custom .rankings-class-filter {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-info-custom .rankings-class-filter li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: #020202;
    border: 1px solid rgba(219, 183, 120, 0.35);
    border-radius: 10px;
    color: rgba(253, 245, 230, 0.8);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    min-width: 80px;
}

.page-info-custom .rankings-class-filter li a:hover,
.page-info-custom .rankings-class-filter li a:not(.rankings-class-filter-grayscale) {
    background: linear-gradient(135deg, rgba(120, 0, 0, 0.8) 0%, rgba(60, 0, 0, 0.8) 100%);
    border-color: #ffd700;
    color: #ffd700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.page-info-custom .rankings-class-filter-image {
    max-width: 35px;
    height: auto;
    margin-bottom: 8px;
}

.page-info-custom .rankings-class-filter-grayscale img {
    filter: grayscale(100%) brightness(70%);
    transition: filter 0.3s ease;
}

.page-info-custom .rankings-class-filter li a:hover img {
    filter: none;
}

.info-glass-panel .panel-title {
    background: url('../img/texture.png') no-repeat center center;
    background-size: 100% 100%;
    padding: 12px 20px;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #ffd700;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid rgba(219, 183, 120, 0.35);
}

.info-glass-panel .panel-body {
    padding: 20px;
}

/* Hide all sidebar banners globally */
.sidebar-banner {
    display: none !important;
}

.info-glass-panel .info-glass-table {
    margin-bottom: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.info-glass-panel .download-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.info-glass-panel .btn-primary {
    background: linear-gradient(135deg, #8a0000 0%, #4a0000 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    color: #ffd700 !important;
    border-radius: 4px;
    padding: 5px 15px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.info-glass-panel .btn-primary:hover {
    background: linear-gradient(135deg, #a80000 0%, #680000 100%) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border-color: #ffd700 !important;
    color: #fff !important;
}