/* APC bridge: header + footer look like the main site (scoped as much as possible) */

body#phpbb {
  padding-top: 70px; /* fixed header space */
}

/* Ensure the forum background matches the site a bit */
body#phpbb {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(255, 45, 45, 0.14), transparent 55%),
    radial-gradient(900px 520px at 90% 25%, rgba(0, 212, 255, 0.10), transparent 55%),
    #07080f;
}

.wrapnew { margin-top: 18px; }

/* Hide Aurora footer blocks (we replace them) */
#page-footer,
.copyright {
  display: none !important;
}

/* --- phpBB internal navbar (inside wrap): keep original layout, only recolor to match the site --- */
.navbarphpbb {
  background: radial-gradient(700px 220px at 10% 10%, rgb(255 45 45 / 32%), transparent 60%),
    radial-gradient(700px 220px at 90% 0%, rgb(0 212 255 / 13%), #223b4b82 60%),
    #1f1b28fa !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.45) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.navbarphpbb .inner {
  background: transparent !important;
}

.navbarphpbb a,
.navbarphpbb .linklist > li > a,
.navbarphpbb .linklist > li > span {
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none !important;
}

.navbarphpbb a:hover,
.navbarphpbb .linklist > li > a:hover {
  color: #ff2b2b !important;
  text-decoration: none !important;
}

.navbarphpbb .icon,
.navbarphpbb i.icon,
.navbarphpbb i {
  color: rgba(255, 107, 107, 0.85) !important;
}

/* Profile dropdown inside the phpBB internal navbar (make it dark + readable) */
.navbarphpbb .dropdown {
  background: rgba(15, 15, 20, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(255, 43, 43, 0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbarphpbb .dropdown .pointer .pointer-inner {
  border-bottom-color: rgba(15, 15, 20, 0.96) !important;
}

.navbarphpbb .dropdown-contents {
  background: transparent !important;
}

.navbarphpbb .dropdown-contents li a,
.navbarphpbb .dropdown-contents li span {
  color: rgba(255, 255, 255, 0.86) !important;
  text-decoration: none !important;
}

.navbarphpbb .dropdown-contents li a:hover {
  background: rgba(255, 43, 43, 0.12) !important;
  color: #fff !important;
}

.navbarphpbb .dropdown-contents .separator {
  border-top-color: rgba(255, 255, 255, 0.10) !important;
}

/* --- Forum list "category header" rows in this style are .card-header --- */
.card-header {
  position: relative;
  background:
    radial-gradient(900px 220px at 10% 10%, rgba(255, 45, 45, 0.14), transparent 60%),
    radial-gradient(900px 220px at 90% 0%, rgba(0, 212, 255, 0.10), transparent 60%),
    #0f0f0ffa !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  overflow: hidden;
}

.card-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/resources/img/games.png") center / cover no-repeat;
  opacity: 0.18;
  filter: saturate(1.05) contrast(1.08);
  pointer-events: none;
}

.card-header > * {
  position: relative;
  z-index: 1;
}

.card-header a,
.card-header a:hover,
.card-header a:focus {
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
}

/* --- Header (copied/trimmed from site) --- */
.site-nav {
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background:
    radial-gradient(900px 220px at 10% 10%, rgba(255, 45, 45, 0.14), transparent 60%),
    radial-gradient(900px 220px at 90% 0%, rgba(0, 212, 255, 0.10), transparent 60%),
    #0f0f0ffa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

/* games.png overlay like the site/admin */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/resources/img/games.png") center / cover no-repeat;
  opacity: 0.18;
  filter: saturate(1.05) contrast(1.08);
  pointer-events: none;
}

.site-nav > * {
  position: relative;
  z-index: 1;
}

/* --- Hero (ported from site) --- */
.site-hero {
  height: 700px;
  position: relative;
  background-image: url("/resources/img/s3.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin-top: 0;
  padding: 0;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(49 2 2 / 59%);
  z-index: 0;
}

.site-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(11,12,26,0.35) 45%, rgba(11,12,26,0.92) 100%);
  pointer-events: none;
  z-index: 0;
}

.site-hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

/* Make the hero columns spread more left/right (closer to site feel) */
.site-hero .container.site-hero__inner {
  max-width: 1480px;
  padding-left: 18px;
  padding-right: 18px;
}

.site-hero__left { max-width: 560px; color: rgba(255,255,255,.92); }
.site-hero__brand-stack { display: flex; flex-direction: column; gap: 32px; }

.site-hero__embed {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.site-hero__brand {
  font-weight: 800;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: .4px;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
  width: fit-content;
  background: linear-gradient(90deg, #b8b8b8 0%, #ff2b2b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-hero__tagline {
  margin-top: 6px;
  font-size: 13px;
  color: #ff6b6b;
  display: block;
  width: fit-content;
}

.site-hero__desc {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  text-shadow: 0 8px 20px rgba(0,0,0,.35);
  max-width: 520px;
}

.text-accent {
  color: #ff2b2b;
  text-shadow: 0 0 10px rgba(255, 43, 43, 0.25);
  font-weight: 700;
}

.discord-live {
  width: 240px;
  margin-top: 16px;
  margin-bottom: 10px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  animation: discordFloat 6.5s ease-in-out infinite;
  will-change: transform;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.discord-live:hover {
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.30),
    0 0 18px rgba(88, 101, 242, 0.16);
  filter: saturate(1.06);
}

@keyframes discordFloat {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(6px, -4px, 0); }
  50% { transform: translate3d(0, 6px, 0); }
  75% { transform: translate3d(-6px, -2px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.discord-live__top { display: flex; align-items: center; gap: 10px; }
.discord-live__badge {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(88, 101, 242, 0.22);
  border: 1px solid rgba(88, 101, 242, 0.42);
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.12);
}
.discord-live__badge i { color: rgba(148,160,255,.95); font-size: 16px; }
.discord-live__titles { min-width: 0; }
.discord-live__title { font-weight: 900; font-size: 11px; letter-spacing: 1.8px; color: rgba(255,255,255,.78); text-transform: uppercase; line-height: 1.1; }
.discord-live__server { font-weight: 900; font-size: 12px; color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.discord-live__status { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.70); white-space: nowrap; }
.discord-live__hint { margin-top: 8px; font-size: 11px; color: rgba(255,255,255,.60); line-height: 1.3; }

.site-hero__discord {
  width: 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.4px;
  color: #fff;
  background: rgba(88, 101, 242, 0.34);
  border: 1px solid rgba(88, 101, 242, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.site-hero__discord:hover {
  background: rgba(88, 101, 242, 0.44);
  border-color: rgba(88, 101, 242, 0.65);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    0 0 14px rgba(88, 101, 242, 0.24);
  color: #fff;
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.site-hero__right { flex: 0 0 auto; margin-top: -5%; }

.cs-radar { position: relative; display: flex; flex-direction: column; align-items: flex-start; z-index: 1; margin-left: 30%; }
.radar-map { position: relative; width: 230px; height: 230px; background: rgba(15, 23, 42, 0.5); border: 2px solid rgba(0, 212, 255, 0.3); border-radius: 50%; overflow: hidden; backdrop-filter: blur(5px); box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
.radar-map::before, .radar-map::after { content:""; position:absolute; top:50%; left:50%; transform: translate(-50%, -50%); background: rgba(0, 212, 255, 0.1); }
.radar-map::before { width: 100%; height: 1px; }
.radar-map::after { width: 1px; height: 100%; }
.player-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Animate radar dots (same feel as the main site) */
.player-dot:not(.self) {
  animation: pulseGlow 2s ease-in-out infinite, driftDot 4.6s ease-in-out infinite;
}

.player-dot--1 {
  --dx: 12px;
  --dy: -10px;
  animation-duration: 2s, 4.6s;
}

.player-dot--2 {
  --dx: -12px;
  --dy: 12px;
  animation-duration: 2s, 5.2s;
}

.player-dot--3 {
  --dx: 10px;
  --dy: 12px;
  animation-duration: 2s, 4.9s;
}
.player-dot.friendly { background: #4db6ac; }
.player-dot.enemy { background: #ff6b6b; }
.player-dot.self { background: #fff; width: 10px; height: 10px; top: 50%; left: 50%; }

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
    opacity: 0.85;
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
    opacity: 1;
  }
}

@keyframes driftDot {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(0, 0);
  }
  25% {
    transform: translate(-50%, -50%) translate(calc(var(--dx, 8px) * 0.45), calc(var(--dy, -6px) * -1));
  }
  50% {
    transform: translate(-50%, -50%) translate(var(--dx, 8px), var(--dy, -6px));
  }
  75% {
    transform: translate(-50%, -50%) translate(calc(var(--dx, 8px) * -0.6), calc(var(--dy, -6px) * -0.35));
  }
}

.cs-killfeed { margin-top: 10px; width: 240px; background: rgba(15, 23, 42, 0.35); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 10px 24px rgba(0,0,0,.28); padding: 3px 5px; border-radius: 10px; margin-left: 30%; }
.cs-killfeed__row { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; font-weight:800; letter-spacing:.3px; color: rgba(255,255,255,.9); transition: opacity 180ms ease; }
.cs-killfeed__row.is-switching { opacity: 0; }
.cs-killfeed__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; padding: 3px 6px; border-radius: 8px; background: rgba(0,0,0,.22); }
.cs-killfeed__name--killer { color: rgba(77, 182, 172, 0.95); }
.cs-killfeed__name--victim { color: rgba(255, 107, 107, 0.95); }
.cs-killfeed__weapon { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border:1px solid rgba(0,212,255,.22); background: rgba(0,0,0,.25); white-space: nowrap; border-radius: 8px; }
.cs-killfeed__weapon i { color: rgba(0, 212, 255, 0.9); }

.site-hero__stats-title { display:flex; align-items:center; gap:12px; margin-bottom:12px; width:100%; }
.site-hero__stats-line { height:1px; flex:1 1 auto; background: rgba(255,255,255,.22); }
.site-hero__stats-text { font-size:12px; font-weight:800; letter-spacing:2.4px; color: rgba(255,255,255,.72); text-transform: uppercase; white-space: nowrap; }
.site-hero__stats { display:grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap:18px; }
.site-hero__card {
  --accent: rgba(255, 43, 43, 0.85);
  --glass: rgba(0, 0, 0, 0.26);
  background:
    radial-gradient(100px 80px at 18% 25%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 14px 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0 10px,
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.site-hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.0), var(--accent), rgba(255, 255, 255, 0.0)) 0 0 / 100% 2px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.0), var(--accent), rgba(255, 255, 255, 0.0)) 0 0 / 2px 100% no-repeat;
  opacity: 0.55;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 45%, transparent));
}

.site-hero__card::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-60%) rotate(12deg);
  opacity: 0;
  transition: opacity 180ms ease, transform 420ms ease;
}

.site-hero__card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 30px rgba(0,0,0,.22),
    0 0 18px rgba(255, 43, 43, 0.10);
  filter: saturate(1.08);
}

