/* =========================
   VARIABLES & THEMES
========================= */
:root {
  /* Main color */
  --layout_main_code--color: 26, 122, 191;
  --layout_main--color: rgb(var(--layout_main_code--color));
  --layout_main--color_0_3: rgba(var(--layout_main_code--color), 0.3);
  --layout_main--color_0_15: rgba(var(--layout_main_code--color), 0.15);

  /* Layout */
  --container--width: 2270px;
  --header--height: 80px;
  --border--radius: 5px;

  /* Spacing */
  --sp-0: 0px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 64px;

  /* Radius */
  --radius-1: 2px;
  --radius-2: 3px;
  --radius-3: 4px;
  --radius-4: 5px;
  --radius-5: 6px;
  --radius-6: 8px;

  /* Sizes */
  --size-1: 20px;
  --size-2: 24px;
  --size-3: 30px;
  --size-4: 36px;
  --size-5: 44px;
  --size-6: 56px;
  --size-7: 72px;
  --size-8: 92px;

  /* Status colors */
  --button-success: #267b3c;
  --button-infos: #e06d22;
  --button-important: #ca1e1e;

  --message-info: #1f7bbb;
  --message-error: #c53030;
  --message-general: #70767d;
  --message-succes: #2a884b;

  /* Table status */
  --table-unbanned-code: 44, 140, 105;
  --table-unbanned: rgba(var(--table-unbanned-code), 0.1);
  --table-unbanned-text: rgb(var(--table-unbanned-code));
  --table-banned-code: 221, 107, 32;
  --table-banned: rgba(var(--table-banned-code), 0.1);
  --table-banned-text: rgb(var(--table-banned-code));
  --table-permanent-code: 197, 48, 48;
  --table-permanent: rgba(var(--table-permanent-code), 0.1);
  --table-permanent-text: rgb(var(--table-permanent-code));
}

