:root {
  --modern-bg: #070d18;
  --modern-bg-soft: #0b1321;
  --modern-surface: rgba(13, 22, 36, 0.9);
  --modern-surface-2: rgba(16, 27, 43, 0.94);
  --modern-border: rgba(151, 169, 197, 0.16);
  --modern-border-strong: rgba(180, 113, 255, 0.42);
  --modern-text: #f7f8fc;
  --modern-muted: #9ca8bc;
  --modern-accent: #b84cff;
  --modern-accent-2: #7900d8;
  --modern-radius: 20px;
  --modern-header-height: 90px;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--modern-bg);
}

body {
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden !important;
  overflow-x: clip !important;
  overflow-y: auto;
  background:
    radial-gradient(circle at 60% -25%, rgba(92, 35, 165, 0.12), transparent 42%),
    var(--modern-bg);
}

#app {
  display: block;
  max-width: 100%;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
  color: var(--modern-text);
  font-family: Inter, "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#content {
  min-height: 100vh;
  margin-left: 0;
  overflow: visible;
  background: transparent;
}

#content .content-wrapper {
  min-height: calc(100vh - var(--modern-header-height));
  padding: 24px 32px 80px;
  background:
    linear-gradient(rgba(7, 13, 24, 0.94), rgba(7, 13, 24, 0.985)),
    var(--settings-background);
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

#content .content-wrapper > div {
  max-width: 1614px;
  margin: 0 auto;
  padding-bottom: 0 !important;
}

footer {
  position: static !important;
}

/* Profile surfaces: remove the saturated Deluxe fills while keeping purple
   only as a small accent. */
.sc-profile {
  --sc-surface: rgba(12, 21, 35, 0.94) !important;
  --sc-surface-soft: rgba(15, 26, 43, 0.76) !important;
  --sc-border: rgba(151, 169, 197, 0.16) !important;
  --sc-muted: rgba(205, 214, 229, 0.68) !important;
  --sc-shadow: 0 18px 48px rgba(0, 0, 0, 0.2) !important;
}

.sc-profile .sc-profile-panel,
.sc-profile .tab-content > .tab-pane > .card,
.sc-profile .card {
  border-color: var(--sc-border) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 58%),
    var(--sc-surface) !important;
  box-shadow: var(--sc-shadow) !important;
}

.sc-profile .card > .card-body,
.sc-profile .tab-content .card-body {
  background: transparent !important;
}

.sc-profile .sc-info-card,
.sc-profile .sc-character-format,
.sc-profile .tab-content .rounded-4 {
  border-color: var(--sc-border) !important;
  background: var(--sc-surface-soft) !important;
}

.sc-profile .sc-character-format {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.sc-profile .form-control,
.sc-profile .form-select,
.sc-profile input[type="file"] {
  border-color: rgba(151, 169, 197, 0.17) !important;
  background-color: rgba(7, 14, 25, 0.56) !important;
}

.sc-profile input[type="file"].form-control,
.sc-profile input[type="file"] {
  height: 48px;
  min-height: 48px;
  padding: 0 !important;
  overflow: hidden;
  line-height: 48px;
}

.sc-profile input[type="file"]::file-selector-button,
.sc-profile input[type="file"]::-webkit-file-upload-button {
  height: 48px;
  margin: 0 14px 0 0 !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-right: 1px solid rgba(151, 169, 197, 0.18) !important;
  border-radius: 0 !important;
  color: #eef1f6 !important;
  background: rgba(151, 169, 197, 0.16) !important;
  font: inherit;
  line-height: 48px;
  vertical-align: top;
}

.sc-profile #profile-tab-character-pane #capePreview {
  display: none !important;
}

.sc-profile .nav-pills .nav-link.active {
  border-color: rgba(184, 76, 255, 0.34) !important;
  background: rgba(152, 55, 210, 0.12) !important;
  box-shadow: none !important;
}

.modern-header {
  position: sticky;
  z-index: 1120;
  top: 0;
  display: grid;
  min-height: var(--modern-header-height);
  padding: 0 36px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 38px;
  align-items: center;
  border-bottom: 1px solid rgba(164, 179, 207, 0.09);
  background: rgba(6, 11, 20, 0.94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.modern-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--modern-text) !important;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none !important;
  white-space: nowrap;
}