.site-hero__card:hover::after {
  opacity: 1;
  transform: translateX(60%) rotate(12deg);
}
.site-hero__card--cyan { --accent: rgba(0, 212, 255, 0.85); }
.site-hero__card--red { --accent: rgba(255, 43, 43, 0.85); }
.site-hero__card--amber { --accent: rgba(255, 209, 102, 0.85); }
.site-hero__card-top { display:flex; align-items:center; gap:10px; }
.site-hero__card-badge { width: 34px; height: 34px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); }
.site-hero__card-badge i { color: color-mix(in srgb, var(--accent) 80%, #fff); font-size: 16px; }
.site-hero__card-label { font-size: 12px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.78); }
.site-hero__card-value { font-size: 30px; font-weight: 800; letter-spacing: .2px; margin-top: 6px; text-shadow: 0 10px 28px rgba(0,0,0,.35); }
.site-hero__card-foot { display:flex; justify-content:flex-end; margin-top: 6px; }
.site-hero__card-chip { font-size: 10px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); }

@media (max-width: 991.98px) {
  /* Allow the hero to grow on mobile/tablet so cards never overflow into the wrap */
  .site-hero {
    height: auto;
    min-height: 0;
    padding: 18px 0 26px;
  }

  .site-hero__inner {
    height: auto;
    align-items: flex-start;
  }

  /* Match the main site: hide radar/killfeed on mobile+tablet and stack stats as 3 wide rows */
  .site-hero__inner { flex-direction: column; align-items: flex-start; }

  .cs-radar,
  .cs-killfeed {
    display: none !important;
  }

  .site-hero__right { width: 100%; margin-top: 8px; }

  .site-hero__stats-title { margin-top: 10px; }

  .site-hero__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .site-hero__card {
    width: 100%;
    padding: 10px 12px;
    min-height: 64px;
    border-radius: 12px;
    clip-path: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .site-hero__card-top { flex: 1 1 auto; min-width: 0; }

  .site-hero__card-badge { width: 30px; height: 30px; border-radius: 9px; }
  .site-hero__card-badge i { font-size: 14px; }

  .site-hero__card-label { font-size: 11px; letter-spacing: 0.6px; }

  .site-hero__card-value {
    margin-top: 0;
    font-size: 22px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .site-hero__card-foot { display: none; }
}

/* Desktop fine-tuning: center radar/killfeed above stats (like the site) */
@media (min-width: 992px) {
  .site-hero__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -4%;
  }

  .cs-radar {
    margin-left: 0;
    margin-top: -10px; /* slightly higher */
    align-self: center;
  }

  .cs-killfeed {
    margin-left: 0;
    margin-top: 10px;
    margin-bottom: 18px; /* space before stats */
    align-self: center;
  }

  .site-hero__stats-title {
    margin-top: 6px;
    width: 100%;
  }

  .site-hero__stats {
    width: 100%;
    margin-top: 8px; /* a bit lower */
  }
}

.site-nav__menu {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1 1 auto;
}

.site-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.site-nav__toggle i {
  color: rgba(255, 107, 107, 0.95);
  text-shadow: 0 0 10px rgba(255, 43, 43, 0.18);
  font-size: 16px;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-nav__sep {
  width: 10px;
  height: 18px;
  position: relative;
  opacity: 0.55;
  flex: 0 0 10px;
}

.site-nav__sep::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 18px;
  transform: translate(-50%, -50%) rotate(18deg);
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.18) 0 2px,
    rgba(255, 255, 255, 0) 2px 4px
  );
}