/* Light (default) */
:root {
  --theme-background: #edf0f4;
  --theme-area_background_light: #f7fafc;
  --box--backgroundColor: #fff;

  --theme-text: #353c41;
  --theme-text_light: #464646;
  --theme-text_light-hover: #000;

  --theme-link: var(--layout_main--color);

  --button-light: #e8f2fa;
  --button-light-text: #0e4c79;
  --button--background-hover: rgba(0, 0, 0, 0.08);

  --input--shadow: rgba(44, 95, 140, 0.08);
  --input--border: rgba(113, 128, 150, 0.4);
  --input--border-focusShadow: var(--layout_main--color_0_3) 0px 0px 0px 4px;
  --input--desc: #6c757d;
  --input-disabled: #e6e6e6;

  --line-hr: rgba(0, 0, 0, 0.1);
  --box-shadow: 0 0 40px 0 rgba(94, 92, 154, 0.08);
  --box-shadow--child: 0 0 0 1px rgba(76, 86, 101, 0.2), 0 0 40px 0 rgba(94, 92, 154, 0.08);

  --backdrop-filter-value: blur(15px);
  --backdrop-background: rgba(255, 255, 255, 0.65);
  --backdrop-text_color: #000;

  --body-bg-gradient-1: linear-gradient(90deg, #e8ecf0 0%, #e8ecf0 8%, #dce3e9 20%, #d4dce4 50%, #dce3e9 80%, #e8ecf0 92%, #e8ecf0 100%);
  --body-bg-gradient-2: linear-gradient(180deg, #f0f3f7 0%, rgba(240, 243, 247, 0.95) 16%, rgba(240, 243, 247, 0.85) 24%, transparent 42%);
  --body-bg-gradient-3: radial-gradient(ellipse 80% 45% at 50% 120%, rgba(26, 122, 191, 0.08) 0%, transparent 60%);
}

/* Dark */
[data-theme='dark'] {
  --theme-background: #020308;
  --theme-area_background_light: #0a0f1e;
  --box--backgroundColor: #13141b;

  --theme-text: #efefef;
  --theme-text_light: #bdbdbd;
  --theme-text_light-hover: #fff;

  --theme-link: #60a5fa;

  --button-light: #22242f;
  --button-light-text: #fff;
  --button--background-hover: rgba(255, 255, 255, 0.08);

  --input--shadow: transparent;
  --input--border: #22242f;
  --input--border-focusShadow: rgba(96, 165, 250, 0.3) 0px 0px 0px 4px;
  --input--desc: #98a3ad;
  --input-disabled: #3e4050;

  --line-hr: rgba(255, 255, 255, 0.1);
  --box-shadow: none;
  --box-shadow--child: 0 0 0 1px rgba(147, 161, 181, 0.2), 0 0 40px 0 transparent;

  --backdrop-filter-value: blur(15px);
  --backdrop-background: rgba(19, 20, 27, 0.65);
  --backdrop-text_color: #fff;

  --body-bg-gradient-1: linear-gradient(90deg, #020308 0%, #020308 8%, #05091a 20%, #060a1d 50%, #05091a 80%, #020308 92%, #020308 100%);
  --body-bg-gradient-2: linear-gradient(180deg, #050816 0%, rgba(5, 8, 22, 0.95) 16%, rgba(5, 8, 22, 0.85) 24%, transparent 42%);
  --body-bg-gradient-3: radial-gradient(ellipse 80% 45% at 50% 120%, rgba(37, 99, 235, 0.16) 0%, transparent 60%);
}

/* =========================
   RESET & BASE
========================= */
* { box-sizing: border-box; }

html { font-size: 10px; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--theme-text);
  height: 100%;
  margin: 0;
  cursor: inherit !important;
  background-color: var(--theme-background);
  background-image: var(--body-bg-gradient-1), var(--body-bg-gradient-2), var(--body-bg-gradient-3);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 420px, 100% 100%;
  background-position: center top;
  background-attachment: fixed;
}

a {
  transition: color 0.2s ease;
  color: var(--theme-link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.list-reset { margin: 0; padding: 0; list-style: none; }

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================
   UTILITIES
========================= */
div span.left, div span.right { display: inline-block; width: 50%; }
span.left { float: left; }
span.right { float: right; text-align: right; }

.text\:center { text-align: center; }
.text\:left { text-align: left; }
.text\:right { text-align: right; }
.text\:italic { font-style: italic; }
.text\:bold { font-weight: bold; }

.padding { padding: 20px; }
.padding\:half { padding: 10px; }

.margin { margin: 20px; }
.margin\:half { margin: 10px; }

.margin-top { margin-top: 20px; }
.margin-top\:half { margin-top: 10px; }

.margin-bottom { margin-bottom: 20px; }
.margin-bottom\:half { margin-bottom: 10px; }

.margin-left { margin-left: 20px; }
.margin-left\:half { margin-left: 10px; }

.margin-right { margin-right: 20px; }
.margin-right\:half { margin-right: 10px; }

/* =========================
   BUTTONS (base shared)
========================= */
.button, .ok {
  display: block;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  font-family: inherit;
  padding: 10px 20px;
  border-radius: var(--border--radius);
  color: #fff !important;
  position: relative;
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
  border: 0;
}
.button a, .ok a { color: inherit; }
.button a:hover, .ok a:hover,
.button:hover, .ok:hover { text-decoration: none; }

.button::after, .ok::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--button--background-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s ease-out;
}
.button:hover::after, .ok:hover::after {
  transform: scaleX(1);
  transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
}

.button-success, .ok-success { background-color: var(--button-success); }
.button-infos, .ok-infos { background-color: var(--button-infos); }
.button-important, .ok-important { background-color: var(--button-important); }
.button-primary, .ok-primary { background-color: var(--layout_main--color); }

.button-light, .ok-light {
  background-color: var(--button-light);
  color: var(--button-light-text) !important;
}

.button\:line, .ok\:line { display: inline-block; }
.button\:full, .ok\:full { width: 100%; }

/* original had .ok forced to success */
.ok { background-color: var(--button-success); }

/* =========================
   TABLES
========================= */
.table_box { overflow-x: auto; overflow-y: hidden; }

.table table { width: 100%; border-spacing: 0; }

.table table thead,
.table table td.listtable_top {
  background-color: var(--layout_main--color);
  font-weight: bold;
  color: #fff;
}

.table table thead th { padding: 5px; }
.table table thead th:first-child { border-top-left-radius: var(--border--radius); }
.table table thead th:last-child { border-top-right-radius: var(--border--radius); }

.table table tbody > tr.collapse { cursor: pointer; transition: background-color 0.2s ease; }
.table table tbody tr.collapse:hover { background-color: var(--layout_main--color_0_15); }

.table table tbody td { padding: 5px; }
.table table tbody td img { width: auto; height: auto; }

.table_hide > td { padding: 0 !important; }

.listtable_1_unbanned { background-color: var(--table-unbanned); color: var(--table-unbanned-text); }
.listtable_1_permanent { background-color: var(--table-permanent); color: var(--table-permanent-text); }
.listtable_1_banned { background-color: var(--table-banned); color: var(--table-banned-text); }

/* =========================
   FORMS
========================= */
.form-full { display: block; width: 100%; }

.form-label { font-size: 1.4rem; display: inline-block; }
.form-label\:bottom { margin-bottom: 5px; }
.form-label\:left { margin-left: 5px; }
.form-label\:right { margin-right: 5px; }

.form-desc { margin-top: 5px; color: var(--input--desc); }

.form-input, .form-file, .form-text {
  border-radius: var(--border--radius);
  padding: 1.3rem 1.2rem;
  color: inherit;
  border: 1px solid var(--input--border);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-input { background-color: var(--theme-background); }
.form-file, .form-text { background-color: var(--box--backgroundColor); }

.form-input:disabled { background-color: var(--input-disabled); cursor: default; }

.form-input:focus, .form-file:focus, .form-text:focus {
  box-shadow: var(--input--border-focusShadow);
  border-color: var(--layout_main--color);
  outline: 0;
}

.form-text {
  width: 100%;
  max-width: 100% !important;
  height: 200px;
  font-family: inherit;
}
.form-text\:rcron { overflow: auto; height: 250px; }

.form-check, .form-radio {
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.2rem;
  vertical-align: top;
  background-color: var(--box--backgroundColor);
  border: 1px solid var(--input--border);
  appearance: none;
  print-color-adjust: exact;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-check { border-radius: var(--border--radius); }
.form-radio { border-radius: 50%; }

.form-check:focus, .form-radio:focus {
  box-shadow: var(--input--border-focusShadow);
  border-color: var(--layout_main--color);
  outline: 0;
}

.form-check:checked, .form-radio:checked {
  background-color: var(--layout_main--color);
  border-color: var(--layout_main--color);
}

.form-check:checked[type='checkbox'] {
  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e\");
}

.form-radio:checked[type='radio'] {
  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e\");
}

.form-check:not(:disabled) + .form-label { cursor: pointer; }
.form-check:disabled { background-color: var(--input-disabled); cursor: default; }

.form-select {
  border-radius: var(--border--radius);
  padding: 1.3rem 3.2rem 1.3rem 1.2rem;
  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e\");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  background-color: var(--theme-background);
  color: inherit;
  border: 1px solid var(--input--border);
  appearance: none;
  transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-select::-ms-expand { display: none; }
.form-select:focus {
  box-shadow: var(--input--border-focusShadow);
  border-color: var(--layout_main--color);
  outline: 0;
}

.badentry {
  color: #cc0000;
  display: none;
  font-weight: bold;
}
.badentry::before {
  content: '\f071';
  font-family: 'Font Awesome 6 Free';
  color: #ffd43b;
}

/* =========================
   MESSAGES (old + custom)
========================= */
.message {
  position: relative;
  margin-bottom: 10px;
  border-radius: var(--radius-3);
  padding: 16px 16px 16px 44px;
  color: #fff;
}
.message h3 { padding: 0; margin: 0; font-size: 18px; }

.message::before {
  content: '\f129';
  font-family: 'Font Awesome 6 Free';
  font-weight: bold;
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 20px;
  line-height: 1;
}

.message\:info { background-color: var(--message-info); }
.message\:succes { background-color: var(--message-succes); }
.message\:succes::before { content: '\f00c'; }
.message\:error { background-color: var(--message-error); }
.message\:error::before { content: '\f00d'; }
.message\:general { background-color: var(--message-general); }

/* Custom message system */
.cMargin_vertical, .cMargin_bottom { margin-bottom: var(--sp-5) !important; }

.cMessage, .cAnnouncement {
  border-radius: var(--radius-3);
  position: relative;
  margin-bottom: var(--sp-3);
  color: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: inset rgba(255,255,255,0.1) 0px 1px 0px;
}
html[dir="ltr"] .cMessage { padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-9); }
html[dir="rtl"] .cMessage { padding: var(--sp-4) var(--sp-9) var(--sp-4) var(--sp-4); }

.cMessage:before {
  font-family: 'Font Awesome 6 Free';
  position: absolute;
  top: var(--sp-4);
  font-size: 20px;
  line-height: 1;
}
html[dir="ltr"] .cMessage:before { left: var(--sp-4); }
html[dir="rtl"] .cMessage:before { right: var(--sp-4); }

.cMessage :not(.cButton) { color: inherit; }

.cMessage_title {
  margin: 0 0 var(--sp-1) 0;
  padding: 0;
  line-height: 1;
}

.cMessage a.cButton { margin-top: -5px; }

html[dir] .cMessage .cButton_link {
  border-color: currentColor;
  color: #fff;
  opacity: 0.7;
}

.cMessage_code {
  padding: 7px;
  display: inline-block;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-2);
  margin-top: -7px;
  color: rgba(255,255,255,0.8);
}
html[dir="rtl"] .cMessage_code { float: left; margin-left: -7px; }

.cMessage_info, .cMessage_information { background: #1f7bbb; }
.cMessage_general { background: #70767d; }
.cMessage_warning { background: #e06d22; }
.cMessage_success { background: #2a884b; }

/* =========================
   POPUPS
========================= */
.popup {
  position: fixed !important;
  vertical-align: middle;
  display: none;
  opacity: 0;
  overflow: hidden;
  text-align: center;
}

.popup_block {
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  z-index: 5001;
  width: 480px;
}

@media screen and (max-width: 980px) {
  .popup_block { top: 50px; width: calc(100% - 20px); }
}

.popup_background {
  background-color: rgba(0, 0, 0, 0.4);
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5000;
}

.popup_title {
  background-color: var(--theme-area_background_light);
  border-top-left-radius: var(--border--radius);
  border-top-right-radius: var(--border--radius);
  font-size: 18px;
  border-bottom: 1px solid var(--line-hr);
}

.popup_footer {
  background-color: var(--theme-area_background_light);
  border-bottom-left-radius: var(--border--radius);
  border-bottom-right-radius: var(--border--radius);
  border-top: 1px solid var(--line-hr);
}

.popup_icon { font-size: 36px; }

/* =========================
   ERROR PAGE
========================= */
.error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 1;
}

.error > i { font-size: 64px; margin-bottom: 10px; }
.error_title { color: var(--theme-text_light); font-size: 16px; }
.error_content { font-size: 24px; font-weight: 500; max-width: 800px; text-align: center; }
.error_code { color: var(--theme-text_light); }

/* =========================
   LAYOUT
========================= */
.layout_container { padding: 0 15px; margin: 0 auto; position: relative; }

.layout_box {
  box-shadow: var(--box-shadow);
  border-radius: var(--border--radius);
  background-color: var(--theme-area_background_light);
}

.layout_box_title {
  background-color: var(--layout_main--color);
  padding: 16px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  color: #fff;
  border-radius: var(--border--radius);
}
li.layout_box_title { list-style-type: none; }

.layout_box_title h2,
.layout_box_title h3,
.layout_box_title h4 {
  padding: 0;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

.layout_box_small { width: 98%; max-width: 450px; }
.layout_box_medium { width: 98%; max-width: 700px; }

.layout_box-child {
  box-shadow: var(--box-shadow--child);
  border-radius: var(--radius-3);
}

.layout_topBar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: var(--backdrop-background);
  backdrop-filter: var(--backdrop-filter-value);
  color: var(--backdrop-text_color);
  box-shadow: 0 0 40px 0 rgba(56, 55, 93, 0.3);
  padding: 10px 0;
}

@media screen and (max-width: 980px) {
  .layout_topBar { padding: 0; height: 50px; }
  .layout_topBar > .layout_container { padding: 0; margin: 0; }
}

.layout_topBar_action {
  margin: 0;
  padding: 0;
  list-style: none;
  margin-right: auto;
}

@media screen and (max-width: 980px) { .layout_topBar_action { margin-right: initial; } }

.layout_topBar_action li { font-size: 20px; }
@media screen and (max-width: 980px) { .layout_topBar_action li { font-size: 22px; } }

.layout_topBar_action li button {
  background: transparent !important;
  padding: 0;
  color: var(--backdrop-text_color);
  border: 0;
  font-size: inherit;
  width: 20px;
  cursor: pointer;
}
@media screen and (max-width: 980px) {
  .layout_topBar_action li button {
    width: 44px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.layout_topBar_action li button:focus { outline: none; }

.layout_topBar_action li:not(:last-child) { margin-right: 15px; }
@media screen and (max-width: 980px) { .layout_topBar_action li:not(:last-child) { margin-right: 0; } }

.layout_topBar_userBar { margin: 0; padding: 0; list-style: none; }

[data-theme='dark'] .layout_topBar .layout_topBar_action li #user_action_change_dark i { color: #ffe200; }

.layout_body {
  margin: 20px auto;
  padding: 0 15px;
  max-width: var(--container--width);
}

/* =========================
   HEADER / FOOTER
========================= */
.header { box-shadow: var(--box-shadow); margin-top: 60px; }
@media screen and (max-width: 980px) { .header { margin-top: 50px; } }

.header_logo {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  height: var(--header--height);
}
.header_logo img { max-width: 100%; max-height: 120%; }

.footer > .layout_container { padding: 20px 15px; }
.footer a { font-weight: bold; }

/* =========================
   NAV (desktop)
========================= */
.nav { width: 255px; }
.nav ul { margin: 0; padding: 0; list-style: none; }

.nav ul li.active {
  border-left: 5px solid var(--layout_main--color);
  font-weight: bold;
}

.nav ul li a {
  display: block;
  padding: 15px 25px;
  color: var(--theme-text_light);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.nav ul li a::before {
  font-family: 'Font Awesome 6 Free';
  font-size: 14px;
  font-weight: 700;
  margin-right: 3px;
}
.nav ul li a[data-nav='home']::before { content: '\f015'; }
.nav ul li a[data-nav='servers']::before { content: '\f233'; }
.nav ul li a[data-nav='banlist']::before { content: '\f05e'; }
.nav ul li a[data-nav='commslist']::before { content: '\f539'; }
.nav ul li a[data-nav='submit']::before { content: '\f11e'; }
.nav ul li a[data-nav='protest']::before { content: '\f4fd'; }
.nav ul li a[data-nav='admin']::before { content: '\f023'; }

.nav ul li a:hover { color: var(--theme-text_light-hover); text-decoration: none; }

.nav ul li a::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--layout_main--color_0_15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}
.nav ul li a:hover::after { transform: scaleX(1); transition-timing-function: ease; }

/* =========================
   NAV (mobile)
========================= */
.nav_mobile.show .nav_mobile_content { transform: translateX(0); }
.nav_mobile.show .nav_mobile_background { display: block; }
.nav_mobile.show .nav_mobile_close { animation: fadeIn 0.2s 0.5s ease-out forwards; }

.nav_mobile_content {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 1100;
  width: 340px;
  max-width: calc(100% - 50px);
  background-color: var(--box--backgroundColor);
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.2);
  transform: translateX(calc(100% + 45px));
  transition: transform 0.3s ease;
  overflow: auto;
}

.nav_mobile_tab_nav ul { margin: 0; padding: 0; list-style: none; }
.nav_mobile_tab_nav ul li.active { font-weight: bold; }

.nav_mobile_tab_nav ul li a {
  display: block;
  padding: 12px 20px;
  color: var(--theme-text_light);
}
.nav_mobile_tab_nav ul li a:hover { text-decoration: none; }

.nav_mobile_tab_nav ul li a::before {
  font-family: 'Font Awesome 6 Free';
  font-size: 14px;
  font-weight: 700;
  margin-right: 3px;
}
.nav_mobile_tab_nav ul li a[data-nav='home']::before { content: '\f015'; }
.nav_mobile_tab_nav ul li a[data-nav='servers']::before { content: '\f233'; }
.nav_mobile_tab_nav ul li a[data-nav='banlist']::before { content: '\f05e'; }
.nav_mobile_tab_nav ul li a[data-nav='commslist']::before { content: '\f539'; }
.nav_mobile_tab_nav ul li a[data-nav='submit']::before { content: '\f11e'; }
.nav_mobile_tab_nav ul li a[data-nav='protest']::before { content: '\f4fd'; }
.nav_mobile_tab_nav ul li a[data-nav='admin']::before { content: '\f023'; }

.nav_mobile_tab_top {
  background-color: var(--box--backgroundColor);
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line-hr);
}

.nav_mobile_background {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.nav_mobile_open {
  width: 44px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: transparent;
  border: 0;
  color: var(--backdrop-text_color);
  cursor: pointer;
}

.nav_mobile_close {
  background: var(--box--backgroundColor);
  width: 35px;
  height: 35px;
  border-radius: 40px;
  color: var(--backdrop-text_color);
  text-align: center;
  font-size: 22px;
  position: fixed;
  opacity: 0;
  top: 5px;
  right: 330px;
  z-index: 2000;
  border: 0;
  cursor: pointer;
}

/* =========================
   SEARCH BOX
========================= */
.searchbox {
  width: 200px;
  padding: 5px 3px;
  background-color: var(--theme-background);
  color: var(--theme-text);
  border: 0;
  margin-bottom: 5px;
}

.button_search {
  border: 0;
  height: 26px;
  color: #fff !important;
  background-color: var(--layout_main--color);
  font-weight: bold;
  font-family: inherit;
  text-transform: uppercase;
  text-align: center;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--border--radius);
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.button_search::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--button--background-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s ease-out;
}
.button_search:hover::after { transform: scaleX(1); }

/* =========================
   ADMIN NAV / DASHBOARD / TABS
========================= */
.admin_nav {
  background-color: var(--layout_main--color);
  border-radius: var(--radius-3);
  width: 100%;
  overflow-x: auto;
  color: #fff;
}
.admin_nav ul { margin: 0; padding: 0; list-style: none; }

.admin_nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-align: center;
  width: 115px;
  height: 100%;
  padding: 15px 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.admin_nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: inherit;
  text-decoration: none;
}
.admin_nav ul li a i { font-size: 40px; }
.admin_nav ul li a span { margin-top: 10px; }

.admin_dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-gap: 10px;
  width: 100%;
  overflow-x: auto;
}
@media screen and (min-width: 980px) {
  .admin_dashboard { grid-template-columns: repeat(auto-fit, minmax(25%, 1fr)); }
}

.admin_tab { width: 280px; margin-right: 20px; }
@media screen and (max-width: 980px) {
  .admin_tab { width: 100%; margin-right: 0; margin-bottom: 20px; }
}
.admin_tab_mobile { width: 100%; }

.admin_tab_ul { max-height: 100%; transition: max-height 0.3s ease; }
@media screen and (max-width: 980px) { .admin_tab_ul { max-height: 0; overflow: hidden; } }

.admin_tab_ul a, .admin_tab_ul button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-4);
  font-family: inherit;
  font-size: 14px;
  color: inherit;
  text-align: left;
  border: 0;
  background-color: transparent;
  cursor: pointer;
}
.admin_tab_ul a:hover, .admin_tab_ul button:hover {
  background-color: var(--layout_main--color);
  color: #fff;
  text-decoration: none;
}

.admin_tab_content { width: 100%; }

.admin_tab_content_title {
  padding: 20px;
  background-color: var(--theme-area_background_light);
  border-bottom: 1px solid var(--line-hr);
}
.admin_tab_content_title h2,
.admin_tab_content_title h3 {
  padding: 0;
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#admin-page-content {
  flex: 1;
  width: 100%;
  box-shadow: var(--box-shadow);
  border-radius: var(--border--radius);
  background-color: var(--theme-area_background_light);
}
#admin-page-content > .tabcontent > .admin_tab_content_title {
  border-radius: var(--border--radius) var(--border--radius) 0 0;
}

#tabsWrapper #tabs ul {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0;
  padding: 10px 10px 0 10px;
  list-style: none;
  background-color: var(--layout_main--color);
  border-radius: var(--border--radius) var(--border--radius) 0 0;
  color: var(--theme-text);
}
#tabsWrapper #tabs ul li { flex: 1; text-align: center; height: 100%; }

#tabsWrapper #tabs ul li.active a {
  background-color: var(--theme-area_background_light);
  font-weight: bold;
  color: inherit;
}
#tabsWrapper #tabs ul li:not(.active) a:hover { background-color: rgba(255, 255, 255, 0.15); }

#tabsWrapper #tabs ul li a {
  display: block;
  width: 100%;
  color: #fff;
  text-decoration: none;
  line-height: 3;
  font-size: 14px;
  border-radius: var(--border--radius) var(--border--radius) 0 0;
}