.modern-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(184, 76, 255, 0.26));
}

.modern-nav {
  display: flex;
  min-width: 0;
  height: 100%;
  gap: 8px;
  align-items: center;
}

.modern-nav-dropdown {
  position: relative;
  height: 100%;
}

.modern-nav-link {
  position: relative;
  display: inline-flex;
  height: 100%;
  min-height: 42px;
  padding: 0 13px;
  gap: 8px;
  align-items: center;
  border: 0;
  color: #e9ebf2 !important;
  background: transparent;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none !important;
  white-space: nowrap;
}

.modern-nav-link::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: linear-gradient(90deg, #7f00db, #d454ff);
  opacity: 0;
  transform: scaleX(0.45);
  transition: 180ms ease;
}

.modern-nav-link:hover,
.modern-nav-link.active {
  color: #d368ff !important;
}

.modern-nav-link:hover::after,
.modern-nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.modern-dropdown-toggle::after {
  display: none;
}

.modern-dropdown-toggle .bi {
  font-size: 12px;
}

.modern-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.modern-action {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--modern-border);
  border-radius: 13px;
  color: #f3f4f8 !important;
  background: rgba(12, 20, 33, 0.72);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: 180ms ease;
}

.modern-action:hover {
  transform: translateY(-1px);
  border-color: rgba(199, 98, 255, 0.46);
  background: rgba(22, 30, 45, 0.95);
}

.modern-support {
  border-color: rgba(191, 62, 255, 0.55);
}

.modern-support .bi {
  color: #ce62ff;
}

.modern-register {
  min-width: 220px;
  border-color: rgba(194, 48, 255, 0.7);
  background: linear-gradient(135deg, #9b13ee, #6500c4);
  box-shadow: 0 12px 30px rgba(111, 0, 205, 0.2);
}

.modern-register:hover {
  border-color: rgba(219, 120, 255, 0.85);
  background: linear-gradient(135deg, #ad25f8, #7604d8);
}

.modern-user {
  padding: 0 14px;
}

.modern-user img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.modern-dropdown-menu {
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--modern-border) !important;
  border-radius: 13px !important;
  background: rgba(10, 17, 29, 0.98) !important;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
}

.modern-dropdown-menu .dropdown-item {
  padding: 10px 12px;
  border-radius: 9px;
  color: #e9ebf3 !important;
  font-weight: 700;
}

.modern-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--modern-border);
  border-radius: 12px;
  color: #fff;
  background: var(--modern-surface);
  font-size: 24px;
}

.modern-mobile-menu {
  color: var(--modern-text);
  background: #09111e;
}

.modern-mobile-link,
.modern-mobile-label,
.modern-mobile-sublink {
  display: flex;
  padding: 13px 12px;
  gap: 12px;
  align-items: center;
  border-radius: 10px;
  color: #eef0f6 !important;
  font-weight: 750;
  text-decoration: none !important;
}

.modern-mobile-link.active {
  color: #d168ff !important;
  background: rgba(168, 67, 255, 0.12);
}

.modern-mobile-sublink {
  padding-left: 42px;
  color: var(--modern-muted) !important;
}

.modern-mobile-actions {
  display: grid;
  margin-top: 24px;
  gap: 10px;
}

.modern-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.36fr) minmax(350px, 1fr);
  gap: 22px;
  align-items: start;
}

.modern-main,
.modern-aside {
  min-width: 0;
}

.modern-main > div,
.modern-aside > div {
  margin-bottom: 18px;
}

.modern-main > .modern-section-search {
  height: 0;
  margin: 0;
}

.modern-main section,
.modern-aside section {
  margin: 0;
}

.modern-header-search {
  display: none !important;
}

.modern-header-search #searchsection,
.modern-header-search #searchsection > .col-12 {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.modern-header-search #searchsection > .col-12:first-child > div:last-child {
  display: none;
}

.modern-header-search [data-toggle="search-group"] {
  width: 100%;
}

.modern-header-search .search.input-group {
  width: 52px;
  height: 52px;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--modern-border) !important;
  border-radius: 13px;
  background: rgba(10, 18, 30, 0.95) !important;
  transition: width 180ms ease;
}

.modern-header-search .search.input-group:focus-within {
  width: 280px;
}

.modern-header-search .search .input-group-text {
  width: 50px;
  padding: 0;
  justify-content: center;
  background: transparent !important;
}

