/* =====================================================================
   REBORN ZE — «CRYSTAL» тема для SourceBans++ 1.8.4
   Раскладка: левое меню · контент · правая панель.
   Цвета меняются в блоке :root, ссылки и IP — в js/config.js
   ===================================================================== */
:root {
    --bg:      #0b0d14;
    --side:    #0e1119;
    --panel:   #131722;
    --panel2:  #181d2a;
    --line:    #222939;
    --line2:   #2c3449;
    --text:    #e7eaf3;
    --muted:   #8a92a8;
    --mako:    #36E2A0;   /* главный акцент — светящийся «кристалл» */
    --mako2:   #1FB985;
    --violet:  #7B5CFF;
    --red:     #FF4D6D;
    --gold:    #FFC24D;
    --r:       16px;
    --side-w:  264px;
    --right-w: 312px;
    --f-head:  'Unbounded', 'Arial Black', sans-serif;
    --f-body:  'Manrope', 'Segoe UI', Verdana, sans-serif;
}

/* ================= БАЗА / СБРОС main.css ================= */
html { background: var(--bg); }
body.rb {
    display: block; margin: 0; text-align: left;
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-body); font-size: 13.5px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.rb-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 500px at 70% -10%, rgba(123,92,255,.16), transparent 60%),
        radial-gradient(700px 500px at 20% 110%, rgba(54,226,160,.10), transparent 60%),
        radial-gradient(600px 400px at 100% 60%, rgba(255,77,109,.07), transparent 60%);
}
.rb-bg::after {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
a:link, a:visited { color: var(--mako); text-decoration: none; transition: color .2s; }
a:hover, a:active { color: #8fffd6; }
::selection { background: var(--mako); color: #06110c; }
.rb-hide { display: none !important; }
.rb-muted { color: var(--muted); }

/* ================= КАРКАС ================= */
.rb-app {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr) var(--right-w);
    min-height: 100vh;
}
.rb-main { min-width: 0; display: flex; flex-direction: column; }
#mainwrapper { width: auto; max-width: none; margin: 0; padding: 0 30px; flex: 1; height: auto; }
#innerwrapper { text-align: left; }
#content { overflow: visible; height: auto; }

/* ================= ЛЕВОЕ МЕНЮ ================= */
.rb-side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column;
    padding: 22px 16px 18px;
    background: linear-gradient(180deg, rgba(14,17,25,.96), rgba(10,12,18,.98));
    border-right: 1px solid var(--line);
    box-sizing: border-box;
    scrollbar-width: thin;
}
.rb-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 14px; }
.rb-brand:hover { color: inherit; }
.rb-brand-emblem { width: 52px; height: 52px; filter: drop-shadow(0 0 12px rgba(54,226,160,.55)); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.rb-brand:hover .rb-brand-emblem { transform: rotate(360deg); }
.rb-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.rb-brand-name {
    font-family: var(--f-head); font-weight: 900; font-size: 24px; letter-spacing: 1.5px;
    background: linear-gradient(100deg, #fff 10%, var(--mako) 55%, var(--violet));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rb-brand-sub { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.rb-side-label { font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #5f677c; padding: 14px 12px 8px; }
.rb-side-label-admin { color: #a2475a; }

/* сброс старых стилей #tabs / #nav */
#tabs.rb-menu, #nav.rb-menu { float: none; width: auto; margin: 0; position: static; font-family: var(--f-body); }
.rb-menu ul { list-style: none; margin: 0; padding: 0; }
.rb-menu ul li { float: none; }
.rb-menu a, #tabs.rb-menu ul li a, #nav.rb-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 12px; margin: 1px 0;
    border-radius: 12px;
    color: #b8bfd0 !important; background: transparent;
    font-family: var(--f-body); font-size: 14px; font-weight: 600; line-height: 1.2;
    text-transform: none; text-align: left; letter-spacing: 0;
    border: 1px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
    position: relative;
}
.rb-ico {
    width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
    border-radius: 10px; background: var(--panel2); color: #8e97ad; font-size: 14px;
    transition: background .2s, color .2s, box-shadow .2s;
}
.rb-menu a:hover, #tabs.rb-menu ul li a:hover, #nav.rb-menu a:hover { background: rgba(255,255,255,.035); color: #fff !important; transform: translateX(3px); }
.rb-menu a:hover .rb-ico { color: var(--mako); }
#tabs.rb-menu ul li.active a, #nav.rb-menu a.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(54,226,160,.16), rgba(54,226,160,.02));
    border-color: rgba(54,226,160,.22);
}
#tabs.rb-menu ul li.active a::before, #nav.rb-menu a.active::before {
    content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0;
    background: var(--mako); box-shadow: 0 0 14px var(--mako);
}
#tabs.rb-menu ul li.active a .rb-ico, #nav.rb-menu a.active .rb-ico {
    background: linear-gradient(135deg, var(--mako), var(--mako2)); color: #06110c; box-shadow: 0 6px 18px rgba(54,226,160,.35);
}
#nav.rb-menu a { font-size: 13px; padding: 7px 12px; }
#nav.rb-menu .rb-ico { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; border-radius: 8px; }
#nav.rb-menu a.active::before { background: var(--red); box-shadow: 0 0 14px var(--red); }
#nav.rb-menu a.active .rb-ico { background: linear-gradient(135deg, var(--red), #c2334f); color: #fff; box-shadow: 0 6px 18px rgba(255,77,109,.35); }

