/* L2Elite — estilos */

:root {
    --red: #c60b0b;
    --bg: #020202;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: #fff;
    font: 11px Arial, Helvetica, sans-serif;
}

/* Fondo de toda la web: se activa solo si existe assets/img/background.jpg */
body.has-bg {
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

a { text-decoration: none; outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #ff6a5e; outline-offset: -2px; }
a:hover, button:hover { filter: brightness(1.35); }

/* ---------- Header / logo ---------- */
.top {
    max-width: 950px;
    margin: 0 auto;
    padding: 28px 8px 0;
}
.logo { display: block; width: 300px; max-width: 100%; }
.logo img { display: block; max-width: 100%; height: auto; }
.logo-ph {
    display: flex; align-items: center; justify-content: center;
    height: 100px;
    border: 1px dashed #5a1a1a;
    color: #a08585;
    font-size: 12px; letter-spacing: 5px;
}

/* ---------- Layout ---------- */
.wrap {
    max-width: 950px;
    margin: 20px auto 0;
    padding: 0 8px;
    display: flex; flex-wrap: wrap; align-items: flex-start;
}
.left  { position: relative; flex: 0 0 280px; width: 280px; }
.right { position: relative; flex: 1 1 560px; max-width: 670px; min-width: 0; }

/* Ornamentos superiores */
.orn { position: absolute; top: 0; width: 280px; height: 68px; pointer-events: none; }
.orn svg { display: block; filter: drop-shadow(0 0 5px #b00000); }
.orn-side { left: 0; }
.orn-main { left: 50%; margin-left: -140px; }

/* ---------- Columna izquierda ---------- */
.sidepanel {
    margin-top: 31px;
    padding: 21px 0 22px;
    border-left: 1px solid #260303;
    background: linear-gradient(180deg, #040000 0%, #100101 25%, #1e0101 60%, #0a0000 100%);
}

.nav { width: 235px; max-width: 100%; margin: 0 auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav li + li::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #3a0303 18%, #3a0303 82%, transparent);
}
.nav a, .nav button {
    display: block; width: 100%; height: 33px; padding: 0;
    background: none; border: 0; cursor: pointer;
    text-align: center; text-transform: uppercase;
    color: var(--red);
    font: 700 11px/33px Arial, Helvetica, sans-serif;
}

.raid {
    display: block;
    width: 266px; max-width: calc(100% - 12px); height: 113px;
    margin: 20px 0 0 12px; padding-top: 27px;
    text-align: center;
    border: 1px solid #2a0505;
    border-top-color: #9e0000; border-bottom-color: #9e0000;
    border-radius: 3px;
    background: radial-gradient(ellipse at 50% 70%, #1a0202, #060000 75%);
    box-shadow: inset 0 0 18px #200000;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
}
.raid b    { display: block; font-size: 27px; line-height: 30px; color: #a80d0d; }
.raid span { display: block; font-size: 22px; line-height: 28px; color: #d4d4d4; }

/* ---------- Panel principal ---------- */
.panel {
    position: relative;
    margin-top: 31px;
    min-height: 572px;
    background: #120202;
    border-top: 2px solid #750000;
    border-left: 1px solid #8a0101;
    border-right: 1px solid #620101;
    border-bottom: 1px solid #9e0000;
    box-shadow:
        inset 0 8px 10px -6px #3a0000,
        inset 6px 0 8px -4px #2b0000,
        inset -6px 0 8px -4px #2b0000,
        inset 0 -8px 10px -6px #3e0000;
}

.ptitle {
    margin: 12px 10px 0; height: 48px; padding: 0 11px;
    border: 1px solid #2a0505; background: #180303;
    color: var(--red);
    font: 400 14px/46px Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}
.pbox {
    margin: 16px 10px 0; padding: 22px 26px 28px;
    border: 1px solid #240404; background: #0e0101;
    line-height: 15px;
}
.status { font-size: 16px; line-height: 18px; color: #008000; }
.status.off { color: #b00000; }
.rates { margin-top: 26px; font-size: 13px; line-height: 15px; }
.desc  { margin-top: 14px; max-width: 540px; font-size: 13px; line-height: 15px; }

.foot {
    margin-top: 20px; padding-bottom: 40px;
    font-size: 10px; line-height: 12px;
    text-transform: uppercase; color: #7a7a7a;
}

/* ---------- Popups ---------- */
.dlg {
    width: min(660px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0; border: 0; overflow: auto;
    background: transparent; color: #fff;
    font: 11px Arial, Helvetica, sans-serif;
}
.dlg::backdrop { background: rgba(0, 0, 0, .86); }

.dlg-in {
    background: #120202;
    border-top: 2px solid #750000;
    border-left: 1px solid #8a0101;
    border-right: 1px solid #620101;
    border-bottom: 1px solid #9e0000;
    box-shadow: inset 0 8px 10px -6px #3a0000, inset 0 -8px 10px -6px #3e0000, 0 0 60px #3a0000;
}
.dlg-head {
    margin: 12px 10px 0; height: 48px; padding: 0 6px 0 11px;
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid #2a0505; background: #180303;
}
.dlg-head h2 { margin: 0; font: 400 14px Arial, Helvetica, sans-serif; text-transform: uppercase; color: var(--red); }
.x {
    width: 36px; height: 36px; padding: 0; cursor: pointer;
    background: none; border: 1px solid #3a0303; color: #e0e0e0; font-size: 16px; line-height: 1;
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 10px 0; }
.btn {
    display: inline-block; height: 44px; padding: 0 18px; cursor: pointer;
    background: #180303; color: #e0e0e0; border: 1px solid #3a0303;
    font: 700 11px/42px Arial, Helvetica, sans-serif; text-transform: uppercase;
}
.btn.on { background: #5a0606; color: #fff; border-color: #9e0000; }

.dlg-body {
    margin: 12px 10px; padding: 20px 26px; min-height: 220px;
    border: 1px solid #240404; background: #0e0101;
    font-size: 13px; line-height: 21px;
}
.dlg-body.dl { margin-top: 16px; line-height: 19px; }
.dlg-body ul, .dlg-body ol { margin: 0; padding-left: 20px; }
.muted { color: #a89a9a; }

.row {
    display: flex; justify-content: space-between; gap: 12px;
    margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #240404;
}
.row:last-child { margin: 0; padding: 0; border: 0; }

.dl-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #240404;
}
.dl-btns { display: flex; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .left  { flex: 1 1 100%; width: 100%; }
    .right { flex: 1 1 100%; max-width: none; margin-top: 24px; }
    .logo  { width: 220px; }
}