@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Squada+One&display=swap");

:root {
  --rs-bg: #080808;
  --rs-panel: #171717;
  --rs-panel-light: #202020;
  --rs-panel-hover: #262626;

  --rs-red: #bd0000;
  --rs-red-bright: #ff1f1f;
  --rs-red-dark: #780000;

  --rs-text: #f1f1f1;
  --rs-muted: #b8b8b8;
  --rs-muted-dark: #777;

  --rs-border: #343434;
  --rs-border-red: rgba(189, 0, 0, 0.55);

  --rs-good: #32d46b;

  --radius: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);

  --bs-body-bg: var(--rs-bg);
  --bs-body-color: var(--rs-text);
  --bs-border-color: var(--rs-border);
  --bs-link-color: var(--rs-text);
  --bs-link-hover-color: #fff;
  --bs-primary: var(--rs-red);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.92)),
    url("https://query.rsclan.gg/images/uptime/rs_backgroundbanner.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--rs-text);
  font-family: "Poppins", sans-serif;
}

.container-xxl {
  width: min(100%, 1500px);
  max-width: 1500px !important;
  min-width: 0;
}

/* ================= HEADER ================= */

.siteHeader {
  background: rgba(8, 8, 8, 0.95);
  border-bottom: 2px solid var(--rs-red);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.navbar .rsBrand,
.navbar .rsBrand:hover,
.navbar .rsBrand:focus {
  color: #fff !important;
  font-family: "Squada One", Impact, sans-serif !important;
  font-size: 32px !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.navbar .rsBrandText,
.rsBrandText {
  display: inline-flex;
  gap: 0.25em;
  align-items: baseline;
  font-family: "Squada One", Impact, sans-serif !important;
}

.navbar .rsBrandGame,
.rsBrandGame {
  color: var(--rs-red-bright) !important;
}

.navbar .rsBrandTitle,
.rsBrandTitle {
  color: #fff !important;
}

.brandLogo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(189, 0, 0, 0.35));
}

.rsNavbarToggler {
  border-color: var(--rs-border-red);
}

.rsNavbarToggler:focus {
  box-shadow: 0 0 0 3px rgba(189, 0, 0, 0.25);
}

.headerNav {
  gap: 6px;
}