.modern-header-search .form-control {
  min-width: 225px;
  padding: 0 14px 0 0;
}

.modern-header-search [data-toggle="search-content"] {
  top: 55px;
  right: auto;
  left: 0;
  width: 280px;
  border: 1px solid var(--modern-border);
  background: rgba(10, 18, 30, 0.98) !important;
}

#homebanner {
  min-height: 450px;
  overflow: hidden;
  border: 1px solid rgba(156, 177, 208, 0.22);
  border-radius: var(--modern-radius);
  background-image:
    linear-gradient(90deg, rgba(2, 7, 13, 0.96) 0%, rgba(2, 7, 13, 0.76) 35%, rgba(2, 7, 13, 0.14) 72%),
    var(--settings-background);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

#homebanner .hommebanner-content {
  min-height: 450px;
  padding: 56px 44px;
}

#homebanner .hommebanner-content > .d-flex:first-child {
  display: inline-flex !important;
  width: max-content;
  margin-bottom: 22px !important;
  padding: 9px 15px;
  border: 1px solid rgba(169, 185, 212, 0.14);
  border-radius: 999px;
  background: rgba(19, 28, 42, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#homebanner .hommebanner-content .title-mini {
  gap: 8px;
  margin: 0 !important;
  line-height: 1;
  font-size: 14px;
  font-weight: 800;
}

#homebanner .mini-title-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

#homebanner .hommebanner-content .title {
  max-width: 520px;
  margin: 0 0 17px;
  color: #f7f8fb;
  font-size: clamp(31px, 3vw, 46px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

#homebanner .title .brand-line {
  display: block;
}

#homebanner .title strong {
  color: #bd4cff;
  font-weight: 950;
}

#homebanner .hommebanner-content .description {
  max-width: 510px;
  max-height: none;
  margin: 0 0 24px;
  color: #d7dce7;
  font-size: 15px;
  line-height: 1.62;
}

#homebanner .btn-gradient {
  display: inline-flex;
  min-width: 210px;
  min-height: 52px;
  padding: 0 22px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(206, 98, 255, 0.5);
  border-radius: 13px;
  color: #fff !important;
  background: linear-gradient(135deg, #a017ee, #7200cc);
  box-shadow: 0 14px 30px rgba(103, 0, 188, 0.24);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

#homebanner .btn-gradient .bi {
  margin: 0 !important;
  font-size: 17px;
  line-height: 1;
}

