/* =============================================================
   L2 RUSH - SITEWIDE BLUE UI
   Loaded after global.css and before rush-info.css.
   Keeps the original PHP/HTML logic; only modernizes presentation.
   ============================================================= */

:root {
    --rush-bg: #030a12;
    --rush-panel: rgba(5, 16, 31, .96);
    --rush-panel-2: rgba(8, 23, 41, .94);
    --rush-panel-3: rgba(11, 31, 54, .92);
    --rush-line: rgba(79, 185, 255, .20);
    --rush-line-strong: rgba(76, 189, 255, .42);
    --rush-blue: #35b8ff;
    --rush-blue-2: #1676d6;
    --rush-blue-3: #0d4f91;
    --rush-text: #dcefff;
    --rush-muted: #829ab0;
    --rush-dark: #06101d;
}

body {
    color: var(--rush-text);
    background-color: #000;
}

/* ---------- Page shell / header transition ---------- */
section {
    position: relative;
    width: 1100px;
    padding: 30px 24px 42px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    background:
        radial-gradient(circle at 50% 0, rgba(38, 150, 245, .11), transparent 24%),
        linear-gradient(180deg, rgba(4, 13, 24, .98), rgba(2, 8, 15, .995));
    border-top: 1px solid rgba(71, 190, 255, .42);
    border-left: 1px solid rgba(63, 164, 237, .11);
    border-right: 1px solid rgba(63, 164, 237, .11);
    box-shadow: 0 -12px 35px rgba(16, 115, 205, .10), inset 0 28px 55px rgba(0,0,0,.28);
}

/* Do not repeat/crop the character artwork at the join between bg-top and the
   page.  The old content_top image duplicated the legs and made the seam
   obvious.  This small CSS ornament gives us a clean, resolution-independent
   transition instead. */
section::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59,179,255,.22) 14%, rgba(96,207,255,.85) 50%, rgba(59,179,255,.22) 86%, transparent 100%);
    box-shadow: 0 0 16px rgba(40,160,255,.35);
}
section::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: -8px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    box-sizing: border-box;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #7bdcff 0%, #168fe6 48%, #062b50 100%);
    border: 1px solid #8ce2ff;
    box-shadow: 0 0 13px rgba(47,178,255,.75), inset 0 0 5px rgba(255,255,255,.42);
}

/* ---------- Main content ---------- */
article {
    float: none;
    width: 620px;
    margin: 0;
    padding: 18px 20px 26px;
    box-sizing: border-box;
    color: var(--rush-text);
    background:
        radial-gradient(circle at 100% 0, rgba(34, 132, 216, .09), transparent 34%),
        linear-gradient(145deg, rgba(8, 21, 38, .98), rgba(3, 10, 19, .98));
    border: 1px solid var(--rush-line);
    border-radius: 11px;
    box-shadow: 0 18px 45px rgba(0,0,0,.40), inset 0 1px rgba(255,255,255,.035);
}

article .page {
    width: 100%;
    color: #a9c0d3;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 12px;
    line-height: 1.52;
}

article img,
article object {
    max-width: 100% !important;
}

article h1,
article h2,
article h3,
article h4 {
    color: #e8f7ff;
    text-shadow: 0 0 18px rgba(49,165,255,.16);
}

article h1 {
    margin: 10px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: normal;
}
article h2 { font-size: 20px; }
article h3 { font-size: 16px; }

article hr {
    border: 0;
    height: 1px;
    margin: 16px 0;
    background: linear-gradient(90deg, transparent, rgba(72,176,255,.42), transparent);
}

/* ---------- Main navigation ---------- */
article > nav {
    position: relative;
    z-index: 30;
    width: 100%;
    height: 82px;
    padding: 6px;
    margin: 0 0 14px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    background: rgba(2, 10, 20, .78);
    border: 1px solid rgba(75, 178, 247, .18);
    border-radius: 9px;
    box-shadow: inset 0 0 22px rgba(0,0,0,.48);
}

/* IMPORTANT: o1 and o3 are direct <a> elements.  They must stay in the grid.
   Only the inner links inside the dropdown <span> elements are absolute. */