.headerNav .nav-link {
  position: relative;
  padding: 8px 9px;
  color: var(--rs-muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.headerNav .nav-link::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 2px;
  height: 2px;
  background: var(--rs-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.headerNav .nav-link:hover,
.headerNav .nav-link:focus {
  color: #fff;
}

.headerNav .nav-link:hover::after,
.headerNav .nav-link:focus::after {
  transform: scaleX(1);
}

.headerMeta {
  color: var(--rs-muted);
  font-size: 14px;
  white-space: nowrap;
}

/* ================= GLOBAL CONTENT ================= */

.mainContent {
  width: 100%;
  max-width: 1500px;
  min-width: 0;
  padding: 30px 0 46px;
  overflow-x: hidden;
}

.rsContentSection,
.rsPageIntro {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.rsPageIntro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero h1,
.sectionTitle,
.chartCard h2,
.serverTitle h3,
.gameCardBody h3,
.infoPanel h2,
.physicalCard h3,
.rsContentHeader h2,
.rsSectionHeader h1,
.rsLoginHeader h1,
.rsVipEditorHeader h2,
.rsVipGroupHeader h3 {
  font-family: "Squada One", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rs-red-bright);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.sectionTitle {
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.sectionSubtext,
.statusText {
  color: var(--rs-muted);
  font-size: 14px;
}

/* ================= HERO ================= */

.observerHero,
.hero {
  max-width: 100%;
  min-width: 0;
  background:
    linear-gradient(rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.92)),
    url("https://query.rsclan.gg/images/uptime/rs_backgroundbanner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--rs-border-red);
  border-left: 6px solid var(--rs-red);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.9;
}

.hero p:last-child,
.hero p {
  max-width: 900px;
  margin: 0;
  color: var(--rs-muted);
  line-height: 1.65;
}

/* ================= CARDS / PANELS ================= */

.statCard,
.chartCard,
.serverCard,
.detailCard,
.physicalCard,
.gameCard,
.infoPanel,
.cardLike,
.rsContentCard,
.rsFormPanel,
.rsLoginCard,
.bulkActionPanel {
  max-width: 100%;
  min-width: 0;
  background: rgba(23, 23, 23, 0.94);
  border: 1px solid var(--rs-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.statCard {
  padding: 18px;
  border-top: 3px solid var(--rs-red);
  text-align: left;
}

.statCard strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-family: "Squada One", Impact, sans-serif;
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
}

.statCard span {
  display: block;
  color: var(--rs-muted);
  font-size: 14px;
  font-weight: 600;
}

.rsStatsGrid {
  max-width: 100%;
  min-width: 0;
}

.rsStatsGrid > .col {
  min-width: 0;
}

.gameCard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.gameCard:hover {
  background: var(--rs-panel-hover);
  border-color: var(--rs-border-red);
  transform: translateY(-2px);
}

.gameCardImage {
  min-height: 155px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--rs-border);
}

.gameCardBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.gameCardBody h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.gameCardBody p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--rs-muted);
  font-size: 14px;
  line-height: 1.65;
}

.infoPanel {
  padding: 22px;
}

.infoPanel h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.infoPanel p {
  max-width: 1000px;
  margin: 0;
  color: var(--rs-muted);
  font-size: 14px;
  line-height: 1.65;
}

.rsContentCard {
  padding: 0;
  overflow: hidden;
}

.rsContentHeader {
  padding: 20px 22px;
  background: rgba(10, 10, 10, 0.88);
  border-bottom: 1px solid var(--rs-border);
}

.rsContentHeader h2 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.rsContentBody {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 22px;
  overflow-x: hidden;
}

.rsSectionHeader {
  margin-bottom: 20px;
}

.rsSectionHeader h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 46px;
  line-height: 0.95;
}

.rsSectionHeader p:last-child {
  margin: 0;
}

/* ================= FORMS ================= */

.rsFormPanel {
  max-width: 1000px;
  padding: 22px;
  border-left: 6px solid var(--rs-red);
}

.rsFormPanel .row {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
}

label,
.form-label {
  margin: 0 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-control,
.form-select,
input,
select,
textarea,
.rsFormControl {
  min-width: 0;
  min-height: 46px;
  background-color: var(--rs-panel-light);
  border: 1px solid var(--rs-border);
  border-radius: 8px;
  color: var(--rs-text);
  padding: 12px 13px;
  outline: none;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus,
.rsFormControl:focus {
  background-color: var(--rs-panel-light);
  border-color: var(--rs-red-bright);
  box-shadow: 0 0 0 3px rgba(189, 0, 0, 0.25);
  color: var(--rs-text);
}

.form-control::placeholder,
.rsFormControl::placeholder,
textarea::placeholder {
  color: var(--rs-muted-dark);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.rsReadonlyValue {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 13px;
  background-color: var(--rs-panel-light);
  border: 1px solid var(--rs-border);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
}

/* ================= VIP EDITOR ================= */

.rsVipEditor {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.rsVipEditor > form {
  margin: 0;
}

.rsVipEditorHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 0 0 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--rs-border);
}

.rsVipEditorHeader .eyebrow {
  margin-bottom: 5px;
}

.rsVipEditorHeader h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.9;
}

.rsVipEditorHeader > p {
  max-width: 760px;
  margin: 0;
  color: var(--rs-muted);
  font-size: 13px;
  line-height: 1.6;
}

.rsVipFormSection {
  height: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  background: rgba(10, 10, 10, 0.38);
  border: 1px solid var(--rs-border);
  border-left: 4px solid var(--rs-red);
  border-radius: var(--radius);
  box-shadow: none !important;
}

.rsVipFormPrimary {
  border-left-color: var(--rs-red-bright);
}

.rsVipGroupHeader {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.rsVipGroupHeader h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 28px;
  line-height: 0.95;
}

.rsVipGroupHeader p {
  margin: 0;
  color: var(--rs-muted);
  font-size: 13px;
  line-height: 1.55;
}

.rsFieldHint,
.form-text.rsFieldHint {
  margin-top: 7px;
  color: var(--rs-muted-dark) !important;
  font-size: 12px;
  line-height: 1.45;
}

/* ================= DISCORD ROLE CHECK ================= */

.rsDiscordRoleResult {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  max-width: 100%;
  min-width: 0;
}

.rsDiscordRoleResult > div {
  min-width: 0;
  padding: 13px;
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid var(--rs-border);
  border-radius: var(--radius);
}

.rsDiscordRoleLabel {
  display: block;
  margin-bottom: 5px;
  color: var(--rs-muted-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsDiscordRoleResult strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rsDiscordRoleGood > div {
  border-color: rgba(50, 212, 107, 0.36);
}

.rsDiscordRoleBad > div {
  border-color: rgba(189, 0, 0, 0.55);
}

/* ================= VIP MANAGER TABLE ================= */

.rsVipManagerPanel {
  margin-bottom: 18px;
}

.rsVipManagerHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rsVipManagerHeader > div {
  min-width: 0;
}

.rsVipMembersTable {
  margin-top: 10px !important;
}

.rsVipIdentity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rsVipIdentity strong {
  display: grid;
  gap: 3px;
  color: #fff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.rsVipIdentity small {
  display: block;
  color: var(--rs-muted-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.rsTableActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.rsTableActions .smallBtn {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 11px;
}

.rsTableActions .smallBtn i {
  margin-right: 5px;
}

.rsCurrentVipRow > * {
  background: rgba(189, 0, 0, 0.18) !important;
}

.rsEmptyTableState {
  display: grid;
  gap: 5px;
  padding: 18px;
  text-align: center;
}

.rsEmptyTableState strong {
  color: #fff;
  font-size: 15px;
}

.rsEmptyTableState span {
  color: var(--rs-muted);
  font-size: 13px;
}

.rsVipEditHeader {
  margin-top: 20px;
}

/* ================= VIP FRIEND LIST ================= */

.rsFriendToolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.rsFriendCountBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--rs-border);
  border-radius: 999px;
  color: var(--rs-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rsFriendTableWrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.rsFriendTable {
  margin: 0 !important;
}

.rsFriendTable input.form-control {
  min-height: 40px;
  padding: 9px 10px;
}

.rsFriendRemoveCell {
  width: 130px;
  white-space: nowrap;
}

.rsFriendRemoveCell .btn {
  min-height: 38px;
  width: 100%;
}

/* ================= GAME SELECTOR ================= */

.rsGameSelectTools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.rsGameSelectTools .btn {
  min-height: 40px;
  min-width: 150px;
}

.rsGameGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rsGameCheck {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 92px;
  margin: 0;
  cursor: pointer;
}

.rsGameCheck input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsGameCheck span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 92px;
  padding: 16px;
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid var(--rs-border);
  border-left: 4px solid var(--rs-border);
  border-radius: var(--radius);
  color: var(--rs-muted);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.rsGameCheck strong {
  display: block;
  color: #fff;
  font-family: "Squada One", Impact, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rsGameCheck small {
  display: block;
  color: var(--rs-muted-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rsGameCheck:hover span {
  background: var(--rs-panel-hover);
  border-color: var(--rs-border-red);
  color: #fff;
  transform: translateY(-1px);
}

.rsGameCheck input:focus-visible + span {
  border-color: var(--rs-red-bright);
  box-shadow: 0 0 0 3px rgba(189, 0, 0, 0.28);
}

.rsGameCheck input:checked + span {
  background: rgba(189, 0, 0, 0.14);
  border-color: var(--rs-border-red);
  border-left-color: var(--rs-red-bright);
  color: #fff;
}

.rsGameCheck input:checked + span::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(180deg, var(--rs-red), var(--rs-red-dark));
  border: 1px solid var(--rs-red-bright);
  border-radius: 999px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.rsGameCheck input:checked + span small {
  color: #ffb4b4;
}

.rsLockedGame {
  max-width: 520px;
}

/* ================= DATE PICKER ================= */

.rsDatePicker {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: stretch;
  width: 100%;
}

.rsDatePicker .form-control,
.rsDatePicker input.form-control,
.rsDatePicker #vipDateInput {
  width: 100%;
  min-height: 46px;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: 0 !important;
}

.rsDatePickerButton,
.rsDatePicker .input-group-addon,
.rsDatePicker .input-group-text,
#vipDateIcon {
  width: 48px !important;
  min-width: 48px !important;
  height: 46px !important;
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  background: linear-gradient(180deg, var(--rs-red), var(--rs-red-dark)) !important;
  border: 1px solid var(--rs-red-bright) !important;
  color: #fff !important;
  border-left: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.rsDatePickerButton i,
#vipDateIcon i {
  display: block;
  margin: 0 !important;
  color: #fff !important;
  font-size: 15px;
  line-height: 1;
}

.rsDatePicker .glyphicon,
#vipDateIcon .glyphicon {
  display: none !important;
}

.rsDateButtonGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.rsDateButtonGrid .btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px !important;
}

#addPermanent {
  background: rgba(255, 193, 7, 0.13) !important;
  border-color: rgba(255, 193, 7, 0.48) !important;
  color: #ffd66b !important;
}

#addPermanent:hover,
#addPermanent:focus {
  background: rgba(255, 193, 7, 0.22) !important;
  border-color: rgba(255, 193, 7, 0.7) !important;
  color: #fff4c4 !important;
}

.bootstrap-datetimepicker-widget {
  z-index: 99999 !important;
  background: var(--rs-panel) !important;
  border: 1px solid var(--rs-border) !important;
  border-top: 3px solid var(--rs-red) !important;
  border-radius: var(--radius) !important;
  color: var(--rs-text) !important;
  box-shadow: var(--shadow) !important;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  padding: 10px !important;
}

.bootstrap-datetimepicker-widget table {
  border: 0 !important;
  background: transparent !important;
}

.bootstrap-datetimepicker-widget table td,
.bootstrap-datetimepicker-widget table th {
  color: var(--rs-text) !important;
  background: transparent !important;
  border: 0 !important;
  text-shadow: none !important;
}

.bootstrap-datetimepicker-widget table td span,
.bootstrap-datetimepicker-widget table td.day {
  border-radius: 7px !important;
}

.bootstrap-datetimepicker-widget table td:hover,
.bootstrap-datetimepicker-widget table th:hover,
.bootstrap-datetimepicker-widget table td span:hover {
  background: var(--rs-panel-hover) !important;
  color: #fff !important;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover,
.bootstrap-datetimepicker-widget table td span.active,
.bootstrap-datetimepicker-widget table td span.active:hover {
  background: var(--rs-red) !important;
  color: #fff !important;
  text-shadow: none !important;
}

.bootstrap-datetimepicker-widget table td.today:before {
  border-bottom-color: var(--rs-red-bright) !important;
}

.bootstrap-datetimepicker-widget table td.old,
.bootstrap-datetimepicker-widget table td.new {
  color: var(--rs-muted-dark) !important;
}

/* ================= BUTTONS ================= */

.smallBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: linear-gradient(180deg, var(--rs-red), var(--rs-red-dark));
  border: 1px solid var(--rs-red-bright);
  border-radius: 8px;
  color: #fff !important;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 10px 14px;
  text-transform: uppercase;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  box-shadow: none !important;
  white-space: nowrap;
}

.smallBtn:hover,
.smallBtn:focus {
  border-color: var(--rs-red-bright);
  color: #fff !important;
  filter: brightness(1.12);
}

.btn,
input[type="submit"],
input[type="button"] {
  border-radius: 8px !important;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: none !important;
}

.btn-primary,
.btn-success,
input[type="submit"],
button[type="submit"] {
  background: linear-gradient(180deg, var(--rs-red), var(--rs-red-dark)) !important;
  border: 1px solid var(--rs-red-bright) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  border-color: var(--rs-red-bright) !important;
  color: #fff !important;
  filter: brightness(1.12);
}

.btn-secondary,
.btn-default,
.btn-info,
.altBtn,
button:not(.smallBtn):not(.btn-close):not(.navbar-toggler):not([type="submit"]) {
  background: transparent !important;
  border: 1px solid var(--rs-border-red) !important;
  color: var(--rs-muted) !important;
}

.btn-secondary:hover,
.btn-default:hover,
.btn-info:hover,
.altBtn:hover,
button:not(.smallBtn):not(.btn-close):not(.navbar-toggler):not([type="submit"]):hover {
  background: var(--rs-panel-hover) !important;
  border-color: var(--rs-border-red) !important;
  color: #fff !important;
}

.btn-danger {
  background: linear-gradient(180deg, #d60000, #780000) !important;
  border: 1px solid #ff1f1f !important;
  color: #fff !important;
}

.btn-warning {
  background: rgba(255, 193, 7, 0.12) !important;
  border: 1px solid rgba(255, 193, 7, 0.45) !important;
  color: #ffd66b !important;
}

.rsActionRow,
.rsDateButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.rsActionRow .btn,
.rsDateButtons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  min-width: 140px;
  padding: 10px 16px;
}

.rsVipFinalActions {
  justify-content: flex-end;
  margin-top: 2px;
}

#del {
  min-height: 46px;
}

/* ================= FILTER PILLS ================= */

.filterBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 22px;
  padding: 12px;
  background: rgba(8, 8, 8, 0.45);
  border: 1px solid var(--rs-border);
  border-radius: var(--radius);
}

.filterPillWrap {
  display: inline-flex;
}

.filterPill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 12px;
  background: var(--rs-panel-light);
  border: 1px solid var(--rs-border);
  border-radius: 999px !important;
  color: var(--rs-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.15s ease;
}

.filterPill i {
  color: var(--rs-red);
  font-size: 15px;
}

.filterPill:hover {
  background: var(--rs-panel-hover);
  border-color: var(--rs-border-red);
  color: #fff;
}

.filterPillAdd {
  background: linear-gradient(180deg, var(--rs-red), var(--rs-red-dark));
  border-color: var(--rs-red-bright);
  color: #fff;
}

.filterPillAdd i {
  color: #fff;
}

/* ================= STATUS BADGES ================= */

.st_active,
.st_expired,
.st_inactive,
.st_adding,
.st_deleting,
.st_removing,
.statusBadge,
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  min-width: 95px;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.st_active,
.statusBadge.live,
.badge.official {
  background: rgba(50, 212, 107, 0.14);
  border: 1px solid rgba(50, 212, 107, 0.36);
  color: #9dffbd;
}

.st_adding {
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.42);
  color: #ffd66b;
}

.st_expired,
.st_inactive,
.statusBadge.future {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--rs-border);
  color: var(--rs-muted);
}