.servers-component,
.modern-news,
.modern-aside > div > section {
  border: 1px solid var(--modern-border);
  border-radius: var(--modern-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 55%),
    var(--modern-surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.servers-component {
  padding: 17px 22px;
}

.servers-title,
.section-title {
  margin: 0 0 14px;
  color: #f3f5f9;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
  text-align: left !important;
}

.server-card {
  padding: 13px;
  border-color: rgba(156, 177, 208, 0.13);
  border-radius: 14px;
  background: rgba(8, 15, 26, 0.26);
}

.server-icon {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-color: rgba(191, 71, 255, 0.33);
  border-radius: 12px;
  color: #c764ff;
  background: rgba(132, 24, 202, 0.13);
  font-size: 23px;
}

.server-icon > i {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  line-height: 1 !important;
  transform: translateY(-1px);
}

.server-icon > i::before {
  display: block;
  line-height: 1 !important;
}

.server-name {
  font-size: 17px;
}

.server-description {
  max-width: 650px;
  color: var(--modern-muted);
  font-size: 13px;
}

.server-card-footer {
  margin-top: 8px;
  padding-left: 66px;
}

.server-details-button {
  min-width: 128px;
  min-height: 38px;
  border-color: var(--modern-border);
  color: #eef0f5 !important;
  background: rgba(9, 17, 28, 0.46);
}

.modern-news {
  padding: 16px 20px 18px;
}

.modern-news-card {
  display: grid;
  min-height: 126px;
  grid-template-columns: 35% minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(156, 177, 208, 0.13);
  border-radius: 14px;
  background: rgba(8, 15, 26, 0.28);
}

.modern-news-image {
  position: relative;
  min-height: 126px;
  background-position: center;
  background-size: cover;
}

.modern-news-likes {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  padding: 6px 8px;
  gap: 5px;
  align-items: center;
  border-radius: 9px;
  color: #fff;
  background: rgba(5, 9, 16, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.modern-news-content {
  display: flex;
  min-width: 0;
  padding: 16px 18px;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.modern-news-content h2 {
  margin: 0 0 4px;
  color: #f4f5f9;
  font-size: 16px;
  font-weight: 850;
}

.modern-news-content p {
  display: -webkit-box;
  max-width: 510px;
  margin: 0 0 5px;
  overflow: hidden;
  color: var(--modern-muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.modern-news-content time {
  color: #7f8a9d;
  font-size: 12px;
}

.modern-news-button,
.modern-ranks-link {
  display: inline-flex;
  min-width: 132px;
  min-height: 39px;
  padding: 0 13px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--modern-border);
  border-radius: 10px;
  color: #eef0f5 !important;
  background: rgba(9, 17, 28, 0.48);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}

/* News article page */
.news-page {
  --sc-surface: rgba(12, 21, 35, 0.92);
  --sc-surface-hover: rgba(16, 27, 43, 0.97);
  --sc-border: var(--modern-border);
  --sc-muted: var(--modern-muted);
  --sc-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  padding-top: 18px !important;
}

.news-page .news-hero,
.news-page .card,
.news-page .alert {
  border: 1px solid var(--modern-border) !important;
  background:
    linear-gradient(145deg, rgba(16, 27, 43, 0.94), rgba(8, 15, 27, 0.96)) !important;
  box-shadow: none !important;
}

.news-page .news-hero {
  padding: clamp(38px, 5vw, 66px) 28px !important;
  border-radius: var(--modern-radius) !important;
}

.news-page .news-hero::before,
.news-page .news-hero::after {
  background: var(--modern-accent) !important;
  opacity: 0.1 !important;
}

.news-page .news-badge {
  margin-bottom: 22px !important;
  border-color: rgba(184, 76, 255, 0.4) !important;
  color: #e8c6ff;
  background: rgba(128, 22, 194, 0.13) !important;
}

.news-page .news-title {
  color: var(--modern-text);
  font-size: clamp(30px, 3.3vw, 46px) !important;
  letter-spacing: -0.025em;
}

.news-page .news-muted,
.news-page .text-muted {
  color: var(--modern-muted) !important;
}

.news-page .card {
  overflow: hidden;
  border-radius: 18px !important;
}

.news-page .card > .card-body,
.news-page .card .card-body {
  color: var(--modern-text);
  background: transparent !important;
}

.news-page .news-article-card > .card-body {
  padding: clamp(24px, 3vw, 38px) !important;
}

.news-page .markdown-body {
  color: #dbe2ee;
  font-size: 15px;
  line-height: 1.78;
}

.news-page .markdown-body h1,
.news-page .markdown-body h2,
.news-page .markdown-body h3 {
  color: #f4f6fb;
}

.news-page .markdown-body hr {
  border-color: var(--modern-border) !important;
}

.news-page .news-sidebar > img {
  border: 1px solid var(--modern-border) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.news-page .news-sidebar .card:hover {
  border-color: rgba(184, 76, 255, 0.36) !important;
  background: var(--modern-surface-2) !important;
  transform: translateY(-2px);
}

.news-page .btn-primary,
.news-page .btn-gradient {
  border-color: rgba(184, 76, 255, 0.35) !important;
  color: #fff !important;
  background: linear-gradient(135deg, #a914ee, #7200bf) !important;
}

.news-page .form-control {
  border-color: var(--modern-border) !important;
  color: var(--modern-text) !important;
  background: rgba(6, 12, 22, 0.64) !important;
}

.modern-aside > div > section {
  padding: 20px 22px !important;
}

.modern-aside .section-title {
  padding: 0 !important;
}

.modern-aside #section-0,
.modern-aside #section-1 {
  display: none;
}

.modern-aside #ranks {
  min-height: 285px;
  margin: 4px 0 0 !important;
  align-items: flex-end;
}

.modern-aside #ranks .rank {
  flex: 1 1 0;
  max-width: 128px;
}

.modern-aside #ranks .rank canvas {
  max-width: 100%;
  filter: drop-shadow(0 16px 12px rgba(0, 0, 0, 0.38));
}

.modern-aside #ranks .rank .name {
  color: #c9d0dd;
  font-size: 13px;
  font-weight: 800;
}

.modern-aside #ranks .rank2 .name {
  color: #d264ff;
}

.modern-aside #ranks .rank .face1,
.modern-aside #ranks .rank .face2 {
  border-color: rgba(151, 169, 197, 0.16);
  background: linear-gradient(145deg, rgba(18, 29, 46, 0.98), rgba(8, 15, 27, 0.98));
}

.modern-ranks-link {
  width: 168px;
  margin: 10px auto -4px;
}

.modern-ranks-section {
  overflow: hidden;
}

.modern-ranks-grid {
  display: grid !important;
  min-height: 0 !important;
  margin: 18px 0 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch !important;
  transition: opacity 180ms ease;
}

.modern-ranks-grid.ranks-hidden {
  opacity: 0;
}

.modern-rank-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  border: 1px solid rgba(151, 169, 197, 0.16);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(24, 35, 54, 0.74), rgba(8, 15, 26, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.modern-rank-card.is-first {
  border-color: rgba(194, 72, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(66, 25, 91, 0.55), rgba(9, 15, 27, 0.94));
  box-shadow:
    0 12px 32px rgba(111, 13, 164, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.modern-rank-name {
  width: 100%;
  min-height: 42px;
  padding: 13px 5px 8px;
  overflow: hidden;
  color: #c8d0de;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-rank-card.is-first .modern-rank-name {
  color: #d96bff;
}

.modern-rank-skin {
  display: flex;
  width: 100%;
  height: 174px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.modern-rank-skin canvas {
  position: static !important;
  z-index: 1 !important;
  display: block;
  width: 86px !important;
  height: 172px !important;
  max-width: 100%;
  cursor: default !important;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.38)) !important;
}

.modern-rank-footer {
  display: flex;
  width: 100%;
  min-height: 64px;
  margin-top: auto;
  padding: 10px 5px;
  gap: 7px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(151, 169, 197, 0.14);
  background: rgba(5, 11, 20, 0.58);
  text-align: center;
}

.modern-rank-footer strong {
  color: #f4f6fa;
  font-family: Inter, "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.modern-rank-footer strong span {
  font-size: 13px;
}

.modern-rank-footer small {
  display: block;
  width: calc(100% - 8px);
  padding: 5px 3px;
  overflow: hidden;
  border: 1px solid rgba(151, 169, 197, 0.15);
  border-radius: 8px;
  color: #c5cddb;
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#trailer {
  min-height: 244px;
  border: 1px solid rgba(156, 177, 208, 0.2);
  border-radius: 14px;
}

#trailer .btn-play .icon {
  color: #4e008c;
  background: #fff;
}

.modern-aside #section-4 section {
  margin-top: 0;
}

#bigfooter {
  width: calc(100% - 64px);
  max-width: 1440px;
  min-height: 0;
  margin: 36px auto 0;
  padding: 26px 30px 24px;
  overflow: visible;
  border: 1px solid var(--modern-border) !important;
  border-bottom: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  background:
    linear-gradient(145deg, rgba(13, 22, 36, 0.96), rgba(7, 14, 25, 0.98)) !important;
  box-shadow: none !important;
}