article > nav > a,
article > nav > span {
    position: relative;
    float: none;
    display: block;
    width: auto;
    height: 68px;
    margin: 0 !important;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(25,61,92,.38), rgba(7,22,38,.70)) !important;
    border: 1px solid rgba(85,180,244,.14);
    border-radius: 7px;
    box-shadow: inset 0 1px rgba(255,255,255,.03);
    transition: .18s ease;
}

article > nav > span > a {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

article > nav > a::before,
article > nav > span::before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 94px;
    height: 46px;
    left: 50%;
    top: 2px;
    margin-left: -47px;
    background-image: url('../imgs/menu.png');
    background-repeat: no-repeat;
    background-size: 470px 59px;
    filter: invert(1) brightness(1.55) saturate(.72) drop-shadow(0 0 6px rgba(72,183,255,.24));
    opacity: .88;
    pointer-events: none;
}
article > nav > .o1::before { background-position: 0 0; }
article > nav > .o2::before { background-position: -94px 0; }
article > nav > .o3::before { background-position: -188px 0; }
article > nav > .o4::before { background-position: -282px 0; }
article > nav > .o5::before { background-position: -376px 0; }

article > nav > a::after,
article > nav > span::after {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 5px;
    text-align: center;
    color: #d7efff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    letter-spacing: .25px;
    text-shadow: 0 1px 2px #000, 0 0 8px rgba(73,180,255,.22);
    pointer-events: none;
}
article > nav > .o1::after { content: "HOME"; }
article > nav > .o2::after { content: "SERVER"; }
article > nav > .o3::after { content: "DOWNLOAD"; }
article > nav > .o4::after { content: "ACCOUNT"; }
article > nav > .o5::after { content: "STATISTIC"; }

article > nav > a:hover,
article > nav > span:hover {
    background: linear-gradient(180deg, rgba(24,118,204,.48), rgba(8,44,81,.66)) !important;
    border-color: rgba(82,190,255,.46);
    box-shadow: 0 0 18px rgba(25,135,226,.18), inset 0 1px rgba(255,255,255,.06);
    transform: translateY(-1px);
}
article > nav > a:hover::before,
article > nav > span:hover::before { opacity: 1; }

article > nav > span > div {
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 72px;
    left: 50%;
    width: 178px;
    height: auto;
    padding: 6px;
    transform: translateX(-50%) translateY(4px);
    overflow: visible;
    background: rgba(3, 12, 23, .985);
    border: 1px solid rgba(65, 169, 239, .28);
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(0,0,0,.58);
    transition: .18s ease;
}
article > nav > span:hover > div {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: 178px;
    height: auto;
    padding: 6px;
    transform: translateX(-50%) translateY(0);
    background: rgba(3, 12, 23, .985);
}
article > nav > span > div > a {
    position: static;
    display: block;
    width: auto;
    height: 30px;
    line-height: 30px;
    margin: 0 0 3px;
    padding: 0 10px;
    color: #9fc3df !important;
    background: rgba(12, 31, 51, .88);
    border: 1px solid rgba(74,166,231,.13);
    border-radius: 5px;
    box-shadow: none;
    font-size: 10px !important;
}
article > nav > span > div > a:hover {
    color: #fff !important;
    background: rgba(25,112,189,.44);
    border-color: rgba(76,186,255,.34);
}

/* ---------- Sidebars ---------- */
aside {
    float: none;
    flex: 0 0 190px;
    width: 190px;
    padding: 0;
    box-sizing: border-box;
    color: #a9c0d3;
}

aside .box {
    width: 190px;
    margin: 0 0 14px;
    padding: 10px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(8,22,39,.95), rgba(3,11,21,.96));
    border: 1px solid rgba(75,174,240,.16);
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(0,0,0,.27), inset 0 1px rgba(255,255,255,.025);
}

aside .box .title {
    width: auto;
    height: 34px;
    margin: -10px -10px 10px;
    padding: 0 11px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(18,105,184,.36), rgba(8,38,69,.52));
    border-bottom: 1px solid rgba(70,180,255,.22);
    border-radius: 9px 9px 0 0;
}
aside .box .title .bg { display: none !important; }
aside .box .title .txt {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 34px;
    line-height: 34px;
    background: none !important;
    color: #d9f2ff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    letter-spacing: .2px;
    text-transform: uppercase;
}
aside .box .title .txt::after { display:block; }