.st_deleting,
.st_removing,
.statusBadge.planned,
.badge.community {
  background: rgba(189, 0, 0, 0.18);
  border: 1px solid rgba(189, 0, 0, 0.55);
  color: #ffb4b4;
}

/* ================= TABLES / DATATABLES ================= */

.rsTableWrap,
.dataTables_wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--rs-text);
}

.rsTableWrap,
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper {
  margin-top: 10px;
  overflow-x: visible;
}

.rsContentBody .dataTables_wrapper,
.rsContentBody .dataTables_scroll,
.rsContentBody .dataTables_scrollHead,
.rsContentBody .dataTables_scrollBody,
.rsTableWrap .dataTables_wrapper,
.rsTableWrap .dataTables_scroll,
.rsTableWrap .dataTables_scrollHead,
.rsTableWrap .dataTables_scrollBody {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.rsContentBody .table,
.rsContentBody table.dataTable,
.rsContentBody #example,
table,
.table,
.dataTable,
table.dataTable {
  --bs-table-bg: #171717 !important;
  --bs-table-color: var(--rs-text) !important;
  --bs-table-striped-bg: #1b1b1b !important;
  --bs-table-striped-color: var(--rs-text) !important;
  --bs-table-hover-bg: #242424 !important;
  --bs-table-hover-color: #fff !important;
  --bs-table-border-color: var(--rs-border) !important;

  width: 100% !important;
  max-width: 100%;
  color: var(--rs-text) !important;
  background: #171717 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid var(--rs-border) !important;
  border-radius: var(--radius);
  overflow: hidden;
}

.rsContentBody .table > :not(caption) > * > *,
.rsContentBody table.dataTable > :not(caption) > * > *,
.rsContentBody #example > :not(caption) > * > *,
.table tbody td,
.dataTable tbody td,
table.dataTable tbody td {
  background-color: var(--bs-table-bg) !important;
  color: var(--bs-table-color) !important;
  border-color: var(--rs-border) !important;
  box-shadow: none !important;
}

.table thead th,
.dataTable thead th,
table.dataTable thead th,
.rsContentBody table.dataTable thead th,
.rsContentBody #example thead th {
  background: #101010 !important;
  color: #fff !important;
  border-bottom: 2px solid var(--rs-red) !important;
  border-top: 0 !important;
  padding: 13px 14px !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none !important;
}