.tabcontent { display: none; }
.tabcontent:first-of-type { display: block; }

.theme_list { display: flex; flex-direction: column; list-style: none; }
.theme_list li h3 { margin: 0; padding: 0; }
.theme_list li:not(:last-child) { margin-bottom: 10px; }

.test { height: 100% !important; }

/* =========================
   FLEX UTILITIES
========================= */
.flex { display: flex; justify-content: space-evenly; }

.flex-jc\:left { justify-content: left; }
.flex-jc\:center { justify-content: center; }
.flex-jc\:right { justify-content: right; }
.flex-jc\:space-between { justify-content: space-between; }
.flex-jc\:end { justify-content: flex-end; }
.flex-jc\:start { justify-content: flex-start; }

.flex-ai\:center { align-items: center; }
.flex-ai\:start { align-items: flex-start; }
.flex-ai\:end { align-items: flex-end; }

.flex-fd\:column { flex-direction: column; }
.flex-wrap\:wrap { flex-wrap: wrap; }

.flex\:11 { flex: 1; width: 100%; }

/* =========================
   RESPONSIVE + MAIN
========================= */
@media screen and (min-width: 980px) {
  .responsive_hide\:desktop { display: none !important; }
  main { display: flex; }
}
@media screen and (max-width: 980px) {
  .responsive_show\:desktop { display: none !important; }
  .m\:flex-fd\:column { flex-direction: column; }
  .lists-mobile { display: inline-flex !important; justify-content: center !important; }
  .ban_action.responsive_hide\:desktop.lists-mobile { padding: 5px 10px; width: max-content; }
}