.en aside .box .title .txt.t1::after { content:"User Control Panel"; }
.en aside .box .title .txt.t2::after { content:"Statistics"; }
.en aside .box .title .txt.t3::after { content:"Top PvP"; }
.en aside .box .title .txt.t4::after { content:"Top PK"; }
.en aside .box .title .txt.t5::after { content:"Donations"; }
.en aside .box .title .txt.t6::after { content:"Help Us Voting"; }
.en aside .box .title .txt.t7::after { content:"Gallery"; }
.es aside .box .title .txt.t1::after { content:"Panel de Usuario"; }
.es aside .box .title .txt.t2::after { content:"Estadísticas"; }
.es aside .box .title .txt.t3::after { content:"Top PvP"; }
.es aside .box .title .txt.t4::after { content:"Top PK"; }
.es aside .box .title .txt.t5::after { content:"Donaciones"; }
.es aside .box .title .txt.t6::after { content:"Vota por RUSH"; }
.es aside .box .title .txt.t7::after { content:"Galería"; }
.pt aside .box .title .txt.t1::after { content:"Painel do Usuário"; }
.pt aside .box .title .txt.t2::after { content:"Estatísticas"; }
.pt aside .box .title .txt.t3::after { content:"Top PvP"; }
.pt aside .box .title .txt.t4::after { content:"Top PK"; }
.pt aside .box .title .txt.t5::after { content:"Doações"; }
.pt aside .box .title .txt.t6::after { content:"Vote no RUSH"; }
.pt aside .box .title .txt.t7::after { content:"Galeria"; }