.table tbody td,
.dataTable tbody td,
table.dataTable tbody td {
  border-top: 1px solid var(--rs-border) !important;
  border-bottom: 0 !important;
  padding: 12px 14px !important;
  vertical-align: middle;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-striped > tbody > tr:nth-of-type(odd) > *,
.rsContentBody #example.table-striped > tbody > tr:nth-of-type(odd) > *,
table.dataTable.display tbody tr.odd > *,
table.dataTable.stripe tbody tr.odd > * {
  background-color: var(--bs-table-striped-bg) !important;
  color: var(--bs-table-striped-color) !important;
}

.table-hover tbody tr:hover > *,
.rsContentBody #example.table-hover > tbody > tr:hover > *,
table.dataTable.hover tbody tr:hover > *,
table.dataTable.display tbody tr:hover > * {
  background-color: var(--bs-table-hover-bg) !important;
  color: var(--bs-table-hover-color) !important;
}

table.dataTable tbody tr > .sorting_1,
table.dataTable tbody tr > .sorting_2,
table.dataTable tbody tr > .sorting_3,
.rsContentBody #example tbody tr > .sorting_1,
.rsContentBody #example tbody tr > .sorting_2,
.rsContentBody #example tbody tr > .sorting_3 {
  background-color: inherit !important;
  color: #fff !important;
  box-shadow: none !important;
}

