/* BattleWarsMu layout additions.
   Styles that the "test" template printed inline (<style> blocks in
   PHP partials) live here, so pages can run under a strict CSP and the CSS is
   cached by the browser once. */

/* ---- small helpers ---- */

.bw-gold { color: #438ec8 !important; }
.bw-empty { padding: 12px 16px; color: #a06060; font-size: 12px; font-style: italic; text-align: center; }
.bw-muted { color: #8fa7bb; }
.bw-form-error { margin: 4px 0 8px; color: #ff8a85; font-size: 12px; text-align: center; }
.bw-back-link { margin-top: 14px; }
.bw-back-link a { color: #438ec8; }

/* ---- UserCP panel (left sidebar, logged in) ---- */
.widget.red-light.login-block {
    position: relative !important;
    padding: 12px 12px 14px !important;
    background: linear-gradient(180deg, rgba(8,12,20,.97), rgba(5,8,13,.98)) !important;
    border: 1px solid rgba(96,176,232,.26) !important;
    border-top-color: rgba(96,176,232,.5) !important;
    box-shadow: 0 18px 34px rgba(0,0,0,.42), inset 0 1px 0 rgba(150,205,245,.08) !important;
    overflow: hidden !important;
}
.widget.red-light.login-block:before,
.widget.red-light.login-block:after { content: ""; position: absolute; width: 20px; height: 20px; pointer-events: none; opacity: .9; }
.widget.red-light.login-block:before { left: 5px; top: 5px; border-left: 1px solid rgba(96,176,232,.45); border-top: 1px solid rgba(96,176,232,.45); }
.widget.red-light.login-block:after { right: 5px; bottom: 5px; border-right: 1px solid rgba(96,176,232,.4); border-bottom: 1px solid rgba(96,176,232,.4); }
.bw-ucp-panel .lk-title { margin: 0 0 12px !important; padding: 4px 8px 12px !important; text-align: center !important; border-bottom: 1px solid rgba(96,176,232,.2) !important; }
.bw-ucp-welcome { display: block; font-size: 9px; letter-spacing: 3px; color: #6f9cc2; text-align: center; margin-bottom: 3px; font-family: Georgia, serif; }
.bw-ucp-username, .bw-ucp-panel .lk-title .username.bw-ucp-username { display: block; text-align: center; font-family: Georgia, serif; font-size: 14px; font-weight: 700; letter-spacing: 2px; color: #e6f3ff !important; text-shadow: 0 0 12px rgba(96,176,232,.45), 0 2px 4px rgba(0,0,0,.6) !important; }

.bw-logout-wrap { margin: 12px 0 0 !important; padding: 12px 0 0 !important; border-top: 1px solid rgba(86, 136, 174,.16) !important; text-align: center !important; }
.bw-logout-btn {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    min-width: 120px !important; height: 34px !important; padding: 0 18px !important; cursor: pointer;
    text-transform: uppercase !important; letter-spacing: .16em !important; font-size: 10px !important; font-weight: 700 !important;
    font-family: Georgia, serif !important; color: #e2edf6 !important;
    background: linear-gradient(180deg, rgba(14,36,60,.94), rgba(5,10,18,.94)) !important;
    border: 1px solid rgba(86, 136, 174,.36) !important; border-radius: 2px !important;
}
.bw-logout-btn:hover { color: #dbe9f4 !important; border-color: rgba(136, 193, 236,.60) !important; box-shadow: 0 0 12px rgba(86, 136, 174,.16) !important; }

/* ---- Server info (right sidebar) ---- */
.bw-srv { display: flex; flex-direction: column; gap: 12px; }
.bw-srv-status { align-self: center; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border: 1px solid; }
.bw-srv-status i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.bw-srv-status.is-on { color: #7ee0a0; background: rgba(79,208,138,.08); border-color: rgba(79,208,138,.35); }
.bw-srv-status.is-on i { background: #4fd08a; box-shadow: 0 0 8px #4fd08a; animation: bwSrvPulse 1.6s ease-in-out infinite; }
.bw-srv-status.is-on b { color: var(--bw-gold-bright, #87c0ec); font-weight: 800; }
.bw-srv-status.is-off { color: #ff8a85; background: rgba(255,91,85,.08); border-color: rgba(255,91,85,.35); }
.bw-srv-status.is-off i { background: #ff5b55; box-shadow: 0 0 8px rgba(255,91,85,.6); }
/* Server Info (27.11.2026): rate cards with icons, version chips and a stats list, in the site's blue style. */
 /* one under the other */

.right-sidebar .bw-srv-list, .bw-srv-list { list-style: none !important; margin: 0 !important; padding: 4px !important; display: flex; flex-direction: column; gap: 2px;
    border-radius: 8px; background: rgba(4,8,13,.5); border: 1px solid rgba(96,176,232,.16); }
.bw-srv-list li { list-style: none !important; margin: 0 !important; display: flex; align-items: center; gap: 9px; padding: 6px 8px !important; border-radius: 6px;
    background: none !important; border: 0 !important; }
.bw-srv-list li + li { border-top: 1px solid rgba(96,176,232,.08) !important; border-radius: 0; }
.bw-srv-list li:hover { background: rgba(96,176,232,.06) !important; }
.bw-srv-list li > span { flex: 1 1 auto; min-width: 0; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fa7bb;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-srv-list li > b { flex: 0 0 auto; font-size: 14px; font-weight: 800; color: #eef4f9; font-variant-numeric: tabular-nums; }
.bw-srv-list li.is-online > span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #4fd08a; box-shadow: 0 0 6px #4fd08a; vertical-align: 1px; }
.bw-srv-list li.is-online > b { color: #7ee0a0; }
.bw-srv-list li.is-rate > b { color: #9fd3ff; font-size: 13px; }
.bw-srv-list li.is-group { margin-top: 3px !important; border-top: 1px solid rgba(96,176,232,.3) !important; padding-top: 8px !important; }
.bw-srv-list.is-installing b { color: #5f7488 !important; }
@keyframes bwSrvPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- Top guilds (right sidebar) ---- */
.bw-guild-widget { padding: 0 30px 62px !important; margin: 20px 0 !important; }
.bw-guild-widget .widget-title { margin: 0 -10px 8px !important; }
.bwg-list { display: flex; flex-direction: column; padding: 0; }
.bwg-card { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 4px 6px 5px; border-bottom: 1px solid rgba(86, 136, 174,.12); }
.bwg-card:last-child { border-bottom: none; }
.bwg-place { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; font-family: Georgia, serif; border: 1px solid rgba(86, 136, 174,.25); color: #4f7fa3; box-sizing: border-box; }
.bwg-card.r1 .bwg-place { color: #438ec8; border-color: rgba(67, 142, 200,.62); }
.bwg-card.r2 .bwg-place { color: #cfd2d6; border-color: rgba(200,205,215,.45); }
.bwg-card.r3 .bwg-place { color: #3b85bd; border-color: rgba(67, 142, 200,.42); }
.bwg-logo { width: 20px; height: 20px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.bwg-logo svg { display: block; }
.bwg-info { flex: 1; min-width: 0; }
.bwg-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; color: #dce8f1 !important; font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.bwg-card.r1 .bwg-name { color: #438ec8 !important; }
.bwg-score { flex-shrink: 0; display: flex; align-items: baseline; gap: 5px; margin-right: 4px; }
.bwg-score b { color: #4f7fa3; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.bwg-score strong { color: #3b85bd; font-size: 11.5px; font-weight: 700; line-height: 1; font-family: Georgia, serif; }
.bwg-card.r1 .bwg-score strong { color: #438ec8; }

/* ---- Castle Siege (page + sidebar widget) ---- */
.bw-castle section { margin-bottom: 22px; }
.bw-castle h2 { font-family: Georgia, serif; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: #438ec8; margin: 0 0 10px; }
.bw-castle h3 { font-size: 13px; color: #3b85bd; margin: 14px 0 8px; }
.bw-castle-owner-card { display: flex; align-items: center; gap: 18px; padding: 14px; border: 1px solid rgba(86, 136, 174,.25); background: rgba(5,8,13,.6); }
.bw-castle-mark svg { display: block; }
.bw-castle-guild { font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.bw-castle-guild a { color: #438ec8; }
.bw-table { width: 100%; color: #dce8f1; }
.bw-table th { color: #4f7fa3; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.bw-table td, .bw-table th { padding: 7px 10px !important; border-top: 1px solid rgba(86, 136, 174,.12) !important; vertical-align: middle !important; }
.bw-table td svg { display: block; }
.bw-castle-widget-body { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 4px; text-decoration: none !important; }
.bw-castle-widget-mark svg { width: 64px; height: 64px; display: block; }
.bw-castle-widget-guild { color: #438ec8; font-family: Georgia, serif; font-weight: 700; font-size: 15px; }

/* ---- Content pages ---- */
.bw-page-content { color: #dce8f1; line-height: 1.6; }
.bw-page-content h3 { color: #438ec8; font-family: Georgia, serif; font-size: 15px; margin: 18px 0 6px; }
.bw-page-content img { max-width: 100%; height: auto; }
.events-tabs-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.events-tabs-nav .event-tab-button { display: inline-block; text-decoration: none; }

/* ---- Account forms ---- */
.bw-alert { margin: 0 0 14px; }
.bw-check { display: flex; gap: 8px; align-items: flex-start; color: #c9d4de; font-weight: normal; cursor: pointer; }
.bw-check input { margin-top: 3px; }
.bw-check a { color: #438ec8; }
.bw-qr { display: inline-block; padding: 10px; background: #fff; border-radius: 4px; line-height: 0; }
.bw-qr svg { width: 200px; height: 200px; }
.bw-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
.bw-codes code { padding: 8px; text-align: center; font-size: 14px; letter-spacing: .08em; background: rgba(0,0,0,.4); color: #87c0ec; border: 1px solid rgba(86, 136, 174,.3); }

/* ---- UserCP character actions ---- */

.bw-char-card.is-focus { border-color: rgba(67, 142, 200,.6) !important; box-shadow: 0 0 16px rgba(67, 142, 200,.15); }

 .btn-reset:disabled { opacity: .45; cursor: not-allowed; }

/* ---- My Characters ---- */
.btw-sep { font-size: 10px; color: var(--bw-muted); }
.btw-val-resets { color: var(--bw-gold-dim); }
.btw-free-pts { color: #60d878 !important; }
.btw-have { color: #aaa; }
.btw-banned-box { padding: 8px 12px; background: rgba(185,28,28,.25); color: #f87171; border: 1.5px solid #b91c1c; border-radius: 5px; font-weight: 800; font-size: 12px; white-space: nowrap; }

.bw-dlg-cancel { padding: 5px 12px; border-radius: 5px; font-size: 11px; font-weight: 600; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #888; }
.twofa-otp-box { width: 32px !important; height: 36px !important; padding: 0 !important; margin: 0 2px !important; font-size: 16px !important; line-height: 36px !important; border-radius: 6px !important; text-align: center; display: inline-block !important; }

.bw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---- Referral / PM (former inline styles plugins) ---- */
.bw-ref-locked { width: 100%; background: rgba(0,0,0,.3); border: 1px solid rgba(212,100,50,.3); border-radius: 3px; padding: 9px 14px; font-size: 12px; color: #c87050; }
.bw-ref-private { color: #244056; }
.bw-pm-with { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bw-pm-actions { display: flex; gap: 6px; }
.bw-pm-reason { width: 100%; box-sizing: border-box; }
.mail-report-btn { background: none; border: 0; padding: 0; color: #8fa8c0; font-size: 11px; cursor: pointer; }

/* ---- In-site state pages (module disabled, 404) ---------------------------- */
.bw-state { max-width: 640px; margin: 30px auto 40px; text-align: center; }
.bw-state .alert { text-align: left; }
.bw-state-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 18px; border-radius: 50%; }
.bw-state-icon svg { width: 44px; height: 44px; }
.bw-state-icon.is-warning { color: #f0a33a; background: rgba(240, 163, 58, .08); border: 1px solid rgba(240, 163, 58, .35); box-shadow: 0 0 30px rgba(240, 163, 58, .15); }
.bw-state-icon.is-success { color: #5fd38a; background: rgba(95, 211, 138, .08); border: 1px solid rgba(95, 211, 138, .35); box-shadow: 0 0 30px rgba(95, 211, 138, .15); }
.bw-state .alert.is-center { text-align: center; }
.bw-state-code { margin-bottom: 14px; font-size: 92px; font-weight: 800; line-height: 1; letter-spacing: .04em; color: transparent; background: linear-gradient(180deg, #87c0ec, #367aae); -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 40px rgba(67, 142, 200, .18); }
.bw-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.bw-state-btn { display: inline-flex; align-items: center; padding: 10px 22px; color: #1a1205 !important; font-weight: 700; text-decoration: none !important; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; background: linear-gradient(180deg, #87c0ec, #4087be); border: 1px solid #438ec8; border-radius: 4px; transition: filter .15s ease, transform .15s ease; }
.bw-state-btn:hover { filter: brightness(1.1); }
.bw-state-btn.is-ghost { color: #87c0ec !important; background: transparent; }
/* Compact UserCP menu: lower rows and a smaller font so a long module list stays short. */

body .widget.bw-ucp-panel .lk-title { margin-bottom: 10px !important; padding-bottom: 10px !important; }
body .widget.bw-ucp-panel .bw-logout-wrap { margin-top: 10px !important; padding-top: 10px !important; }
/* A little larger text in the compact UserCP menu. */

/* UserCP menu without icons: thin rows so the whole list fits on one screen. */

/* ---- UserCP menu: grouped, two columns, collapsible groups (state kept by bw-app.js) ---- */
.bw-ucpnav { display: flex; flex-direction: column; gap: 8px; }
.bw-ucpnav-group { border: 1px solid rgba(96,176,232,.16); border-radius: 6px; background: linear-gradient(180deg, rgba(10,18,30,.55), rgba(6,10,17,.7)); overflow: hidden; }
.bw-ucpnav-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; list-style: none; user-select: none;
    font: 700 10px/1 Georgia, serif; letter-spacing: .2em; text-transform: uppercase; color: #9fd3ff;
    background: linear-gradient(90deg, rgba(30,80,130,.32), rgba(12,42,77,0) 75%); }
.bw-ucpnav-head::-webkit-details-marker { display: none; }
.bw-ucpnav-head span { flex: 1; }
.bw-ucpnav-head em { font-style: normal; font: 600 9px/1 Arial, sans-serif; letter-spacing: 0; color: #9fb3c8; background: rgba(255,255,255,.06); border-radius: 8px; padding: 3px 6px; }
.bw-ucpnav-head i { font-size: 10px; color: rgba(96,176,232,.75); transition: transform .2s ease; }
.bw-ucpnav-group:not([open]) .bw-ucpnav-head i { transform: rotate(-90deg); }
.bw-ucpnav-head:hover { background: linear-gradient(90deg, rgba(40,100,160,.42), rgba(12,42,77,0) 85%); }
.bw-ucpnav-group[data-active] .bw-ucpnav-head { box-shadow: inset 2px 0 0 #60b0e8; }
.bw-ucpnav-list { list-style: none !important; margin: 0 !important; padding: 6px !important; display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; }
.bw-ucpnav-list li { list-style: none !important; margin: 0 !important; padding: 0 !important; min-width: 0; }
.bw-ucpnav-link { display: block; padding: 6px 8px; border-radius: 4px; text-decoration: none !important;
    font: 600 11.5px/1.2 "Segoe UI", Arial, sans-serif; color: #d9e2ec !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.bw-ucpnav-link:hover { color: #e8f4ff !important; background: rgba(96,176,232,.12); border-color: rgba(96,176,232,.35); }
.bw-ucpnav-link.active { color: #ffffff !important; background: linear-gradient(180deg, rgba(36,98,156,.98), rgba(12,38,70,.98)); border-color: rgba(120,190,240,.8); box-shadow: inset 0 1px 0 rgba(170,215,250,.2), 0 0 10px rgba(96,176,232,.25); }
/* Full-width pages (Terms, Wiki, Rankings...): the frame art is drawn ~7% inside the box, so the
   heading needs that much more left space or it sits outside the frame. */
@media (min-width: 993px) {
    .container_web.no-sidebars .content-wrapper > .page-title { padding-left: calc(48px + 7%) !important; }
}
/* "overflow-x: hidden" on html+body (style.css) turns body into its own scroll box that never scrolls,
   which breaks every position: sticky (Terms contents...). "clip" cuts the same overflow without that. */
@supports (overflow: clip) {
    html, body { overflow-x: clip !important; }
}

/* ---- "The server is being installed" (App\Support\DbHealth / InstallingPage) ---- */
.bw-installing-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; max-width: 1240px; margin: 0 auto 16px; padding: 11px 18px;
    color: #cfe3f5; font-size: 13.5px; text-align: center; background: linear-gradient(90deg, rgba(14,40,64,.9), rgba(10,26,42,.95), rgba(14,40,64,.9));
    border: 1px solid rgba(96,176,232,.35); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.bw-installing-banner b { color: #eef5fb; }
.bw-installing-dot, .bw-srv-status.is-installing i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #60b0e8; box-shadow: 0 0 0 0 rgba(96,176,232,.6); animation: bwInstPulse 1.6s ease-out infinite; }
@keyframes bwInstPulse { 0% { box-shadow: 0 0 0 0 rgba(96,176,232,.55); } 100% { box-shadow: 0 0 0 9px rgba(96,176,232,0); } }
.bw-srv-status.is-installing { color: #9fd3ff !important; }

.bw-installing { max-width: 560px; margin: 10px auto 30px; padding: 30px 28px; text-align: center;
    background: linear-gradient(180deg, rgba(16,32,50,.9), rgba(7,13,21,.94)); border: 1px solid rgba(96,176,232,.2); border-radius: 12px; }
.bw-installing-ico { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 14px; color: #9fd3ff;
    background: linear-gradient(180deg, rgba(28,69,107,.95), rgba(13,33,54,.95)); border: 1px solid rgba(96,176,232,.45); border-radius: 16px; }
.bw-installing-ico svg { width: 30px; height: 30px; }
.bw-installing h2 { margin: 0 0 10px; color: #eef5fb; font: 700 21px/1.3 'Cinzel', Georgia, serif; }
.bw-installing p { margin: 0 auto; max-width: 440px; color: #a9bccd; font-size: 14.5px; line-height: 1.65; }
.bw-installing-bar { position: relative; height: 5px; max-width: 300px; margin: 20px auto 18px; overflow: hidden; background: rgba(96,176,232,.12); border-radius: 5px; }
.bw-installing-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 5px; background: linear-gradient(90deg, transparent, #60b0e8, transparent); animation: bwInstLoad 1.8s ease-in-out infinite; }
@keyframes bwInstLoad { 0% { left: -40%; } 100% { left: 100%; } }
.bw-installing-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bw-installing-btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none !important;
    color: #eaf4fd !important; background: linear-gradient(180deg, #2a6aa3, #164a77); border: 1px solid rgba(96,176,232,.6); }
.bw-installing-btn.is-ghost { color: #cfd9e3 !important; background: rgba(255,255,255,.04); border-color: rgba(96,176,232,.25); }
.bw-installing-btn:hover { filter: brightness(1.12); }
/* UserCP: account locked out of the paid services (usercp/locked) */
.bw-locked { max-width: 600px; }
.bw-locked-ico { color: #ffb4b4; background: linear-gradient(180deg, rgba(92,34,44,.95), rgba(40,14,22,.95)); border-color: rgba(248,113,113,.45); }
.bw-locked-info { display: grid; gap: 6px; margin: 18px auto 14px; max-width: 470px; text-align: left; }
.bw-locked-info > div { display: flex; gap: 12px; align-items: baseline; padding: 9px 14px; background: rgba(0,0,0,.22); border: 1px solid rgba(96,176,232,.14); border-radius: 8px; }
.bw-locked-info > div.is-reason { border-color: rgba(248,113,113,.3); background: rgba(120,30,40,.14); }
.bw-locked-info dt { flex: 0 0 120px; margin: 0; color: #6f97b8; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.bw-locked-info dd { flex: 1; margin: 0; color: #e3eef8; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.bw-locked-note { margin: 0 auto 16px !important; font-size: 13px !important; color: #8ea6bb !important; }
@media (max-width: 520px) { .bw-locked-info > div { flex-direction: column; gap: 2px; } .bw-locked-info dt { flex: none; } }
@media (prefers-reduced-motion: reduce) { .bw-installing-dot, .bw-srv-status.is-installing i, .bw-installing-bar::after { animation: none; } }

/* Hover hints (title="..." and data-service-hint, js in bw-app.js / module-kit.css): site look - dark blue, steel-blue frame */
body .bw-service-tip { padding: 7px 12px !important; border: 1px solid rgba(96,176,232,.45) !important; border-radius: 7px !important;
    background: linear-gradient(180deg, rgba(20,42,66,.98), rgba(9,18,29,.98)) !important; color: #e6f0f8 !important;
    font: 600 12.5px/1.45 "Segoe UI", Inter, Arial, sans-serif !important; letter-spacing: .01em; box-shadow: 0 10px 26px rgba(0,0,0,.55) !important; }
body .bw-service-tip::after { border-bottom-color: rgba(96,176,232,.6) !important; }
body .bw-service-tip.tooltip-above::after { border-top-color: rgba(96,176,232,.6) !important; border-bottom-color: transparent !important; }
.bw-login-installing p { margin: 6px 4px 4px; color: #a9bccd; font-size: 13px; line-height: 1.6; text-align: center; }
.bw-login-installing .bw-installing-dot { margin-right: 6px; vertical-align: middle; }

/* Sidebar login, blue (2026-11-23): the same look as the Login / Contact form cards - no gold.
   Last in the cascade on purpose: style.css has several gold layers with !important. */
.login-block #login_form .widget-title a { color: #9fd0f5 !important; text-shadow: none !important; }
.login-block #login_form .widget-title a:hover { color: #fff !important; }
.login-block #login_form .l-input { position: relative; }
.login-block #login_form .login.l-input::before, .login-block #login_form .pass.l-input::before { display: none !important; }
.login-block #login_form .bw-lin-ico { position: absolute; left: 16px; top: 50%; z-index: 1; transform: translateY(-50%); color: #7f98ad; font-size: 15px; pointer-events: none; transition: color .15s; }
.login-block #login_form .l-input:focus-within .bw-lin-ico { color: #9fd0f5; }
.login-block #login_form .l-input input { padding-left: 44px !important; color: #eef4fa !important;
    background: rgba(3, 8, 14, .6) !important; border: 1px solid rgba(110, 170, 220, .22) !important; border-radius: 7px !important; box-shadow: none !important; }
.login-block #login_form .l-input input:focus { border-color: rgba(110, 190, 245, .6) !important; box-shadow: 0 0 0 3px rgba(110, 190, 245, .12) !important; background: rgba(3, 8, 14, .75) !important; }
.login-block #login_form .bw-remember-box { display: grid; place-items: center; box-sizing: border-box; width: 17px; height: 17px; background: rgba(3, 8, 14, .6) !important; border: 1px solid rgba(110, 190, 245, .45) !important; border-radius: 4px !important; }
.login-block #login_form .bw-remember-input:checked + .bw-remember-box::after { content: "\2713"; color: #fff; font: 900 11px/1 Arial, sans-serif; }
.login-block #login_form .bw-remember-input:focus-visible + .bw-remember-box { box-shadow: 0 0 0 3px rgba(110, 190, 245, .25); }
.login-block #login_form .bw-remember-input:checked + .bw-remember-box { background: linear-gradient(180deg, #3a86c2, #1d5486) !important; border-color: #6fb2e0 !important; }
.login-block #login_form .bw-remember-text { color: #aebccb !important; }
.login-block #login_form .bw-remember-label:hover .bw-remember-text { color: #fff !important; }
.login-block #login_form .bw-login-submit { color: #fff !important; font-family: 'Segoe UI', Arial, sans-serif !important; font-weight: 700 !important;  text-shadow: 0 1px 2px rgba(0, 0, 0, .5) !important;
    background: linear-gradient(180deg, #2f78b2, #18456c) !important; border: 1px solid rgba(150, 212, 255, .55) !important;   }
.login-block #login_form .bw-login-submit:hover { background: linear-gradient(180deg, #3a8ccc, #1d5486) !important; filter: none !important; box-shadow: 0 0 14px rgba(110, 190, 245, .3), 0 4px 12px rgba(0, 0, 0, .45) !important; }
.login-block #login_form .bw-login-submit::before { display: none !important; }
.login-block #login_form .bw-login-btn-loader i { background: #9fd0f5 !important; }
.login-block #login_form .lost { color: #7f98ad !important; text-shadow: none !important; }
.login-block #login_form .lost:hover { color: #9fd0f5 !important; }
.login-block #login_form.bw-login-loading .l-input input { border-color: rgba(110, 190, 245, .5) !important; }
/* Chrome paints autofilled fields light: keep them dark */
.login-block #login_form .l-input input:-webkit-autofill, .login-block #login_form .l-input input:-webkit-autofill:hover, .login-block #login_form .l-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 40px #07111b inset !important; -webkit-text-fill-color: #eef4fa !important; caret-color: #fff; transition: background-color 9999s ease 0s;
    border-color: #1e3346 !important; } /* solid: a see-through border shows the light autofill colour under it */
/* smaller, simple Sign In (not the tall ornate one) */
.login-block #login_form .bw-login-submit { width: auto !important; justify-self: center !important; height: 36px !important; min-width: 130px !important; padding: 0 26px !important; font-size: 12px !important; letter-spacing: .08em !important; border-radius: 6px !important; box-shadow: 0 2px 6px rgba(0, 0, 0, .4) !important; }
.login-block #login_form .buttons { gap: 8px !important; }
/* while signing in: stays blue and the same size (style.css turns it into a wider pulsing gold button) */
.login-block #login_form.bw-login-loading .bw-login-submit { width: auto !important; min-width: 130px !important; max-width: none !important; transform: none !important; filter: none !important; animation: none !important; outline: none !important;
    background: linear-gradient(180deg, #2a6aa0, #163e62) !important; box-shadow: 0 0 14px rgba(110, 190, 245, .35), 0 2px 6px rgba(0, 0, 0, .4) !important; }
.login-block #login_form.bw-login-loading .bw-login-submit::after { background: linear-gradient(90deg, transparent, rgba(159, 208, 245, .85), transparent) !important; }
.login-block #login_form.bw-login-loading .bw-login-btn-state { color: #fff !important; letter-spacing: .08em !important; }
.login-block #login_form.bw-login-loading .l-input input { box-shadow: 0 0 0 40px #07111b inset !important; } /* no gold glow; the inset keeps autofilled fields dark */
/* Rankings: country flag + code */
.rk-table .col-country { white-space: nowrap; }
.rk-flag { width: 18px; height: 12px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 1px 3px rgba(0,0,0,.5); }
.rk-cc { margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #9fb6cb; }

/* ---- Panel art fit: titles sit in the header band, nothing runs into the footer band.
   Header band of the sidebar/medium art: frame edge ~8px, glow line ~57px; main panel line ~60px. ---- */
body .left-sidebar .widget > .widget-title,
body .right-sidebar .widget > .widget-title,
body .right-sidebar .bw-server-info-widget .bw-server-info-title {
    min-height: 58px !important;
    height: 58px !important;
    box-sizing: border-box !important;
    padding-top: 8px !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
}

/* Login (guest) and UserCP panel: the frame is their background now */
body .left-sidebar .widget.red-light.login-block:not(.bw-ucp-panel) {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 20px 46px !important;
}
.login-block #login_form .widget-title.flex-s-c {
    min-height: 58px !important;
    height: 58px !important;
    box-sizing: border-box !important;
    padding: 8px 12px 0 !important;
    margin-bottom: 18px !important;
}

@media (min-width: 993px) {
    body .left-sidebar .widget.red-light.login-block.bw-ucp-panel {
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 20px 46px !important;
    }
    /* "Welcome" + name inside the band, the VIP tag just under the glow line */
    body .widget.bw-ucp-panel .lk-title { padding: 16px 8px 12px !important; margin: 0 0 10px !important; }
    body .widget.bw-ucp-panel .bw-ucp-welcome { line-height: 11px; margin-bottom: 2px; }
    body .widget.bw-ucp-panel .bw-ucp-username { line-height: 18px; }
    body .widget.bw-ucp-panel .lk-title .bw-vip-tag { margin-top: 19px !important; }
}

/* Logout: a full-width row in the menu's style, with an exit icon */
body .widget.bw-ucp-panel .bw-logout-wrap { margin: 12px 0 0 !important; padding: 0 !important; border-top: 0 !important; }
body .widget.bw-ucp-panel .bw-logout-btn {
    display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px;
    width: 100% !important; min-width: 0 !important; height: 32px !important; padding: 0 12px !important;
    font-family: "Segoe UI", Arial, sans-serif !important; font-size: 11px !important; font-weight: 700 !important;
    letter-spacing: .16em !important; color: #b9d3e8 !important;
    background: linear-gradient(180deg, rgba(14,32,52,.85), rgba(6,14,24,.85)) !important;
    border: 1px solid rgba(96,176,232,.24) !important; border-radius: 4px !important;
    transition: color .15s, border-color .15s, background .15s;
}
body .widget.bw-ucp-panel .bw-logout-btn::before {
    content: "\f1c3"; font-family: "bootstrap-icons"; font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1;
}
body .widget.bw-ucp-panel .bw-logout-btn:hover,
body .widget.bw-ucp-panel .bw-logout-btn:focus-visible {
    color: #fff !important; border-color: rgba(226,98,98,.6) !important;
    background: linear-gradient(180deg, rgba(92,26,32,.75), rgba(44,10,14,.8)) !important; box-shadow: none !important;
}

/* Phone/tablet: the UserCP panel is a scrolling drawer with its own background, no frame */
@media (max-width: 992px) {
    body .widget.bw-ucp-panel::before { display: none !important; content: none !important; }
}

/* Modules use the full width inside the main panel frame (module sheets used to inset 28px-7% per side) */
body .content-wrapper > :is(div, form, section, table):not(.page-title),
body .content-wrapper > #bwVote.vote-page,
body .content-wrapper > #bwReferral {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* ...and their own width caps go, so every module fills the panel the same way */
body .content-wrapper > .rc-wrap,
body .content-wrapper .bw-inventory-module,
body .content-wrapper > .gr-module,
body .content-wrapper > .hi-wrap,
body .content-wrapper > .rrc,
body .content-wrapper > .rk-tabs,
body .content-wrapper > .rk-board,
body .content-wrapper > .page-title {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body .content-wrapper > #muonline-rules-root { max-width: none !important; margin-left: 10px !important; margin-right: 10px !important; }
body .content-wrapper .market-module-shell { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }
body .content-wrapper > .gr-module { margin-left: 10px !important; margin-right: 10px !important; }
body .content-wrapper > .page-title.market-page-title { margin-top: 0 !important; transform: none !important; top: 0 !important; }

/* Full-width pages (wiki, online, casino): same header band spacing as the others */
body .content.fullwidth .content-wrapper:has(> .page-title) { padding-top: 4px !important; padding-bottom: 62px !important; }

/* Top menu bar: keep the bell and the buttons off the bar's bevelled ends */
body #navbar .navbar-inner { padding-left: 46px !important; padding-right: 46px !important; box-sizing: border-box; }
@media (max-width: 992px) {
    body #navbar .navbar-inner { padding-left: 34px !important; padding-right: 34px !important; }
}
/* Desktop: no dark strip across the page behind the menu bar, only the bar art */
@media (min-width: 993px) {
    body #navbar { background: none !important; border-bottom: 0 !important; box-shadow: none !important; }
    body #navbar::after { display: none !important; }
}

/* Desktop with the inline menu: the bar art wraps only the menu links; the bell and the
   panel button stand on their own to the right, over the page background. */
@media (min-width: 1101px) {
    body #navbar .navbar-inner { padding-left: 0 !important; padding-right: 0 !important; }
    body #navbar .navbar-inner::before { display: none !important; content: none !important; }
    body #navbar .navbar-inner .menu { position: relative; isolation: isolate; padding: 0 54px !important; }
    body #navbar .navbar-inner .menu::before {
        content: ""; position: absolute; inset: -8px 0; z-index: -1; pointer-events: none;
        border-style: solid; border-color: transparent; border-width: 0 48px;
        border-image: url("../img/theme/panels/bw-top-bar.webp") 0 48 fill / 0 48px stretch;
    }
    body #navbar .navbar-panel-actions { gap: 14px; padding-right: 4px; }
    body #navbar .navbar-inner .bw-bell { margin: 0 !important; }
}

/* Bell and panel button: steel double ring like the panel frames, blue inner glow */
body #navbar .navbar-inner .bw-bell .bw-bell-btn {
    width: 40px !important; height: 40px !important;
    color: #a9cdea !important;
    background: radial-gradient(circle at 50% 35%, rgba(36, 72, 108, .95), rgba(8, 16, 26, .98) 70%) !important;
    border: 1px solid rgba(170, 196, 218, .55) !important;
    box-shadow: 0 0 0 3px rgba(9, 16, 25, .9), 0 0 0 4px rgba(126, 160, 190, .45), 0 6px 16px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
    transition: color .15s, border-color .15s, box-shadow .15s;
}
body #navbar .navbar-inner .bw-bell .bw-bell-btn:hover,
body #navbar .navbar-inner .bw-bell .bw-bell-btn[aria-expanded="true"] {
    color: #fff !important; border-color: rgba(150, 205, 245, .9) !important;
    box-shadow: 0 0 0 3px rgba(9, 16, 25, .9), 0 0 0 4px rgba(150, 205, 245, .6), 0 0 18px rgba(80, 160, 230, .45), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}
body #navbar .navbar-inner .bw-bell .bw-bell-btn i { font-size: 17px !important; }
body #navbar .navbar-panel-button {
    display: inline-flex !important; align-items: center !important; height: 36px !important; padding: 0 18px !important;
    font-family: Georgia, 'Times New Roman', serif !important; font-size: 11px !important; font-weight: 700 !important;
    letter-spacing: .2em !important; color: #d4e6f5 !important;
    background: linear-gradient(180deg, rgba(30, 70, 110, .96), rgba(8, 18, 30, .98)) !important;
    border: 1px solid rgba(170, 196, 218, .55) !important; border-radius: 6px !important;
    box-shadow: 0 0 0 3px rgba(9, 16, 25, .9), 0 0 0 4px rgba(126, 160, 190, .45), 0 6px 16px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7) !important;
    transition: color .15s, border-color .15s, box-shadow .15s;
}
body #navbar .navbar-panel-button:hover {
    color: #fff !important; border-color: rgba(150, 205, 245, .9) !important;
    box-shadow: 0 0 0 3px rgba(9, 16, 25, .9), 0 0 0 4px rgba(150, 205, 245, .6), 0 0 18px rgba(80, 160, 230, .45), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

/* The main panel frame stays on every page (some module sheets still hide ::before from older designs) */
body .content-wrapper::before { display: block !important; content: "" !important; }

/* Page heading centred in the main panel's header band */
body .content-wrapper:has(> .page-title) { padding-top: 4px !important; }
body .content-wrapper > .page-title {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
    min-height: 0 !important;
    margin: 0 0 26px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* AdminCP header button: dark blue glass pill with a light running around its edge.
   On phones the short label (ADM) is shown so the narrow header fits. */
@keyframes bw-adm-run { to { transform: rotate(360deg); } }
body #navbar a.navbar-panel-button.navbar-panel-admin {
    display: inline-flex !important; align-items: center !important; height: 40px !important; padding: 0 !important;
    background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    text-shadow: none !important; overflow: visible; text-decoration: none;
    font-family: 'Cinzel', Georgia, serif !important; font-size: 11px !important; font-weight: 700 !important;
    letter-spacing: .2em !important; color: #e8f4fd !important;
}
body #navbar .navbar-panel-admin .adm-in {
    position: relative; display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 22px;
    border-radius: 19px; overflow: hidden; isolation: isolate;
    background: rgba(110, 150, 185, .45);
    box-shadow: 0 0 0 3px rgba(9, 16, 25, .9), 0 6px 16px rgba(0, 0, 0, .6), 0 0 14px rgba(70, 150, 225, .25);
    transition: box-shadow .2s;
}
body #navbar .navbar-panel-admin .adm-in::before {
    content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px;
    background: conic-gradient(from 0deg, transparent 0 55%, rgba(79, 179, 255, .9) 72%, #e6f6ff 78%, rgba(79, 179, 255, .9) 84%, transparent 95%);
    animation: bw-adm-run 3.5s linear infinite;
}
body #navbar .navbar-panel-admin .adm-in::after {
    content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: 17px;
    background: radial-gradient(120% 140% at 50% 0%, #2a6db0 0%, #123a66 45%, #061322 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
/* the negative margin takes off the letter spacing after the last letter, so the text sits in the middle */
body #navbar .navbar-panel-admin .adm-label,
body #navbar .navbar-panel-admin .adm-short { position: relative; z-index: 1; white-space: nowrap; margin-right: -.2em; text-shadow: 0 0 8px rgba(110, 190, 255, .55); transition: color .15s, text-shadow .15s; }
body #navbar .navbar-panel-admin .adm-short { display: none; }
body #navbar .navbar-panel-admin:hover .adm-in,
body #navbar .navbar-panel-admin:focus-visible .adm-in {
    box-shadow: 0 0 0 3px rgba(9, 16, 25, .9), 0 6px 16px rgba(0, 0, 0, .6), 0 0 24px rgba(90, 180, 255, .7);
}
body #navbar .navbar-panel-admin:hover .adm-label,
body #navbar .navbar-panel-admin:hover .adm-short { color: #fff; text-shadow: 0 0 10px rgba(140, 210, 255, .9); }
body #navbar .navbar-panel-admin:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
    body #navbar .navbar-panel-admin .adm-in::before { animation: none; }
}
@media (max-width: 640px) {
    body #navbar .navbar-panel-admin .adm-in { height: 40px; padding: 0 14px; border-radius: 20px; }
    body #navbar .navbar-panel-admin .adm-in::after { border-radius: 18px; }
    body #navbar .navbar-panel-admin .adm-label { display: none; }
    body #navbar .navbar-panel-admin .adm-short { display: inline; }
}

/* SweetAlert dialogs (Webshop, Market, Sell, Inventory): the page keeps its scrollbar while a dialog is open,
   so the right padding SweetAlert adds in place of the scrollbar only pushed the whole page to the left. */
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) { padding-right: 0 !important; }