#bigfooter > .row {
  display: grid;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  align-items: center;
}

#bigfooter > .row > [class*="col-"] {
  width: auto !important;
  padding: 0 18px !important;
}

#bigfooter h6.h3 {
  margin-bottom: 12px;
  color: var(--modern-text);
  font-size: 21px;
}

#bigfooter p {
  margin-bottom: 0;
  color: var(--modern-muted) !important;
  font-size: 13px;
  line-height: 1.65;
}

#bigfooter .bigfooter-image {
  width: 76px !important;
  max-height: 76px;
  object-fit: contain;
}

#bigfooter .bigfooter-image:hover {
  transform: none !important;
}

#bigfooter .bigfooter-link {
  margin-top: 5px;
  color: #cbd3e1 !important;
  font-size: 13px;
}

#bigfooter .bigfooter-link:hover {
  color: #d56cff !important;
  font-weight: inherit !important;
}

#bigfooter #socialLinks,
#footer #socialLinks {
  position: static;
  padding: 0 0 18px;
  gap: 8px;
}

#bigfooter #socialLinks .social-item,
#footer #socialLinks .social-item {
  width: 36px;
  height: 36px;
  margin: 0;
  border: 1px solid var(--modern-border);
  color: #dce2ed;
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
}

#footer {
  width: calc(100% - 64px);
  max-width: 1440px;
  margin: 0 auto 30px;
  border: 1px solid var(--modern-border) !important;
  border-top-color: rgba(151, 169, 197, 0.1) !important;
  border-radius: 0 0 18px 18px !important;
  color: #aab5c7 !important;
  background: rgba(7, 14, 25, 0.98) !important;
  box-shadow: none !important;
  font-size: 12px;
}