table.dataTable tbody tr.selected > *,
table.dataTable tbody tr.selected:hover > * {
  background: rgba(189, 0, 0, 0.32) !important;
  color: #fff !important;
}

table.dataTable td.select-checkbox,
table.dataTable th.select-checkbox {
  width: 42px !important;
  text-align: center;
}

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
  color: var(--rs-muted) !important;
  font-size: 13px;
  font-weight: 600;
}

.dataTables_length,
.dataTables_filter {
  margin-bottom: 12px;
}

.dataTables_length label,
.dataTables_filter label {
  color: var(--rs-muted) !important;
}

.dataTables_length select,
.dataTables_filter input {
  background: #171717 !important;
  border: 1px solid var(--rs-border) !important;
  border-radius: var(--radius) !important;
  color: var(--rs-text) !important;
  padding: 8px 10px !important;
  margin: 0 6px;
  min-height: 38px;
}

.dataTables_filter input {
  min-width: 240px;
}

.dataTables_filter input:focus,
.dataTables_length select:focus {
  border-color: var(--rs-red-bright) !important;
  box-shadow: 0 0 0 3px rgba(189, 0, 0, 0.22) !important;
  outline: none !important;
}

.dataTables_wrapper .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dataTables_wrapper .dt-buttons .dt-button {
  background: #171717 !important;
  border: 1px solid var(--rs-border) !important;
  border-radius: var(--radius) !important;
  color: var(--rs-muted) !important;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px !important;
  text-transform: uppercase;
}

.dataTables_wrapper .dt-buttons .dt-button:hover {
  background: #242424 !important;
  border-color: var(--rs-border-red) !important;
  color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 12px;
  float: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  margin: 0 !important;
  padding: 8px 11px !important;
  background: #171717 !important;
  border: 1px solid var(--rs-border) !important;
  border-radius: var(--radius) !important;
  color: var(--rs-muted) !important;
  line-height: 1 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
  min-width: 88px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #242424 !important;
  border-color: var(--rs-border-red) !important;
  color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(180deg, var(--rs-red), var(--rs-red-dark)) !important;
  border-color: var(--rs-red-bright) !important;
  color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  background: #111 !important;
  border-color: var(--rs-border) !important;
  color: var(--rs-muted-dark) !important;
}

/* ================= BULK ACTION PANEL ================= */

.bulkActionPanel {
  margin-top: 24px;
  padding: 18px;
  border-left: 6px solid var(--rs-red);
}

.bulkActionPanel .form-label {
  margin-bottom: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bulkActionPanel .btn {
  min-height: 48px;
}

/* ================= LOGIN PAGE ================= */

.rsLoginPage {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px 0 18px;
}

.rsLoginCard {
  width: 100%;
  max-width: 520px;
  padding: 26px;
  border-left: 6px solid var(--rs-red);
}

.rsLoginHeader {
  margin-bottom: 22px;
}

.rsLoginHeader h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 54px;
  line-height: 0.9;
}

.rsLoginHeader p:last-child {
  margin: 0;
  color: var(--rs-muted);
  font-size: 14px;
  line-height: 1.6;
}

.rsLoginForm .form-control {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}

.rsLoginForm .form-control.is-invalid {
  border-color: rgba(255, 80, 80, 0.85);
  box-shadow: 0 0 0 3px rgba(189, 0, 0, 0.25);
}

.rsLoginButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
}

.rsLoginAlert {
  margin-bottom: 18px;
  background: rgba(189, 0, 0, 0.16);
  border: 1px solid rgba(255, 31, 31, 0.55);
  border-left: 4px solid var(--rs-red-bright);
  border-radius: var(--radius);
  color: #ffb4b4;
  font-size: 13px;
}

.rsLoginAlert strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 900;
}

#wait_box {
  color: #ffcccc;
}

#login_timeout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  margin: 0 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 31, 31, 0.45);
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

/* ================= MODALS ================= */

.modal-content {
  background: var(--rs-panel);
  color: var(--rs-text);
  border: 1px solid var(--rs-border);
  border-top: 3px solid var(--rs-red);
  border-radius: var(--radius);
}

.modal-header,
.modal-footer {
  border-color: var(--rs-border);
}