.rb-side-bottom { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }

/* ================= КАРТОЧКИ (общие) ================= */
.rb-card {
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.rb-card-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.rb-card-head {
    display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
    font-family: var(--f-head); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; color: #fff;
}
.rb-card-head > i { color: var(--mako); }
.rb-community p { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
.rb-contact-row { display: flex; align-items: center; gap: 10px; color: var(--text) !important; }
.rb-contact-row b { display: block; font-size: 13px; }
.rb-contact-row small { display: block; color: var(--muted); font-size: 11.5px; }
.rb-avatar {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, #5865F2, #3b44b8); color: #fff; font-size: 17px; font-weight: 800;
}

/* ================= КНОПКИ (свои) ================= */
.rb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
    font-family: var(--f-body); font-size: 13.5px; font-weight: 800; letter-spacing: .2px;
    cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s; white-space: nowrap;
}
.rb-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.rb-btn-block { display: flex; width: 100%; box-sizing: border-box; }
.rb-btn-main, a.rb-btn-main:link, a.rb-btn-main:visited { background: linear-gradient(135deg, #5dffbf, var(--mako) 45%, var(--mako2)); color: #04110b; box-shadow: 0 8px 24px rgba(54,226,160,.32); }
.rb-btn-ghost, a.rb-btn-ghost:link, a.rb-btn-ghost:visited { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }
.rb-btn-gold, a.rb-btn-gold:link, a.rb-btn-gold:visited { background: linear-gradient(135deg, #ffe08a, var(--gold) 50%, #e09a14); color: #2a1a00; box-shadow: 0 8px 24px rgba(255,194,77,.3); }
.rb-btn-red, a.rb-btn-red:link, a.rb-btn-red:visited { background: linear-gradient(135deg, #ff8197, var(--red) 50%, #d12b4c); color: #fff; box-shadow: 0 8px 24px rgba(255,77,109,.3); }
.rb-icon-btn, a.rb-icon-btn:link, a.rb-icon-btn:visited {
    width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px; cursor: pointer;
    background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); transition: color .2s, border-color .2s, background .2s;
}
.rb-icon-btn:hover { color: var(--mako); border-color: var(--mako); }
.rb-logout:hover { color: var(--red) !important; border-color: var(--red) !important; }

/* ================= ВЕРХНЯЯ ПОЛОСА ================= */
#tabsWrapper.rb-top {
    box-sizing: border-box;
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 16px;
    height: auto; width: auto; margin: 0; padding: 14px 30px;
    background: rgba(11,13,20,.78);
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.rb-burger { display: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel2); color: #fff; cursor: pointer; font-size: 16px; }
#search.rb-search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 560px; margin: 0; text-align: left; }
.rb-search-tabs { display: flex; padding: 3px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
.rb-search-tabs button {
    border: 0; background: transparent; color: var(--muted); cursor: pointer;
    padding: 7px 12px; border-radius: 8px; font-family: var(--f-body); font-weight: 700; font-size: 12.5px;
}
.rb-search-tabs button.active { background: var(--panel2); color: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.rb-search-form { display: none; position: relative; flex: 1; margin: 0; }
.rb-search-form.active { display: flex; }
.rb-search-form > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.rb-search .searchbox, input.searchbox {
    width: 100%; margin: 0; box-sizing: border-box;
    padding: 11px 14px 11px 40px !important;
    background: var(--panel) !important; color: var(--text) !important;
    border: 1px solid var(--line) !important; border-radius: 12px !important;
    font-family: var(--f-body); font-size: 13.5px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.rb-search .searchbox:focus { border-color: var(--mako) !important; box-shadow: 0 0 0 4px rgba(54,226,160,.12) !important; }
.rb-search .button { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0; border: 0; }
.rb-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rb-clock { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.rb-clock span { color: #fff; }
.rb-user, a.rb-user:link, a.rb-user:visited { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.rb-user:hover { border-color: var(--line2); }
.rb-avatar-user { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--violet), var(--mako)); font-family: var(--f-head); font-size: 14px; }
.rb-user-name { display: flex; flex-direction: column; font-weight: 800; font-size: 13px; line-height: 1.15; }
.rb-user-name small { color: var(--muted); font-weight: 600; font-size: 11px; }

/* ================= ЗАГОЛОВОК СТРАНИЦЫ ================= */
.rb-pagehead { padding: 28px 0 18px; }
#content_title { margin: 0; font-family: var(--f-head); font-size: 26px; font-weight: 700; letter-spacing: .3px; color: #fff; }
#content_title b { font-weight: 700; }
#breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--muted); }
#breadcrumb a { color: var(--muted) !important; }
#breadcrumb a:hover { color: var(--mako) !important; }
#breadcrumb > a:last-child { color: var(--text) !important; font-weight: 700; }
.rb-crumb-sep { font-size: 9px; opacity: .5; }
/* на главной заголовок не нужен — там баннер */
body.rb:has(.rb-hero) .rb-pagehead { display: none; }

/* ================= БАННЕР-СЛАЙДЕР ================= */
.rb-hero {
    --mx: 60%; --my: 40%;
    position: relative;
    min-height: 360px; border-radius: 22px;
    background:
        radial-gradient(500px 300px at var(--mx) var(--my), rgba(54,226,160,.16), transparent 70%),
        linear-gradient(120deg, #141a2a 0%, #10121c 45%, #1a1230 100%);
    border: 1px solid var(--line2);
    box-shadow: 0 30px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
    margin-bottom: 22px;
}
.rb-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; border-radius: 22px;
    background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,.015) 60px 61px);
}
/* --- слои баннера --- */
.rb-hero { overflow: visible; isolation: isolate; }
.rb-hero-clip { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; z-index: 0; }
.rb-hero-bg { position: absolute; right: -4%; bottom: 0; width: 70%; height: 100%; background: center bottom / cover no-repeat; opacity: .85; }
.rb-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #121726 0%, rgba(18,23,38,.4) 35%, transparent 70%); }
.rb-hero-rays {
    position: absolute; right: 8%; top: -40%; width: 60%; height: 180%;
    background: conic-gradient(from 200deg at 50% 30%, transparent 0 8deg, rgba(54,226,160,.10) 10deg, transparent 14deg 26deg, rgba(123,92,255,.10) 30deg, transparent 34deg 48deg, rgba(54,226,160,.08) 52deg, transparent 56deg 360deg);
    filter: blur(6px); mix-blend-mode: screen; animation: rbRays 12s ease-in-out infinite alternate;
}
@keyframes rbRays { to { transform: rotate(8deg); opacity: .6; } }
.rb-hero-circle {
    position: absolute; right: 9%; bottom: -34%; width: 520px; height: 520px; opacity: .55;
    filter: drop-shadow(0 0 10px rgba(54,226,160,.6));
    animation: rbSpinSlow 60s linear infinite;
    transform-origin: 50% 50%;
}
@keyframes rbSpinSlow { to { transform: rotate(360deg); } }
.rb-hero-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rb-hero-ground {
    position: absolute; right: 6%; bottom: -60px; width: 640px; height: 130px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(54,226,160,.45), rgba(123,92,255,.18) 55%, transparent);
    filter: blur(8px);
}
/* герои выходят за верх баннера */
.rb-hero-art {
    position: absolute; right: -1%; bottom: 0; z-index: 1; height: 122%; pointer-events: none;
    transition: transform .3s ease-out;
}
.rb-hero-art picture, .rb-hero-art img { display: block; height: 100%; width: auto; }
.rb-hero-art img {
    filter: drop-shadow(0 0 18px rgba(54,226,160,.25)) drop-shadow(0 20px 30px rgba(0,0,0,.6));
    animation: rbFloat 6s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
}
@keyframes rbFloat { 50% { transform: translateY(-6px); } }
/* блики на клинках */
.rb-glint { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px #7dffd0, 0 0 30px 10px rgba(54,226,160,.5); opacity: 0; animation: rbGlint 4s ease-in-out infinite; }
.rb-glint::before, .rb-glint::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; transform: translate(-50%,-50%); border-radius: 2px; }
.rb-glint::before { width: 46px; height: 2px; }
.rb-glint::after  { width: 2px; height: 46px; }
.rb-glint-1 { left: 24%; top: 47%; }
.rb-glint-2 { left: 75%; top: 49%; animation-delay: 2s; }
@keyframes rbGlint { 0%, 70%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } }
body.rb:has(.rb-hero) #content { padding-top: 84px; }
.rb-slides { position: relative; z-index: 2; min-height: 360px; }
.rb-slide {
    position: absolute; inset: 0; padding: 40px 44px; max-width: min(540px, 50%);
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; pointer-events: none;
}
.rb-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.rb-slide h1 { margin: 14px 0 12px; font-family: var(--f-head); font-weight: 700; font-size: 30px; text-shadow: 0 4px 18px #0b0d14; line-height: 1.15; color: #fff; letter-spacing: -.3px; }
.rb-slide h1 em { font-style: normal; background: linear-gradient(90deg, var(--mako), #9dffda 50%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rb-slide p { text-shadow: 0 2px 10px #0b0d14; margin: 0 0 22px; color: #aeb5c8; font-size: 14.5px; max-width: 400px; }
.rb-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rb-tag {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    color: var(--mako); background: rgba(54,226,160,.12); border: 1px solid rgba(54,226,160,.3);
}
.rb-tag-gold   { color: var(--gold);  background: rgba(255,194,77,.12);  border-color: rgba(255,194,77,.3); }
.rb-tag-violet { color: #a995ff;      background: rgba(123,92,255,.14);  border-color: rgba(123,92,255,.35); }
.rb-tag-red    { color: #ff8da1;      background: rgba(255,77,109,.12);  border-color: rgba(255,77,109,.3); }
.rb-dots { position: absolute; left: 44px; bottom: 20px; z-index: 3; display: flex; gap: 8px; }
.rb-dots button { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,.15); cursor: pointer; overflow: hidden; position: relative; transition: width .3s; }
.rb-dots button.active { width: 48px; }
.rb-dots button i { position: absolute; inset: 0; background: var(--mako); transform: scaleX(0); transform-origin: left; }
.rb-dots button.active i { animation: rbDot 7s linear forwards; }
.rb-hero:hover .rb-dots button.active i { animation-play-state: paused; }
@keyframes rbDot { to { transform: scaleX(1); } }

/* ================= СТАТИСТИКА ================= */
.rb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.rb-stat {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r);
    position: relative; overflow: hidden;
}
.rb-stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--c); opacity: .08; filter: blur(4px); }
.rb-stat > i { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; font-size: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.rb-stat b { display: block; font-family: var(--f-head); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rb-stat span { color: var(--muted); font-size: 12.5px; }
.rb-stat-red { --c: var(--red); } .rb-stat-violet { --c: var(--violet); } .rb-stat-gold { --c: var(--gold); } .rb-stat-green { --c: var(--mako); }

.rb-section-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-family: var(--f-head); font-size: 15px; font-weight: 700; color: #fff; }
.rb-section-title i { color: var(--red); }
.rb-intro, .front-module-intro { margin: 0 0 24px; padding: 16px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: var(--text); }

/* ================= КАРТОЧКИ СЕРВЕРОВ ================= */
#front-servers { margin-bottom: 26px; }
.rb-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rb-srv {
    position: relative; overflow: hidden; cursor: pointer; border-radius: var(--r);
    background: var(--panel); border: 1px solid var(--line);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rb-srv:hover { transform: translateY(-4px); border-color: rgba(54,226,160,.4); box-shadow: 0 16px 34px rgba(0,0,0,.4), 0 0 0 1px rgba(54,226,160,.15); }
.rb-srv-bg {
    position: absolute; inset: 0; background: linear-gradient(135deg, #1b2236, #121521) center / cover no-repeat;
    opacity: .35; transition: opacity .3s, transform .6s;
}
.rb-srv-hasmap .rb-srv-bg { opacity: .28; }
.rb-srv:hover .rb-srv-bg { opacity: .45; transform: scale(1.05); }
.rb-srv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,23,34,.4), rgba(19,23,34,.95) 70%); pointer-events: none; }
.rb-srv-body { position: relative; z-index: 2; padding: 16px; }
.rb-srv-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rb-srv-top img { width: 22px; height: 22px; border-radius: 6px; }
.rb-srv-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--mako); }
.rb-srv-off .rb-srv-status { color: var(--red); }
.rb-srv-off .rb-srv-status .rb-live { background: var(--red); box-shadow: 0 0 0 0 rgba(255,77,109,.6); }
.rb-srv-host { font-weight: 800; font-size: 14.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-srv-host i { font-style: normal; color: var(--muted); }
.rb-srv-map { margin-top: 4px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-srv-map i { color: var(--violet); margin-right: 4px; }
.rb-srv-bar { height: 6px; margin: 14px 0 12px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.rb-srv-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--mako2), var(--mako)); box-shadow: 0 0 12px var(--mako); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.rb-srv-full .rb-srv-bar i { background: linear-gradient(90deg, #e09a14, var(--red)); box-shadow: 0 0 12px var(--red); }
.rb-srv-foot { display: flex; align-items: center; justify-content: space-between; }
.rb-srv-players { font-weight: 800; color: #fff; }
.rb-srv-players i { color: var(--muted); margin-right: 4px; }
a.rb-srv-play:link, a.rb-srv-play:visited { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(255,77,109,.4); transition: transform .2s; }
a.rb-srv-play:hover { transform: scale(1.1); color: #fff; }
.rb-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mako); box-shadow: 0 0 0 0 rgba(54,226,160,.6); animation: rbLive 1.8s infinite; }
@keyframes rbLive { 70% { box-shadow: 0 0 0 8px rgba(54,226,160,0); } 100% { box-shadow: 0 0 0 0 rgba(54,226,160,0); } }

/* ================= ПАНЕЛИ С ТАБЛИЦАМИ ================= */
.rb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.rb-panel { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.rb-grid2 .rb-panel { margin-bottom: 0; }
.rb-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.rb-panel-head > span { display: flex; align-items: center; gap: 9px; font-family: var(--f-head); font-weight: 700; font-size: 13.5px; color: #fff; }
.rb-panel-head > span i { color: var(--red); }
.rb-panel-head a { font-size: 12.5px; font-weight: 700; color: var(--muted) !important; }
.rb-panel-head a:hover { color: var(--mako) !important; }
.rb-panel-head small { color: var(--muted); }
.rb-panel table.listtable { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
.rb-name { font-weight: 700; color: #fff !important; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-date { color: var(--muted) !important; white-space: nowrap; font-size: 12px !important; }
.rb-empty { text-align: center; color: var(--muted) !important; padding: 26px !important; }

/* ================= ТАБЛИЦЫ (все страницы) ================= */
table.listtable, table.listtable2, table.listtable3 {
    font-family: var(--f-body); font-size: 13px; color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line) !important;
    border-collapse: separate !important; border-spacing: 0;
    border-radius: var(--r); overflow: hidden;
}
table.listtable table.listtable { border-radius: 10px; }
td.listtable_top, a.listtable_top {
    height: 42px; padding: 0 14px;
    background: rgba(255,255,255,.025);
    color: #6f7890; font-family: var(--f-body); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}
td.listtable_top b, td.listtable_top strong { font-weight: 800; }
td.listtable_1, td.listtable_2, td.listtable_1_permanent, td.listtable_1_banned, td.listtable_1_unbanned {
    font-family: var(--f-body); font-size: 13px;
    padding: 11px 14px;
    background: transparent; color: var(--text);
    border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.04) !important;
}
td.listtable_2 { background: rgba(0,0,0,.15); }
.tbl_out { background: transparent; }
.tbl_hover { background: rgba(54,226,160,.06) !important; }
.tbl_hover > td:first-child { box-shadow: inset 3px 0 0 var(--mako); }
font[color="#677882"] { color: var(--muted) !important; }

.rb-pill { display: inline-block; padding: 4px 11px; border-radius: 8px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: rgba(255,255,255,.06); color: var(--text); }
td.listtable_1_permanent .rb-pill { color: #ff8da1; background: rgba(255,77,109,.14); box-shadow: inset 0 0 0 1px rgba(255,77,109,.35); }
td.listtable_1_banned    .rb-pill { color: var(--gold); background: rgba(255,194,77,.12); box-shadow: inset 0 0 0 1px rgba(255,194,77,.3); }
td.listtable_1_unbanned  .rb-pill { color: var(--mako); background: rgba(54,226,160,.12); box-shadow: inset 0 0 0 1px rgba(54,226,160,.3); text-decoration: line-through; text-decoration-color: rgba(54,226,160,.5); }
td.listtable_1_permanent { color: #ff8da1; }
td.listtable_1_banned    { color: var(--gold); }
td.listtable_1_unbanned  { color: var(--mako); }

.front-module, .front-module-header { width: 100%; }
.front-module-header td { padding: 12px 6px !important; font-family: var(--f-head); font-size: 13.5px; color: #fff; }
.front-module-line { background: var(--panel2); color: #fff; }
#servers { width: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.tablerow1 { background: var(--panel); }
.tablerow2 { background: rgba(255,77,109,.08); border-color: var(--line); }
.tablerow4 { background: var(--panel2); border-color: var(--line); color: var(--text); }
.rowdesc { color: var(--mako); }

h3 {
    margin: 18px 0 14px; padding: 13px 18px;
    font-family: var(--f-head); font-weight: 700; font-size: 14px; color: #fff;
    background: linear-gradient(90deg, rgba(123,92,255,.14), transparent 70%);
    border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 12px;
}
h4 { color: #fff; }
.largetitle { font-family: var(--f-head); color: #fff; border-bottom: 1px solid var(--line); }
hr { border: 0; height: 1px; background: var(--line); }

/* ================= СТАНДАРТНЫЕ КНОПКИ SB ================= */
.btn, .btnhvr {
    font-family: var(--f-body); font-size: 13px; font-weight: 800;
    padding: 9px 18px; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
    transition: transform .15s, filter .2s, box-shadow .2s;
}
.btn:hover, .btnhvr { transform: translateY(-1px); filter: brightness(1.1); }
.ok, .game { background: linear-gradient(135deg, #5dffbf, var(--mako) 45%, var(--mako2)); border-color: transparent; color: #04110b !important; box-shadow: 0 6px 18px rgba(54,226,160,.28); }
.ok:hover, .game:hover { background: linear-gradient(135deg, #8fffd6, var(--mako)); border-color: transparent; }
.save    { background: linear-gradient(135deg, #9b85ff, var(--violet)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(123,92,255,.3); }
.cancel  { background: linear-gradient(135deg, #ff8197, var(--red)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(255,77,109,.3); }
.refresh { background: var(--panel2); border-color: var(--line2); color: var(--text); }
.refresh:hover { background: var(--panel2); border-color: var(--mako); }

/* ================= ПОЛЯ ================= */
.textbox, .select, .inputbox, .file, .loginmedium, textarea,
input[type="text"]:not(.searchbox), input[type="password"], input[type="email"], input[type="number"], select {
    background: #0e111a !important; color: var(--text) !important;
    border: 1px solid var(--line2) !important; border-radius: 11px !important;
    padding: 9px 13px; font-family: var(--f-body); font-size: 13px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.textbox:focus, .select:focus, .loginmedium:focus, textarea:focus, input:focus, select:focus { border-color: var(--mako) !important; box-shadow: 0 0 0 4px rgba(54,226,160,.12); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--mako); }
.badentry, .mandatory { color: var(--red); }

/* ================= ВХОД / АДМИНКА ================= */
#login, #lostpassword { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
#login-content { color: var(--text); }
#loginOtherlinks { border-top: 1px solid var(--line); }
#cpanel { height: auto; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
#cpanel ul li a { color: var(--text); border-radius: 14px; transition: background .2s, transform .2s; }
#cpanel ul li a:hover { background: rgba(54,226,160,.08); color: var(--mako); transform: translateY(-3px); padding: 2px 5px 1px 5px; }
#admin-page-menu > a { background: var(--panel) !important; color: var(--text) !important; border: 1px solid var(--line) !important; border-radius: 11px !important; margin-bottom: 6px; }
#admin-page-menu > a:hover { border-color: var(--mako) !important; color: var(--mako) !important; }
#admin-page-menu > .active { background: linear-gradient(90deg, rgba(54,226,160,.16), transparent) !important; border-color: rgba(54,226,160,.4) !important; color: #fff !important; }
.tabcontent { color: var(--text); }
.ban-edit li a { border-bottom: 1px solid var(--line); color: var(--text); }
.ban-edit ul li a:hover { color: var(--mako); }
#theme-list ul li a { border-left-color: var(--line2); color: var(--text); }
#theme-list ul li a:hover, #theme-list ul li.active a:hover { border-color: var(--mako); background-color: rgba(54,226,160,.08); color: var(--mako); }
.permis-container ul li a { color: var(--text); }

/* ================= СООБЩЕНИЯ И ОКНА ================= */
#msg-red, #msg-green, #msg-blue, #msg-green-dbg, #msg-red-debug, #msg-blue-debug { height: auto; min-height: 56px; padding: 14px 18px; background: var(--panel); border-radius: var(--r); }
#msg-red, #msg-red-debug   { border: 1px solid rgba(255,77,109,.4); border-left: 4px solid var(--red);    color: #ffb3c0; }
#msg-green, #msg-green-dbg { border: 1px solid rgba(54,226,160,.35); border-left: 4px solid var(--mako); color: #b6ffe2; }
#msg-blue, #msg-blue-debug { border: 1px solid rgba(123,92,255,.4);  border-left: 4px solid var(--violet); color: #cfc4ff; }
#dialog-holder { border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 0 1px var(--line2); }
.dialog-content { background: var(--panel); border: 0; color: var(--text); }
div.dialog-body { border-bottom: 1px solid var(--line); }
div.dialog-control { background: var(--panel2); }
h2 { font-family: var(--f-head); font-weight: 700; font-size: 14px; padding: 12px 16px; }
h2.ok      { background: linear-gradient(90deg, var(--mako2), #127a58); border: 0; }
h2.error   { background: linear-gradient(90deg, var(--red), #a3223d); border: 0; }
h2.warning { background: linear-gradient(90deg, #d99a1c, #8a5f0c); border: 0; }
h2.info    { background: linear-gradient(90deg, var(--violet), #4a33b8); border: 0; }
.tool-tip, .perm-tip { border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.6); border: 1px solid var(--line2); }
.tool-title, .perm-title { background: var(--panel2); color: #fff; border-bottom: 1px solid var(--line); }
.tool-text, .perm-text { background: var(--panel); color: var(--muted); }
div.contextmenu, .contextmenu { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.contextmenu a { color: var(--text); }
.contextmenu a:hover { background: rgba(54,226,160,.1); color: var(--mako); }
.contextmenu .head { background: var(--panel2); }
.contextmenu .separator { background: var(--line); border-bottom-color: var(--line); }

/* ================= ПРАВАЯ ПАНЕЛЬ ================= */
.rb-right {
    position: sticky; top: 0; height: 100vh; overflow-y: auto; box-sizing: border-box;
    padding: 18px 16px; display: flex; flex-direction: column; gap: 14px;
    background: rgba(14,17,25,.7); border-left: 1px solid var(--line);
    scrollbar-width: thin;
}
.rb-play { background: radial-gradient(240px 160px at 100% 0%, rgba(54,226,160,.18), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.rb-play .rb-card-head { color: var(--mako); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.rb-play-name { font-family: var(--f-head); font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.rb-ip { display: flex; gap: 8px; margin-bottom: 12px; }
.rb-ip code { flex: 1; display: flex; align-items: center; padding: 0 12px; border-radius: 11px; background: #0b0e16; border: 1px dashed var(--line2); color: var(--mako); font: 700 13px/38px ui-monospace, Consolas, monospace; cursor: pointer; overflow: hidden; white-space: nowrap; }
.rb-hint { margin-top: 10px; text-align: center; color: var(--muted); font-size: 11.5px; }
.rb-hint code { color: var(--text); font-family: ui-monospace, Consolas, monospace; }
.rb-rule { border-radius: 11px; margin-bottom: 6px; background: rgba(255,255,255,.02); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.rb-rule.open { border-color: var(--line2); background: rgba(255,255,255,.035); }
.rb-rule button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: transparent; color: var(--text); font: 700 13px var(--f-body); text-align: left; cursor: pointer; }
.rb-rule-n { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,77,109,.14); color: var(--red); font-size: 11px; font-weight: 800; }
.rb-rule-t { flex: 1; }
.rb-rule button > i { color: var(--muted); font-size: 11px; transition: transform .25s; }
.rb-rule.open button > i { transform: rotate(180deg); }
.rb-rule-b { max-height: 0; overflow: hidden; padding: 0 12px 0 42px; color: var(--muted); font-size: 12.5px; transition: max-height .3s, padding .3s; }
.rb-rule.open .rb-rule-b { max-height: 140px; padding: 0 12px 11px 42px; }
.rb-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.rb-steps li { counter-increment: s; position: relative; padding: 0 0 14px 40px; }
.rb-steps li:last-child { padding-bottom: 0; }
.rb-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--mako)); color: #fff; font-weight: 800; font-size: 12px; }
.rb-steps li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--line2); }
.rb-steps b { display: block; font-size: 13px; color: #fff; }
.rb-steps span { color: var(--muted); font-size: 12px; }
.rb-link, a.rb-link:link, a.rb-link:visited { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -6px; border-radius: 12px; color: var(--text); transition: background .2s; }
.rb-link:hover { background: rgba(255,255,255,.04); color: #fff; }
.rb-link > i:first-child { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 11px; font-size: 16px; color: #fff; }
.rb-link-discord > i:first-child { background: #5865F2; }
.rb-link-site > i:first-child { background: linear-gradient(135deg, var(--mako2), #127a58); }
.rb-link-vip > i:first-child { background: linear-gradient(135deg, var(--gold), #e09a14); color: #2a1a00; }
.rb-link-steam > i:first-child { background: #1b2838; }
.rb-link span { flex: 1; }
.rb-link b { display: block; font-size: 13px; }
.rb-link small { color: var(--muted); font-size: 11.5px; }
.rb-link-go { color: var(--muted); font-size: 11px; }

/* ================= ПОДВАЛ ================= */
#footer.rb-footer { margin: 40px 30px 0; padding: 22px 0 26px; background: transparent; border-top: 1px solid var(--line); color: var(--muted); width: auto; }
.rb-footer-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.rb-footer-brand { display: flex; align-items: center; gap: 12px; }
.rb-footer-brand img { width: 38px; height: 38px; }
.rb-footer-brand b { display: block; font-family: var(--f-head); color: #fff; font-size: 13px; letter-spacing: 1px; }
.rb-footer-brand small { font-size: 12px; }
.rb-footer-links { display: flex; gap: 18px; }
.rb-footer-links a, .rb-footer-ver a { color: var(--muted) !important; font-weight: 700; }
.rb-footer-links a:hover, .rb-footer-ver a:hover { color: var(--mako) !important; }
.rb-footer-ver { font-size: 12px; }

/* ================= МЕЛОЧИ ================= */
.rb-toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 10000; transform: translate(-50%, 30px); opacity: 0;
    padding: 12px 18px; border-radius: 12px; background: var(--panel2); border: 1px solid rgba(54,226,160,.4); color: #fff; font-weight: 700;
    box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: transform .3s, opacity .3s; pointer-events: none;
}
.rb-toast i { color: var(--mako); margin-right: 6px; }
.rb-toast.show { transform: translate(-50%, 0); opacity: 1; }
.rb-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.rb-reveal.rb-in { opacity: 1; transform: none; }
.rb-overlay { display: none; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--mako2); }

/* ================= АДАПТИВ ================= */
@media (max-width: 1420px) {
    .rb-app { grid-template-columns: var(--side-w) minmax(0, 1fr); }
    .rb-right { display: none; }
    .rb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .rb-slide { max-width: 560px; }
    .rb-grid2 { grid-template-columns: 1fr; }
    .rb-hero-art { opacity: .35; right: -10%; }
    .rb-glint { display: none; }
}
@media (max-width: 980px) {
    .rb-app { grid-template-columns: minmax(0, 1fr); }
    .rb-side { position: fixed; left: 0; top: 0; z-index: 100; width: var(--side-w); transform: translateX(-105%); transition: transform .3s; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
    .side-open .rb-side { transform: none; }
    .side-open .rb-overlay { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
    .rb-burger { display: grid; place-items: center; }
    .rb-top { padding: 12px 16px; flex-wrap: wrap; }
    .rb-search { order: 3; max-width: none; flex-basis: 100%; }
    .rb-clock, .rb-user-name { display: none; }
    #mainwrapper { padding: 0 16px; }
    #footer.rb-footer { margin: 30px 16px 0; }
    .rb-slide { padding: 28px 22px 46px; }
    .rb-slide h1 { font-size: 26px; }
    .rb-dots { left: 22px; }
}
@media (max-width: 560px) {
    .rb-stats { grid-template-columns: 1fr; }
    .rb-hero-art, .rb-hero-circle { display: none; }
    body.rb:has(.rb-hero) #content { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= ФОРМЫ И СТРАНИЦЫ (апелляция, жалоба, админка) ================= */
#submit-main, #admin-page-content, .panel, #banlist-nav, #log_res {
    background: linear-gradient(180deg, var(--panel2), var(--panel)) !important;
    border: 1px solid var(--line); border-radius: var(--r);
    color: var(--text) !important;
}
#submit-main { padding: 22px 24px; margin-top: 14px; line-height: 1.7; }
#admin-page-content { padding: 18px 20px; box-sizing: border-box; }
#submit-main td, #admin-page-content td, .tablerow1, .tablerow2, .tablerow4, .rowdesc, .submit-fields, label, .checkbox { color: var(--text) !important; }
#submit-main a { font-weight: 700; }
#submit-main table { border-spacing: 0 10px; }
#submit-main td:first-child, td.rowdesc { color: #c9cfdd !important; font-weight: 700; }
/* заголовок над формой, если он сделан таблицей */
#content > table:first-child td.listtable_top, #content > table:first-child { border-radius: 12px 12px 0 0; }
select option { background: #0e111a; color: var(--text); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input[type="file"] { color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 14px; border: 1px solid var(--line2); border-radius: 9px; background: var(--panel2); color: var(--text); font-weight: 700; cursor: pointer; }
.mandatory { color: var(--red) !important; margin-left: 2px; }
.badentry { font-weight: 600; }
/* подписи «грей» и мелкий текст в списках */
font[color="grey"], [style*="color:grey"] { color: var(--muted) !important; }
/* любые оставшиеся белые/серые вставки внутри контента */
#content [bgcolor], #content [style*="background-color: #f"], #content [style*="background-color:#f"], #content [style*="background: #f"], #content [style*="background:#f"] { background: var(--panel) !important; }

/* ================= ОНЛАЙН-ЧАТ ================= */
/* кнопка чата WidgetBot стоит в правом нижнем углу; уведомление «скопировано» поднимаем, чтобы не мешало */
.rb-toast { bottom: 96px; }

/* всплывающие окна SourceBans поверх верхней панели */
#dialog-placement { z-index: 1000 !important; top: 90px !important; }

/* автозаполнение браузера (Chrome/Edge) — без светло-голубого фона */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0 1000px #0e111a inset !important;
    box-shadow: 0 0 0 1000px #0e111a inset !important;
    caret-color: var(--text);
    transition: background-color 9999s ease-out 0s;
}