/* =========================
   PAGE HEADER / BREADCRUMB / PAGINATION
========================= */
.page_header { margin-bottom: 5px; }

.page_header > h1 {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
}

.breadcrumb {
  font-size: 13px;
  font-weight: 400;
  padding: 10px 0;
  margin-bottom: 20px;
}
.breadcrumb > *:last-child { font-weight: bold; }

.pagination {
  display: inline-flex;
  line-height: 26px;
  font-size: 12px;
}
.pagination a { padding: 0 10px; border-radius: var(--radius-3); }

/* JSColor */
.jscolor::before {
  content: '\f1fc';
  font-family: 'Font Awesome 6 Free';
  font-weight: 700;
}

/* =========================
   BAN LIST DETAILS / COMMENTS
========================= */
.collapse_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.ban_action {
  margin: 0 15px 0 0;
  padding: 0;
  list-style: none;
  flex: 0 0 200px;
}
.ban_action li { margin-bottom: 10px; margin-right: 10px; }
@media screen and (min-width: 980px) { .ban_action li:not(:last-child) { margin-bottom: 10px; } }

.ban_list_detal {
  margin: 0;
  padding: 0;
  list-style: none;
  margin-right: 10px;
  flex: 1;
}
.ban_list_detal li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 5px 0;
  flex: 0 1 100%;
  overflow: hidden;
}
.ban_list_detal li > span { display: block; }
.ban_list_detal li > span:first-child { flex: 0 0 200px; }
.ban_list_detal li > span:last-child { display: flex; flex-wrap: wrap; flex: 1; }
.ban_list_detal li > span:last-child > span { flex: 0 1 99%; }