.modal-title {
  color: #fff;
  font-family: "Squada One", Impact, sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-close {
  filter: invert(1);
}

.modal-body .form-check {
  padding-left: 1.8rem;
}

.modal-body .form-check-input {
  min-width: auto;
  width: 1rem;
  height: 1rem;
  padding: 0;
  margin-top: 0.35rem;
}

.modal-body .form-check-label {
  color: var(--rs-muted);
}

/* ================= LINKS ================= */

a,
a.plink {
  color: var(--rs-red-bright);
  font-weight: 700;
  text-decoration: none !important;
}

a:hover,
a:focus,
a.plink:hover,
a.plink:focus {
  color: #fff;
  text-decoration: none !important;
}

/* ================= FOOTER ================= */

.siteFooter {
  margin-top: 40px;
  padding: 30px 0 26px;
  background: rgba(10, 10, 10, 0.88);
  border-top: 1px solid var(--rs-border);
}

.siteFooter .container-xxl {
  padding-left: 18px;
  padding-right: 18px;
}

.footerInner {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.footerCopyrightBar {
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rs-border);
  color: var(--rs-muted-dark);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.footerPrimaryLinks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: center;
  gap: 10px 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 2px 0 18px;
  border-bottom: 1px solid var(--rs-border);
}

.footerPrimaryLinks a,
.footerSocialGrid a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--rs-muted);
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footerPrimaryLinks a:hover,
.footerPrimaryLinks a:focus,
.footerSocialGrid a:hover,
.footerSocialGrid a:focus {
  color: #fff;
  text-decoration: none !important;
}

.footerPrimaryLinks i,
.footerSocialGrid i {
  flex: 0 0 18px;
  width: 18px;
  color: var(--rs-red);
  text-align: center;
}