.site-nav__link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 6px;
  position: relative;
  gap: 8px;
}

.site-nav__link-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex: 0 0 auto;
}

.site-nav__link-icon i {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 14px;
  height: 2px;
  background: rgba(255, 43, 43, 0.95);
  box-shadow: 0 0 6px rgba(255, 43, 43, 0.18);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: #ff2b2b;
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

/* Keep the hover line (pseudo-element), but never underline the text itself */
.site-nav__link,
.site-nav__link:hover,
.site-nav__link:focus,
.site-nav__link:active {
  text-decoration: none !important;
}

.site-nav__brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav__brand:hover {
  color: rgba(255, 255, 255, 0.92);
}

.site-nav__logo-wrap {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 43, 43, 0.22);
  box-shadow: 0 0 14px rgba(255, 43, 43, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-nav__brand:hover .site-nav__logo-wrap {
  border-color: rgba(255, 43, 43, 0.40);
  box-shadow:
    0 0 18px rgba(255, 43, 43, 0.18),
    0 0 26px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.site-nav__logo {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.site-nav__brand-text {
  font-size: 20px;
  line-height: 1;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.site-nav__brand-text-inner {
  display: inline-block;
  transform: translateX(0);
  transition: transform 220ms ease;
}

.site-nav__brand:hover .site-nav__brand-text-inner {
  transform: translateX(6px);
}

.site-nav__brand-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 43, 43, 0) 0%, rgba(255, 43, 43, 1) 35%, rgba(255, 43, 43, 1) 65%, rgba(255, 43, 43, 0) 100%);
  box-shadow: 0 0 10px rgba(255, 43, 43, 0.6), 0 0 18px rgba(255, 43, 43, 0.35);
}

.site-nav__brand-left { color: #8f8f8f; }
.site-nav__brand-right { color: #ff2b2b; }

/* Auth buttons */
.site-nav__auth { display: inline-flex; align-items: center; gap: 10px; }

/* Mobile auth block must be hidden on desktop to avoid duplicates */
.site-nav__auth--in-menu { display: none; }

.site-nav__hello {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.90);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.22);
  max-width: 260px;
}

.site-nav__hello-text {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav__hello-name { font-weight: 950; text-shadow: 0 0 10px rgba(0,0,0,.35); }

.site-nav__avatar img,
.site-nav__hello img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  object-fit: cover;
  border: 1px solid rgba(255, 43, 43, 0.28);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 12px rgba(255, 43, 43, 0.12);
}

.site-nav__avatar--placeholder {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 43, 43, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.86);
}

.site-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.22);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, filter 180ms ease;
}