/* Login / account box */
.fieldsBox {
    width: 168px;
    padding: 1px;
    box-sizing: border-box;
    background: rgba(61,156,226,.18);
    border: 1px solid rgba(75,173,239,.20);
    border-radius: 7px;
}
.fieldsBox .inpt {
    width: 164px;
    height: 31px;
    line-height: 31px;
    box-sizing: border-box;
    background: rgba(1,8,15,.82);
    color: #dcefff;
    box-shadow: inset 0 0 12px rgba(0,0,0,.30);
}
.fieldsBox .inpt.pass {
    width: 164px;
    margin-top: 1px;
    padding-right: 64px;
}
.fieldsBox .acc_icon.user { top: 11px; }
.fieldsBox .acc_icon.pass { top: 43px; }
.fieldsBox .gologin {
    right: 3px;
    bottom: 3px;
    width: 57px;
    height: 27px;
}
.loginarea .ess { padding-left: 2px; }
.anpc,
.logged {
    background: rgba(1,8,15,.78);
    color: #7893a8;
    border: 1px solid rgba(75,173,239,.10);
}
.logged span { color: #7bd4ff; }

/* Buttons */
article a.default,
a.default,
span.default,
input.default,
.rankings_options > div a {
    background: linear-gradient(180deg, #1b9bea 0%, #0c66bb 100%);
    border-color: #268fd7;
    color: #effaff !important;
    box-shadow: inset 0 1px rgba(255,255,255,.18), 0 4px 10px rgba(0,0,0,.18);
}
article a.default:hover,
a.default:hover,
input.default:hover,
span.default:hover,
.rankings_options > div a:hover {
    background: linear-gradient(180deg, #38bdff 0%, #147bd5 100%);
    border-color: #57c7ff;
}

/* Sidebar statistics buttons: keep the Lineage icons, but place them in a card */
.statsButtons {
    width: 168px;
    margin: 0 auto;
}
.statsButtons a {
    width: 168px;
    height: 43px;
    margin: 0 0 5px;
    overflow: hidden;
    border: 1px solid rgba(78,169,229,.14);
    border-radius: 6px;
    background-size: 339px auto;
    opacity: .89;
}
.statsButtons a:hover {
    border-color: rgba(73,188,255,.38);
    opacity: 1;
    box-shadow: 0 0 15px rgba(35,151,231,.13);
}

.indexRank {
    width: 166px;
    color: #a9c0d3;
}
.indexRank > div {
    height: 27px;
    line-height: 27px;
    padding: 0 5px;
    box-sizing: border-box;
    background: none;
    border-bottom: 1px solid rgba(92,170,222,.10);
}
.indexRank > div > span { color: #69c8ff; }

/* Donate image receives the same card treatment */
a.donateBanner {
    width: 168px;
    height: 81px;
    margin: 0 auto;
    background-position: center center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    border: 1px solid rgba(78,170,231,.15);
    border-radius: 7px;
    overflow: hidden;
}

/* Server status remains green/red according to the original image. */
.serverStatus {
    width: 180px;
    margin: 12px auto 3px;
}
.players_on {
    width: 176px;
    margin: 0 auto 14px;
    background: rgba(2,10,18,.90);
    color: #7891a6;
    border: 1px solid rgba(72,164,224,.11);
    border-radius: 6px;
}
.players_on span { color: #42e75f; }

.galleryBox { width: 168px; }
.galleryBox > div { width: 180px; }
.galleryBox a,
.galleryBox a div,
.galleryBox a img { width: 48px; height: 48px; }
.galleryBox a {
    margin: 0 6px 6px 0;
    border-color: rgba(89,181,244,.18);
    border-radius: 5px;
    overflow: hidden;
}

/* ---------- Common page components ---------- */
.news {
    padding: 11px;
    margin: 0 0 10px;
    background: rgba(8,22,38,.62);
    border: 1px solid rgba(77,169,229,.13);
    border-radius: 8px;
}
.news a.imgn {
    border: 1px solid rgba(75,183,248,.22);
    border-radius: 6px;
    overflow: hidden;
}
.news a.titlen { color: #6ac9ff !important; }
.news .textn { color: #8fa8bc; }
.news .finalinfo { color: #607c94; }
.shadownew { opacity: .20; }

.banner {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(76,178,242,.19);
    box-shadow: 0 12px 28px rgba(0,0,0,.27);
}

/* Tables and generic form fields used by rankings, registration and pages. */
article table {
    color: #a9c0d3;
    border-color: rgba(76,166,226,.15) !important;
}
article table td,
article table th {
    border-color: rgba(76,166,226,.12) !important;
}
article table th {
    color: #dff3ff;
    background: rgba(18,81,135,.28);
}
article input[type="text"],
article input[type="password"],
article input[type="email"],
article select,
article textarea {
    color: #dcefff;
    background: rgba(3,13,24,.92);
    border: 1px solid rgba(78,173,235,.24);
    border-radius: 5px;
    outline: none;
}
article input:focus,
article select:focus,
article textarea:focus {
    border-color: rgba(65,190,255,.58);
    box-shadow: 0 0 0 2px rgba(38,145,224,.09);
}

/* Countdown: old inline CSS paints it black; override it for the dark panel. */
#soon-glow,
#soon-glow .soon-label,
#soon-glow .soon-ring-progress,
.soon[data-face*="glow"] .soon-separator,
.soon[data-face*="glow"] .soon-slot-inner {
    color: #dff5ff !important;
    text-shadow: 0 0 .25rem rgba(57,178,255,.35) !important;
}
#soon-glow .soon-ring-progress { background-color: rgba(70,177,244,.12) !important; }

/* ---------- Footer ---------- */
footer {
    width: 1050px;
    height: 96px;
    padding-top: 34px;
    color: #7891a6;
    font-weight: normal;
    border-top: 1px solid rgba(70,166,229,.09);
}

/* ---------- Information page integration ---------- */
section.rush-info-mode {
    display: flex;
    padding: 30px 50px 42px;
}
section.rush-info-mode > article {
    width: 1000px;
}

/* ---------- Smaller desktop / browser zoom safety ---------- */
@media (max-width: 1120px) {
    body, html, .all { min-width: 1100px; }
}

/* =========================================================
   RUSH V3 - LANGUAGE SELECTOR POSITION
   The selector lives inside <section>, which is positioned in
   the RUSH theme. Pull it back into the hero/header area and
   pin it to the upper-left corner of the 1100px site wrapper.
   ========================================================= */
section > .langs {
    position: absolute !important;
    top: -375px !important;
    left: 18px !important;
    right: auto !important;
    width: 140px !important;
    height: 34px !important;
    z-index: 250 !important;
    margin: 0 !important;
}

section > .langs .bg {
    width: 138px !important;
    height: 34px !important;
    background: rgba(2, 12, 25, 0.78) !important;
    border: 1px solid rgba(48, 174, 255, 0.45) !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    box-shadow: 0 0 12px rgba(0, 145, 255, 0.18) !important;
    opacity: 1 !important;
}

section > .langs .links {
    left: 4px !important;
    top: 4px !important;
}