.ban_list_comments { flex: 1; min-width: 300px; }
.ban_list_comments ul { margin: 0; padding: 10px; list-style: none; }
.ban_list_comments ul li:not(:last-child) { margin-bottom: 20px; }

.ban_list_comments_header { display: flex; overflow: auto; }
.ban_list_comments_header + div { overflow: auto; }
.ban_list_comments_header span:first-child { margin-right: auto; }
.ban_list_comments_header > *:not(:first-child):not(:last-child) { margin-right: 10px; }
.ban_list_comments_header .fa-trash { color: red; }

/* =========================
   CONTEXT MENU
========================= */
div.contextmenu {
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 1px 15px 1px rgba(69, 65, 78, .08);
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius: var(--radius-3);
  width: 10em;
  padding-bottom: 2px;
}

div.contextmenu .head {
  border-radius: var(--radius-3);
  font-size: 12px;
  background-color: #f2f8f9;
  padding: 4px 5px 3px 5px;
  color: #b2002a;
}

div.contextmenu a {
  color: #222;
  display: block;
  text-decoration: none;
  cursor: default;
  outline: none;
  font-size: 11px;
  padding: 4px 15px;
  margin: 0 2px;
}

div.contextmenu a.disabled { color: #bbb; }
div.contextmenu a.disabled:hover { background: #f2feff; }
div.contextmenu a:hover { background-color: #f2f8f9; }

div.contextmenu .separator {
  height: 1px;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid #eee;
  margin: 4px;
}

/* =========================
   TOOLTIP (legacy)
========================= */
.tool-tip, .perm-tip { color: #fff; z-index: 13000; text-align: left; }
.tool-tip { width: 139px; }
.perm-tip { width: 210px; }

.tool-title, .perm-title {
  font-weight: bold;
  font-size: 14px;
  margin: 0;
  color: #dadfe1;
  border-bottom: #dadfe1 dotted 1px;
  padding: 8px 8px 4px;
}
.tool-title, .tool-text { background-color: rgba(108, 122, 137, 0.7); }
.tool-text { font-size: 11px; padding: 4px 8px 8px; background-color: rgba(108, 122, 137, 0.7); }

.perm-title { background: url(../images/tooltip_sqr.png) top left; }
.perm-text {
  font-size: 11px;
  padding: 4px 8px 8px;
  background: url(../images/tooltip_sqr.png) bottom right;
}

/* =========================
   MISC UI (legacy)
========================= */
.dbg.b { font-size: 12px; font-weight: bold; }
.front-module-line { background-color: #a69e97; color: #fff; }

.rowdesc { color: #ff8100; font-weight: bold; }
hr { border: 1px solid #ddd; }

.select {
  background: #fff;
  font-size: 13px;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: var(--radius-2);
}
.textbox {
  background: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: var(--radius-2);
}
.file {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: var(--radius-2);
  padding: 3px;
}

.user { color: #eee; float: right; margin-top: 18px; margin-right: 10px; }
.user a:visited, .user a:link, .user a:hover { color: #bd754b; }

.front-module-header { margin-bottom: 3px; font-size: 12px; font-weight: 600; }

.fa-facebook:before { margin-left: 1px; }

/* clearfix legacy */
.clearfix:after {
  content: '.';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
.clearfix { display: inline-block; }

/* =========================
   SOCIAL MEDIA
========================= */
.SocialMedia a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 100%;
  background-color: transparent;
  font-size: 18px !important;
  color: var(--backdrop-text_color);
}
.SocialMedia a:hover { text-decoration: none; }

.SocialMedia a[href*='facebook.com'] { background-color: #304c87 !important; color: #fff !important; }
.SocialMedia a[href*='instagram.com'] { background: linear-gradient(to right,#ff3019 0%,#c90477 100%); margin-bottom: 2px; color: #fff !important; }
.SocialMedia a[href*='twitter.com'] { background-color: #1da1f2 !important; color: #fff !important; }
.SocialMedia a[href*='steamcommunity.com'] { background-color: #1b2838 !important; color: #fff !important; }
.SocialMedia a[href*='youtube.com'] { background-color: red !important; margin-bottom: 2px; color: #fff !important; }
.SocialMedia a[href*='twitch.tv'] { background-color: #4b367c !important; margin-left: 1px; color: #fff !important; }
.SocialMedia a[href*='discord.gg'],
.SocialMedia a[href*='discordapp.com'] { background-color: #7289da !important; color: #fff !important; }
.SocialMedia a[href*='telegram.org'] { background-color: #29aaec !important; color: #fff !important; }
.SocialMedia a[href*='ebans.nide.gg'],
.SocialMedia a[href*='kbans.nide.gg'] { background-color: #1b2838 !important; color: #fff !important; }

/* =========================
   LEGACY BUTTONS (kept)
========================= */
.game { background-color: #8cc152; border-color: #8cc152; }
.game:hover { background-color: #a0d468; border-color: #a0d468; }

.refresh { background-color: #3bafda; border-color: #3bafda; }
.refresh:hover { background-color: #4fc1e9; border-color: #4fc1e9; }

.save, .cancel {
  display: block;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  font-family: inherit;
  padding: 10px 20px;
  border-radius: var(--border--radius);
  color: #fff;
  position: relative;
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  margin-top: 10px;
}
.save { background-color: #ff8100; }
.cancel { background-color: #ff0000; }

.faux-button {
  padding: 2px 10px;
  font-size: 11px;
  background-color: #d7d8d8;
  border: 2px outset #999;
  color: #b80202;
  border: 1px solid #aaa9a9;
  font-weight: 600;
  letter-spacing: 1px;
}
.mandatory { color: #ff0000; }

.tablerow4 {
  background-color: var(--layout_main--color);
  font-weight: bold;
  color: #fff;
  padding: 5px;
}

/* =========================
   LEGACY TABLES (kept)
========================= */
table.listtable, table.listtable2, table.listtable3 {
  font-family: Verdana, Arial, Tahoma, 'Trebuchet MS', Sans-Serif, Georgia, Courier, 'Times New Roman', Serif;
  border-collapse: collapse;
}
table.listtable { font-size: 10px; border: 1px solid transparent; }
table.listtable2 { font-size: 10px; color: #000; border: #c5c5c5 solid; border-width: 1px; }
table.listtable3 { font-size: 11px; color: #000; border: #c5c5c5 solid; border-width: 0; }

td.listtable_2 {
  font-family: Verdana, Arial, Tahoma, 'Trebuchet MS', Sans-Serif, Georgia, Courier, 'Times New Roman', Serif;
  font-size: 10px;
  border: #ccc solid;
  border-width: 0 0 1px 1px;
  padding: 2px 4px;
  background-color: #eaebeb;
}