.site-nav__btn:hover,
.site-nav__btn:focus,
.site-nav__btn:active {
  text-decoration: none !important;
}

.site-nav__btn i { color: rgba(255, 107, 107, 0.95); }

.site-nav__btn:hover {
  border-color: rgba(255, 43, 43, 0.35);
  box-shadow: 0 0 18px rgba(255, 43, 43, 0.12), 0 0 14px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.site-nav__btn--register {
  background: linear-gradient(135deg, #ff2b2b 0%, #b10f19 55%, #ff2b2b 100%);
  border-color: rgba(255, 43, 43, 0.85);
}
.site-nav__btn--register i { color: rgba(255, 255, 255, 0.96); }
.site-nav__btn--admin { border-color: rgba(0, 212, 255, 0.22); }
.site-nav__btn--admin i { color: rgba(0, 212, 255, 0.92); }

/* Mobile menu */
@media (max-width: 575.98px) {
  /* Allow the dropdown panel to extend outside the fixed navbar */
  .site-nav {
    overflow: visible;
  }

  .site-nav__menu {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 70px;
    height: auto;
    padding: 12px;
    border-radius: 12px;
    background: #0f0f0ffa;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    z-index: 1001;
  }
  .site-nav.is-menu-open .site-nav__menu { display: flex; }
  .site-nav__sep { display: none; }
  .site-nav__toggle { display: inline-flex; margin-left: auto; margin-right: 10px; }
  .site-nav__actions { display: none; }
  .site-nav__auth--in-menu { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
}

/* Footer minimal (site footer classes already in /resources/css/style.css; for forum we keep it simple) */
.site-footer { background: #16161e; border-top: 1px solid rgba(255,255,255,.10); padding: 34px 0 18px; position: relative; overflow: hidden; color: rgba(255,255,255,.88); }
.site-footer::before { content:""; position:absolute; inset:0; background: radial-gradient(1200px 400px at 20% 0%, rgba(255, 43, 43, 0.12), transparent 55%), radial-gradient(900px 360px at 80% 10%, rgba(0, 212, 255, 0.10), transparent 55%), linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.45) 100%); pointer-events:none; }
.site-footer > .container { position: relative; z-index: 1; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; padding-bottom: 20px; }
.site-footer__title { font-weight: 900; font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,.82); text-transform: uppercase; margin-bottom: 12px; }
.site-footer__links { display: grid; gap: 10px; justify-items: start; }
.site-footer__link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: rgba(255,255,255,.78); text-decoration: none !important; font-weight: 800; font-size: 13px; transform: translateX(0); transition: transform 180ms ease, color 180ms ease, text-shadow 180ms ease; }
.site-footer__link i { color: rgba(255,107,107,.85); width: 18px; text-align: center; }
.site-footer__link:hover { color: #fff; transform: translateX(6px); text-shadow: 0 0 10px rgba(255, 43, 43, 0.16); text-decoration: none !important; }
.site-footer__link:hover i { color: rgba(255, 43, 43, 0.95); filter: drop-shadow(0 0 10px rgba(255, 43, 43, 0.18)); }
.site-footer__brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.site-footer__brand-text { font-size: 20px !important; font-weight: 800 !important; letter-spacing: 0.3px; line-height: 1; }
.site-footer__logo-wrap { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,43,43,.22); }
.site-footer__logo { width: 40px; height: 40px; object-fit: contain; }
.site-footer__brand-left { color: #8f8f8f; }
.site-footer__brand-right { color: #ff2b2b; }
.site-footer__desc { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.70); max-width: 520px; }
.site-footer__social { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer__social-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; color: rgba(255,255,255,.90); background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.22); transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease, filter 180ms ease; }
.site-footer__social-btn:hover,
.site-footer__social-btn:focus,
.site-footer__social-btn:active { text-decoration: none !important; }
.site-footer__social-btn:hover { border-color: rgba(255, 43, 43, 0.28); box-shadow: 0 10px 24px rgba(0,0,0,.22), 0 0 14px rgba(255, 43, 43, 0.12); background: rgba(255, 43, 43, 0.10); filter: saturate(1.08); color: #fff; }
.site-footer__mini { display: grid; gap: 8px; color: rgba(255,255,255,.68); font-size: 12px; }
.site-footer__mini-row { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__mini-row i { color: rgba(0,212,255,.70); width: 18px; text-align: center; }
.site-footer__sep { display: flex; align-items: center; gap: 14px; padding: 14px 0 12px; }
.site-footer__sep-line { height: 1px; flex: 1 1 auto; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 100%); }
.site-footer__sep-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,.22); border: 1px solid rgba(255,43,43,.22); }
.site-footer__sep-icon i { color: rgba(255,107,107,.95); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; color: rgba(255,255,255,.62); font-size: 12px; }
.site-footer__dev-name { color: rgba(255, 107, 107, 0.92); font-weight: 900; display:inline-block; transform: translateX(0); transition: transform 180ms ease, color 180ms ease, text-shadow 180ms ease; cursor: default; }
.site-footer__dev-name:hover { color: #ff2b2b; transform: translateX(4px); text-shadow: 0 0 12px rgba(255, 43, 43, 0.18); }
.to-top { display: none !important; }

@media (max-width: 991.98px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}