.footerColumns {
  padding-top: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.footerHeading {
  margin: 0 0 10px;
  color: var(--rs-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footerPrimary {
  margin: 0 0 8px;
  color: #e0e0e0;
  font-size: 14px;
  line-height: 1.6;
}

.footerSecondary {
  margin: 0;
  color: var(--rs-muted);
  font-size: 13px;
  line-height: 1.6;
}

.footerSocialGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  max-width: 100%;
  min-width: 0;
}

/* ================= OVERFLOW SAFETY ================= */

.rsContentBody .row,
.rsVipEditor .row,
.rsVipFormSection .row,
.bulkActionPanel .row {
  margin-left: 0;
  margin-right: 0;
}

.rsContentBody [class*="col-"],
.rsVipEditor [class*="col-"],
.rsVipFormSection [class*="col-"],
.bulkActionPanel [class*="col-"] {
  min-width: 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1199.98px) {
  .siteHeader .navbar-collapse {
    padding-top: 12px;
  }

  .siteHeader .headerNav {
    align-items: flex-start;
  }

  .siteHeader .headerNav .nav-link {
    padding-left: 0;
  }

  .siteHeader .headerNav .nav-link::after {
    left: 0;
    right: auto;
    width: 100%;
  }

  .siteHeader .headerMeta {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .rsDiscordRoleResult {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rsGameGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .rsVipEditorHeader {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .rsVipEditorHeader > p {
    max-width: 100%;
  }

  .rsDateButtonGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rsDiscordRoleResult {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .container-xxl {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
  }

  .siteHeader .navbar .rsBrand,
  .siteHeader .navbar .rsBrand:hover,
  .siteHeader .navbar .rsBrand:focus {
    font-size: 28px !important;
  }

  .siteHeader .brandLogo {
    width: 42px;
    height: 42px;
  }

  .mainContent {
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .sectionTitle {
    font-size: 34px;
  }

  .hero,
  .statCard,
  .chartCard,
  .detailCard,
  .serverCard,
  .physicalCard,
  .gameCard,
  .infoPanel,
  .cardLike {
    max-width: 100%;
  }

  .hero {
    padding: 22px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .gameCardBody {
    padding: 16px;
  }

  .infoPanel {
    padding: 18px;
  }

  .rsContentBody {
    padding: 16px;
  }

  .rsContentHeader h2 {
    font-size: 34px;
  }

  .rsSectionHeader h1 {
    font-size: 38px;
  }

  .rsFormPanel {
    max-width: 100%;
    padding: 16px;
  }

  .rsVipEditorHeader h2 {
    font-size: 40px;
  }

  .rsVipFormSection {
    padding: 15px;
  }

  .rsVipGroupHeader h3 {
    font-size: 24px;
  }

  .rsVipManagerHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .rsVipManagerHeader .smallBtn {
    width: 100%;
  }

  .rsDiscordRoleResult {
    grid-template-columns: 1fr;
  }

  .rsTableActions {
    justify-content: flex-start;
  }

  .rsGameGrid {
    grid-template-columns: 1fr;
  }

  .rsGameSelectTools {
    flex-direction: column;
    align-items: stretch;
  }

  .rsGameSelectTools .btn {
    width: 100%;
  }

  .rsGameCheck,
  .rsGameCheck span {
    min-height: 78px;
  }

  .rsGameCheck strong {
    font-size: 23px;
  }

  .rsActionRow,
  .rsDateButtons {
    flex-direction: column;
    align-items: stretch;
  }

  .rsActionRow .btn,
  .rsDateButtons .btn {
    width: 100%;
  }

  .rsDateButtonGrid {
    grid-template-columns: 1fr;
  }

  .rsVipFinalActions {
    justify-content: stretch;
  }

  .rsVipFinalActions .btn {
    width: 100%;
  }

  .filterBar {
    padding: 12px;
    gap: 8px;
  }

  .filterPill,
  .filterPillAdd {
    width: 100%;
    justify-content: space-between;
  }

  .filterPillWrap {
    width: 100%;
  }

  .dataTables_wrapper {
    max-width: 100%;
  }

  table.dataTable {
    min-width: 0;
  }

  .dataTables_filter input,
  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    min-width: 0;
    margin-top: 6px;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    text-align: left !important;
  }

  .dataTables_wrapper .dataTables_paginate {
    justify-content: center;
    flex-wrap: wrap;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
  .dataTables_wrapper .dataTables_paginate .paginate_button.next {
    min-width: 100px;
  }

  .bulkActionPanel {
    padding: 14px;
  }

  .rsFriendToolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .rsFriendToolbar .smallBtn,
  .rsFriendCountBadge {
    width: 100%;
  }

  .rsFriendTable,
  .rsFriendTable thead,
  .rsFriendTable tbody,
  .rsFriendTable th,
  .rsFriendTable td,
  .rsFriendTable tr {
    display: block;
    width: 100%;
  }

  .rsFriendTable thead {
    display: none;
  }

  .rsFriendTable tr.rsFriendRow {
    margin-bottom: 14px;
    padding: 14px;
    background: rgba(18, 18, 18, 0.72);
    border: 1px solid var(--rs-border);
    border-left: 4px solid var(--rs-border-red);
    border-radius: var(--radius);
  }

  .rsFriendTable td {
    padding: 8px 0 !important;
    border: 0 !important;
  }

  .rsFriendTable td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .rsFriendRemoveCell {
    width: 100%;
  }

  .siteFooter {
    margin-top: 28px;
    padding: 26px 0 24px;
  }

  .siteFooter .container-xxl {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .siteFooter .row {
    margin-left: -8px;
    margin-right: -8px;
  }

  .siteFooter .row > * {
    padding-left: 8px;
    padding-right: 8px;
  }

  .footerInner {
    gap: 18px;
  }

  .footerCopyrightBar {
    text-align: left;
  }

  .footerPrimaryLinks {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    gap: 10px;
  }

  .footerPrimaryLinks a {
    justify-content: center;
    min-height: 42px;
    padding: 10px;
    background: rgba(23, 23, 23, 0.75);
    border: 1px solid var(--rs-border);
    border-radius: var(--radius);
    text-align: center;
  }

  .footerColumns {
    gap: 22px;
  }

  .footerHeading {
    margin-top: 4px;
  }

  .footerSocialGrid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .footerSocialGrid a {
    min-height: 40px;
    padding: 9px 10px;
    background: rgba(23, 23, 23, 0.6);
    border: 1px solid var(--rs-border);
    border-radius: var(--radius);
  }
}

@media (max-width: 575.98px) {
  .siteFooter {
    padding: 24px 0 22px;
  }

  .siteFooter .container-xxl {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .footerPrimaryLinks,
  .footerSocialGrid {
    grid-template-columns: 1fr;
  }

  .footerPrimaryLinks a,
  .footerSocialGrid a {
    justify-content: flex-start;
  }

  .rsLoginPage {
    padding: 0;
  }

  .rsLoginCard {
    padding: 20px;
  }

  .rsLoginHeader h1 {
    font-size: 44px;
  }
}

/* ================= VIP FRIEND SLOTS / LEGACY SUPPORT ================= */

.rsFriendSlotsWrap {
  display: grid;
  gap: 14px;
}

.rsFriendSlot {
  padding: 16px;
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid var(--rs-border);
  border-left: 4px solid var(--rs-border-red);
  border-radius: var(--radius);
}

.rsFriendSlot .rsVipGroupHeader h3 {
  font-size: 24px;
}

.rsVipEditNotice {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: rgba(189, 0, 0, 0.16);
  border: 1px solid var(--rs-border-red);
  border-left: 5px solid var(--rs-red-bright);
  border-radius: var(--radius);
}

.rsVipEditNotice strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rsVipEditNotice span {
  color: var(--rs-muted);
  font-size: 13px;
  line-height: 1.45;
}

.rsEditVipButton {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  min-width: 120px;
  white-space: nowrap;
}
/* ================= VIP LIMIT / MODAL POLISH ================= */

.rsOverLimitText {
  color: #ffb4b4 !important;
  font-weight: 900 !important;
}

.rsFriendCountOverLimit {
  border-color: rgba(189, 0, 0, 0.65) !important;
  color: #ffb4b4 !important;
}

.rsFriendLimitWarning {
  margin: 0 0 14px !important;
}

.rsFriendSlotStatus {
  min-width: 150px;
}

.rsFriendSlotStatus span {
  margin-bottom: 4px;
}

.rsFriendSlotStatus small {
  display: block;
  color: var(--rs-muted-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.rsFriendOverLimit > td {
  background: rgba(189, 0, 0, 0.12) !important;
}

.rsVipModalContent {
  border-top: 3px solid var(--rs-red) !important;
}

#rsVipAlertMessage,
#rsVipConfirmMessage {
  color: var(--rs-muted);
  line-height: 1.6;
}
/* ================= VIP MANAGEMENT PANEL ================= */

.rsVipManagementPanel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 24px 0 22px;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(189, 0, 0, 0.18), rgba(8, 8, 8, 0.88)),
    rgba(23, 23, 23, 0.96);
  border: 1px solid var(--rs-border);
  border-left: 6px solid var(--rs-red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rsVipManagementPanelGlow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 31, 31, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(189, 0, 0, 0.16), transparent 38%);
  opacity: 0.9;
}

.rsVipManagementMain,
.rsVipManagementActions {
  position: relative;
  z-index: 1;
}

.rsVipManagementMain {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.rsVipManagementIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  background: rgba(189, 0, 0, 0.16);
  border: 1px solid var(--rs-border-red);
  border-radius: var(--radius);
  color: var(--rs-red-bright);
  font-size: 22px;
}

.rsVipManagementCopy {
  min-width: 0;
}

.rsVipManagementCopy .eyebrow {
  margin-bottom: 6px;
}

.rsVipManagementCopy h2 {
  margin: 0 0 6px;
  color: #fff;
  font-family: "Squada One", Impact, sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rsVipManagementCopy p:last-child {
  max-width: 860px;
  margin: 0;
  color: var(--rs-muted);
  font-size: 14px;
  line-height: 1.6;
}

.rsVipManagementActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.rsVipManagementButton {
  min-height: 46px;
  padding: 12px 16px;
  gap: 8px;
}

.rsVipManagementButton i {
  margin-right: 0;
}

@media (max-width: 767.98px) {
  .rsVipManagementPanel {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .rsVipManagementMain {
    align-items: flex-start;
  }

  .rsVipManagementIcon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

  .rsVipManagementActions {
    width: 100%;
  }

  .rsVipManagementButton {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .rsVipManagementMain {
    flex-direction: column;
    gap: 12px;
  }

  .rsVipManagementIcon {
    width: 44px;
    height: 44px;
  }
}
/* ================= CLEAN VIP TABLES + ORGANIZED DETAILS MODALS ================= */

.rsTableHelp {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  color: var(--rs-muted);
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--rs-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.rsTableHelp i {
  color: var(--rs-red-bright);
}

.rsCleanVipTable th,
.rsCleanFriendTable th {
  white-space: nowrap;
}

.rsCleanVipTable td,
.rsCleanFriendTable td {
  vertical-align: middle;
}

.rsCompactCell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rsCompactCell strong {
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rsCompactCell small {
  display: block;
  color: var(--rs-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rsMiniLabel {
  color: var(--rs-red-bright);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rsRoleBadge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  color: #fff;
  background: rgba(189, 0, 0, 0.22);
  border: 1px solid var(--rs-border-red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.rsStatusOnlyCell {
  align-items: flex-start;
}

.rsDetailsCell {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.rsDetailsButton {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.rsDetailsModalContent .modal-header,
.rsDetailsModalHeader {
  align-items: flex-start;
  border-bottom: 1px solid var(--rs-border);
}

.rsDetailsModalContent .modal-title {
  margin: 0;
  color: #fff;
  font-family: "Squada One", Impact, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.rsModalHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(189, 0, 0, 0.16), rgba(10, 10, 10, 0.78)),
    rgba(18, 18, 18, 0.96);
  border: 1px solid var(--rs-border);
  border-left: 5px solid var(--rs-red);
  border-radius: var(--radius);
}

.rsModalHeroMain {
  min-width: 0;
}

.rsModalHeroMain span,
.rsModalHeroMeta span {
  display: block;
  margin-bottom: 5px;
  color: var(--rs-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsModalHeroMain strong {
  display: block;
  color: #fff;
  font-family: "Squada One", Impact, sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.rsModalHeroMeta {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, auto));
  gap: 10px;
}

.rsModalHeroMeta > div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rs-border);
  border-radius: var(--radius-sm);
}

.rsModalHeroMeta strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.rsModalTwoColumn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rsModalTableSection {
  margin-top: 14px;
}

.rsModalTableSection h4 {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Squada One", Impact, sans-serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rsModalDetailTable {
  margin: 0;
  color: #fff;
  border: 1px solid var(--rs-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rsModalDetailTable tbody tr {
  border-bottom: 1px solid var(--rs-border);
}

.rsModalDetailTable tbody tr:last-child {
  border-bottom: 0;
}

.rsModalDetailTable th {
  width: 190px;
  padding: 11px 12px;
  color: var(--rs-muted);
  background: rgba(0, 0, 0, 0.26);
  border-right: 1px solid var(--rs-border);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: top;
}

.rsModalDetailTable td {
  padding: 11px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.rsModalDetailTable small {
  display: block;
  margin-top: 2px;
  color: var(--rs-muted);
}

.rsDetailsModalContent .modal-footer {
  border-top: 1px solid var(--rs-border);
}

@media (max-width: 991.98px) {
  .rsModalHero {
    grid-template-columns: 1fr;
  }

  .rsModalHeroMeta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rsModalTwoColumn {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .rsModalHeroMeta {
    grid-template-columns: 1fr;
  }

  .rsModalHero {
    padding: 14px;
  }

  .rsDetailsButton {
    width: 100%;
  }

  .rsDetailsCell {
    width: auto;
    text-align: left;
  }

  .rsModalDetailTable th,
  .rsModalDetailTable td {
    display: block;
    width: 100%;
    border-right: 0;
  }

  .rsModalDetailTable th {
    border-bottom: 1px solid var(--rs-border);
  }
}