#footer > .card-body {
  min-height: 54px;
  padding: 15px 28px !important;
  align-items: center;
  color: #aab5c7 !important;
  background: transparent !important;
  border-radius: 0 0 18px 18px !important;
}

@media (max-width: 1540px) {
  .modern-header {
    gap: 20px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .modern-nav-link {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 14px;
  }

  .modern-actions {
    gap: 10px;
  }

  .modern-action {
    padding-right: 14px;
    padding-left: 14px;
  }

  .modern-register {
    min-width: 0;
  }

  .modern-header-search {
    right: 510px;
  }
}

@media (max-width: 1320px) {
  .modern-nav,
  .modern-actions > .modern-support,
  .modern-header-search {
    display: none !important;
  }

  .modern-header {
    grid-template-columns: 1fr auto;
  }

  .modern-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .modern-home-grid {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  }
}

@media (max-width: 980px) {
  :root {
    --modern-header-height: 72px;
  }

  .modern-header {
    min-height: var(--modern-header-height);
    padding: 0 18px;
  }

  .modern-brand {
    font-size: 21px;
  }

  .modern-brand img {
    width: 44px;
    height: 44px;
  }

  .modern-actions > .modern-login,
  .modern-actions > .modern-register,
  .modern-actions > .dropdown {
    display: none;
  }

  #content .content-wrapper {
    padding: 18px 18px 60px;
  }

  .modern-home-grid {
    grid-template-columns: 1fr;
  }

  #homebanner,
  #homebanner .hommebanner-content {
    min-height: 410px;
  }

  .modern-aside #section-2,
  .modern-aside #section-3,
  .modern-aside #section-4 {
    display: block;
  }
}

@media (max-width: 768px) {
  #content {
    margin-top: 0;
  }

  #content .content-wrapper,
  #content .content-wrapper section:not(.no-padding) {
    margin: 0;
  }

  #topbar-mobile {
    display: none !important;
  }

  #homebanner {
    min-height: 390px;
    border-radius: 18px !important;
  }

  #homebanner .hommebanner-content {
    min-height: 390px;
    padding: 38px 25px !important;
  }

  #homebanner .hommebanner-content .title {
    font-size: 34px;
  }

  .modern-news-card {
    grid-template-columns: 1fr;
  }

  .modern-news-image {
    min-height: 180px;
  }

  .modern-news-content {
    align-items: stretch;
    flex-direction: column;
  }

  .modern-news-button {
    width: 100%;
  }

  .news-page {
    padding-top: 4px !important;
  }

  .news-page .news-hero {
    padding: 34px 20px !important;
    border-radius: 18px !important;
  }

  .news-page .news-title {
    font-size: clamp(28px, 9vw, 38px) !important;
  }

  #bigfooter,
  #footer {
    width: calc(100% - 36px);
  }

  #bigfooter {
    padding: 24px 20px;
  }

  #bigfooter > .row {
    display: block;
  }

  #bigfooter > .row > [class*="col-"] {
    padding: 0 !important;
  }

  #footer > .card-body {
    padding: 14px 20px !important;
    gap: 8px;
    text-align: center;
  }

  .server-card-footer {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .modern-header {
    padding: 0 12px;
  }

  .modern-brand span {
    font-size: 19px;
  }

  #content .content-wrapper {
    padding: 12px 12px 48px;
  }

  #homebanner .hommebanner-content > .d-flex:first-child {
    margin-bottom: 16px !important;
  }

  #homebanner .hommebanner-content .title {
    font-size: 29px;
  }

  #homebanner .hommebanner-content .description {
    font-size: 14px;
  }

  .modern-aside > div > section,
  .modern-news,
  .servers-component {
    padding: 16px !important;
    border-radius: 16px;
  }
}
