* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #050b08;
  color: #ffffff;
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 86px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 260px auto 260px;
  align-items: center;
  z-index: 20;
  background: rgba(5, 7, 8, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand span span {
  color: #6fd02f;
}

.brand-icon {
  color: #77d63a;
  font-size: 34px;
  text-shadow: 0 0 18px rgba(119, 214, 58, 0.7);
}

.nav {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:42px;
  margin:0 auto;
}

.nav a {
  position: relative;
  padding: 32px 0;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #7ee23c;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 100%;
  height: 3px;
  border-radius: 10px;
  background: #7ee23c;
  box-shadow: 0 0 14px rgba(126, 226, 60, 0.8);
}

.register-btn {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  height: 54px;
  padding: 0 22px;
  border-radius: 10px;
  border: 2px solid #6dcc2f;
  color: #8ef052;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 17px;
  background: rgba(68, 137, 36, 0.12);
  box-shadow: inset 0 0 18px rgba(126, 226, 60, 0.08);
  transition: 0.2s ease;
}

.register-btn:hover {
  background: rgba(126, 226, 60, 0.18);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 112px 5vw 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -28px;
  background-image: url("background.webp");
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.08);
  opacity: 0.9;
  z-index: 1;
}

.hero-dark {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58) 72%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1320px, 100%);
  text-align: center;
  padding-top: 12px;
}

.logo-image {
  width: min(900px, 88vw);
  margin: 0 auto;
  filter:
    drop-shadow(0 25px 45px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 35px rgba(255, 190, 50, 0.18));
}

.logo-image img {
  width: 100%;
  display: block;
}

.subtitle {
  margin: -8px auto 22px;
  color: #f5f5f5;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.35;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9);
}

.soon-box {
  width: min(280px, 86vw);
  height: 78px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 14px;
  border: 1.5px solid #68c637;
  color: #74d63a;
  background: rgba(5, 10, 8, 0.58);
  box-shadow:
    inset 0 0 22px rgba(126, 226, 60, 0.08),
    0 12px 35px rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  font-size: 31px;
  font-weight: 900;
}

.clock {
  font-size: 38px;
  line-height: 1;
}

.main-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn {
  width: 320px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 13px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 900;
  transition: 0.22s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-green {
  color: #ffffff;
  background: linear-gradient(180deg, #7edc35, #3e9f19);
  border: 1px solid rgba(199, 255, 149, 0.6);
  box-shadow:
    0 18px 35px rgba(57, 158, 25, 0.32),
    inset 0 0 20px rgba(255, 255, 255, 0.12);
}

.btn-dark {
  color: #ffffff;
  background: rgba(5, 9, 10, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.card {
  min-height: 205px;
  height: 100%;
  padding: 24px 24px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  text-align: left;
  text-decoration: none;
  color: #ffffff;
  border-radius: 14px;
  background: rgba(5, 9, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    inset 0 0 28px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  transition: 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(126, 226, 60, 0.55);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(126, 226, 60, 0.16);
}

.card-icon {
  width: 76px;
  min-width: 76px;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7ee23c;
  line-height: 1;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55));
}

.card-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 2.5;
}

.card > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card h3 {
  margin: 0 0 12px;
  color: #7ee23c;
  text-transform: uppercase;
  font-size: clamp(19px, 1.55vw, 22px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: #f2f2f2;
  font-size: 16px;
  line-height: 1.45;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1180px) {
  .header {
    grid-template-columns: 230px 1fr 190px;
    padding: 0 22px;
  }

  .nav {
    gap: 24px;
  }

  .nav a {
    font-size: 15px;
  }

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

@media (max-width: 820px) {
  .header {
    height: 76px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    font-size: 24px;
  }

  .nav {
    display: none;
  }

  .register-btn {
    min-width: auto;
    height: 46px;
    font-size: 0;
    padding: 0 16px;
  }

  .register-btn span {
    font-size: 22px;
  }

  .hero {
    padding: 100px 18px 28px;
  }

  .logo-image {
  width: 100%;
  }

  .subtitle {
    margin-top: 8px;
  }

  .soon-box {
    height: 66px;
    font-size: 24px;
  }

  .main-buttons {
    gap: 14px;
    margin-bottom: 28px;
  }

  .btn {
    width: 100%;
    height: 64px;
    font-size: 20px;
  }

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

  .card {
    min-height: 118px;
    grid-template-columns: 64px 1fr;
  }

  .card-icon {
    font-size: 44px;
  }
}

.rules-page {
  position: relative;
  min-height: 100vh;
  padding: 130px 5vw 60px;
  overflow: hidden;
}

.rules-bg {
  position: fixed;
  inset: -30px;
  background-image: url("background.webp");
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.08);
  opacity: 0.75;
  z-index: 1;
}

.rules-dark {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(75, 180, 55, 0.12), transparent 35%),
    linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.92));
  z-index: 2;
}

.rules-content {
  position: relative;
  z-index: 3;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.rules-title {
  text-align: center;
  margin-bottom: 42px;
}

.rules-title span {
  font-size: 54px;
}

.rules-title h1 {
  margin: 10px 0;
  font-size: clamp(42px, 6vw, 72px);
  text-transform: uppercase;
  color: #8cff45;
  text-shadow: 0 0 25px rgba(126, 226, 60, 0.45);
}

.rules-title p {
  margin: 0;
  color: #f2f2f2;
  font-size: 22px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.rule-card {
  padding: 28px;
  border-radius: 18px;
  background: rgba(5, 9, 9, 0.76);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 45px rgba(0,0,0,0.38);
  backdrop-filter: blur(12px);
}

.rule-card h2 {
  margin: 0 0 18px;
  color: #7ee23c;
  font-size: 26px;
}

.rule-card ul {
  margin: 0;
  padding-left: 22px;
}

.rule-card li {
  margin-bottom: 11px;
  color: #f1f1f1;
  font-size: 17px;
  line-height: 1.45;
}

.rule-card p {
  color: #f1f1f1;
  font-size: 18px;
  line-height: 1.55;
}

.rule-card.warning {
  border-color: rgba(255, 190, 60, 0.35);
}

.rule-card.warning h2 {
  color: #ffcc4d;
}

.rule-card.good {
  border-color: rgba(126, 226, 60, 0.45);
}

@media (max-width: 820px) {
  .rules-page {
    padding: 105px 18px 34px;
  }

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

  .rules-title p {
    font-size: 18px;
  }
}

.rules-title {
  animation: fadeDown 0.8s ease forwards;
}

.rule-card {
  opacity: 0;
  transform: translateY(25px);
  animation: cardShow 0.7s ease forwards;
}

.rule-card:nth-child(1) { animation-delay: 0.05s; }
.rule-card:nth-child(2) { animation-delay: 0.12s; }
.rule-card:nth-child(3) { animation-delay: 0.19s; }
.rule-card:nth-child(4) { animation-delay: 0.26s; }
.rule-card:nth-child(5) { animation-delay: 0.33s; }
.rule-card:nth-child(6) { animation-delay: 0.40s; }
.rule-card:nth-child(7) { animation-delay: 0.47s; }
.rule-card:nth-child(8) { animation-delay: 0.54s; }
.rule-card:nth-child(9) { animation-delay: 0.61s; }
.rule-card:nth-child(10) { animation-delay: 0.68s; }

.rule-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(126, 226, 60, 0.55);
  box-shadow:
    0 25px 55px rgba(0,0,0,0.5),
    0 0 26px rgba(126, 226, 60, 0.18);
}

.rule-card h2 {
  transition: 0.2s ease;
}

.rule-card:hover h2 {
  transform: translateX(4px);
  text-shadow: 0 0 16px rgba(126, 226, 60, 0.45);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardShow {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MAIN PAGE ANIMATIONS ===== */

.hero-bg {
  animation: bgMove 18s ease-in-out infinite alternate;
}

.logo-image {
  opacity: 0;
  animation:
    logoAppear 0.9s ease forwards,
    logoFloat 4s ease-in-out infinite 1s;
}

.subtitle {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.25s;
}

.soon-box {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.45s, pulseGlow 2.4s ease-in-out infinite 1.2s;
}

.main-buttons {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.65s;
}

.cards .card {
  opacity: 0;
  transform: translateY(25px);
  animation: cardAppear 0.65s ease forwards;
}

.cards .card:nth-child(1) { animation-delay: 0.80s; }
.cards .card:nth-child(2) { animation-delay: 0.95s; }
.cards .card:nth-child(3) { animation-delay: 1.10s; }
.cards .card:nth-child(4) { animation-delay: 1.25s; }

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transform: skewX(-20deg);
}

.btn:hover::after {
  animation: shine 0.75s ease;
}

@keyframes logoAppear {
  from {
    opacity: 0;
    transform: translateY(-22px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bgMove {
  from {
    transform: scale(1.08) translateX(-12px) translateY(-8px);
  }

  to {
    transform: scale(1.12) translateX(12px) translateY(8px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      inset 0 0 22px rgba(126, 226, 60, 0.08),
      0 12px 35px rgba(0, 0, 0, 0.45);
  }

  50% {
    box-shadow:
      inset 0 0 28px rgba(126, 226, 60, 0.2),
      0 0 28px rgba(126, 226, 60, 0.28),
      0 12px 35px rgba(0, 0, 0, 0.45);
  }
}

@keyframes shine {
  from {
    left: -120%;
  }

  to {
    left: 140%;
  }
}

.burger {
  display: none;
  width: 56px;
  height: 56px;

  align-items: center;
  justify-content: center;
  flex-direction: column;

  border: 1px solid rgba(126, 226, 60, 0.5);
  border-radius: 12px;
  background: rgba(5, 9, 10, 0.65);

  cursor: pointer;
  z-index: 30;

  padding: 0;
}

.burger span {
  display: block;

  width: 26px;
  height: 3px;

  margin: 3px 0;

  border-radius: 999px;
  background: #8ef052;

  transition: 0.25s ease;
}

.mobile-menu {
  position: fixed;
  top: 76px;
  right: 18px;
  width: calc(100% - 36px);
  max-width: 360px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  border-radius: 18px;
  background: rgba(5, 9, 10, 0.92);
  border: 1px solid rgba(126, 226, 60, 0.28);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.55);
  transition: 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  padding: 15px 16px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255,255,255,0.05);
}

.mobile-menu a:hover {
  background: rgba(126, 226, 60, 0.14);
  color: #8ef052;
}

.mobile-register {
  border: 1px solid rgba(126, 226, 60, 0.55);
  color: #8ef052 !important;
}

.burger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 960px) {

  .header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

}

.brand {
  min-width: 0;
}

.brand-logo-img {
  width: 190px;
}

  .register-btn {
    display: none;
  }
  .logo-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 12px;
  }

  .logo-image img {
  width: 92%;
  max-width: 650px;
  }
}

.footer {
  position: relative;
  z-index: 5;
  padding: 38px 20px;
  margin-top: 70px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(3, 8, 6, 0.72);
  backdrop-filter: blur(16px);
}

.footer-content {
  width: min(1200px, 100%);
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  margin-bottom: 14px;
  color: #7ee23c;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(126, 226, 60, 0.35);
}

.footer-text {
  color: #f1f1f1;
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: #8ef052;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: #b7ff8b;
  text-shadow: 0 0 12px rgba(126, 226, 60, 0.45);
}

.footer-small {
  color: rgba(255,255,255,0.48);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .footer {
    padding: 30px 16px;
  }

  .footer-logo {
    font-size: 24px;
  }

  .footer-text {
    font-size: 14px;
  }

  .footer-small {
    font-size: 12px;
  }
}
/* ===== ACCOUNT PAGE ===== */
.account-page {
  position: relative;
  min-height: 100vh;
  padding: 120px 26px 50px;
  overflow: hidden;
}

.account-bg {
  position: fixed;
  inset: -28px;
  background-image: url("background.webp");
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.08);
  opacity: 0.72;
  z-index: 1;
}

.account-dark {
  position: fixed;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 52% 0%, rgba(126, 226, 60, 0.16), transparent 30%),
    linear-gradient(to bottom, rgba(0,0,0,0.58), rgba(0,0,0,0.93));
}

.account-layout {
  position: relative;
  z-index: 3;
  width: min(1680px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

.glass-card {
  background: rgba(5, 9, 9, 0.74);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 22px 55px rgba(0,0,0,0.42), inset 0 0 28px rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
  border-radius: 18px;
}

.account-sidebar {
  position: sticky;
  top: 112px;
  height: calc(100vh - 140px);
  padding: 20px;
}

.account-mini-logo {
  margin-bottom: 18px;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

.account-mini-logo span { color: #7ee23c; }

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  margin-bottom: 7px;
  transition: .2s ease;
}

.side-link:hover,
.side-link.active {
  color: #8ef052;
  background: rgba(126, 226, 60, 0.14);
}

.server-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(126, 226, 60, 0.22);
  display: grid;
  gap: 8px;
}

.server-box span {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  text-transform: uppercase;
}

.server-box strong { color: #8ef052; font-size: 18px; }
.server-box .green { color: #7ee23c; }

.account-content { min-width: 0; }

.profile-hero {
  min-height: 190px;
  padding: 28px;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  gap: 24px;
}

.skin-head {
  width: 170px;
  height: 170px;
  border-radius: 16px;
  border: 2px solid #7ee23c;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 74px;
  background: linear-gradient(135deg, rgba(126,226,60,.18), rgba(255,180,40,.13));
  overflow: hidden;
}

.profile-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-title h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  text-transform: uppercase;
}

.status {
  padding: 6px 10px;
  border-radius: 8px;
  color: #8ef052;
  font-weight: 900;
  background: rgba(126,226,60,.14);
  border: 1px solid rgba(126,226,60,.35);
}

.profile-info p { color: rgba(255,255,255,.72); }
.level-line { display: flex; justify-content: space-between; font-weight: 900; }
.progress { margin-top: 10px; height: 11px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #8cff45, #ff9f1a); border-radius: inherit; }
.profile-model { font-size: 96px; text-align: center; filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); }

.quick-grid {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card { padding: 22px; }
.stat-card span { font-size: 42px; }
.stat-card b { display:block; margin-top: 10px; color: #fff; font-size: 34px; }
.stat-card p { margin: 7px 0 0; color: rgba(255,255,255,.72); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.panel { padding: 24px; }
.panel.large { grid-column: span 2; }
.panel.wide { grid-column: span 2; }
.panel h2 { margin: 0 0 18px; color: #8ef052; font-size: 24px; text-transform: uppercase; }

.stats-list { display: grid; gap: 10px; }
.stats-list.two-cols { grid-template-columns: repeat(2, 1fr); column-gap: 34px; }
.stats-list p,
.player-list p,
.achievement-list p {
  margin: 0;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.stats-list span,
.player-list span,
.achievement-list span { color: rgba(255,255,255,.76); }
.stats-list b,
.player-list b,
.achievement-list b { color: #fff; text-align: right; }
.player-list b { color: #8ef052; }

.bar-list { display: grid; gap: 12px; }
.bar-list p { margin: 0; display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; }
.bar-list span { color: rgba(255,255,255,.78); }
.bar-list i { height: 9px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.bar-list em { display:block; height:100%; background:#7ee23c; border-radius: inherit; }
.bar-list b { text-align: right; }

.death-list article { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.death-list b { display:block; margin-bottom: 7px; }
.death-list span { color: rgba(255,255,255,.68); font-size: 14px; }

@media (max-width: 1180px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: relative; top: 0; height: auto; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .account-page { padding: 96px 16px 34px; }
  .profile-hero { grid-template-columns: 1fr; text-align: center; }
  .skin-head { margin: 0 auto; }
  .level-line { flex-direction: column; gap: 6px; }
  .profile-model { display: none; }
  .quick-grid,
  .dashboard-grid,
  .stats-list.two-cols { grid-template-columns: 1fr; }
  .panel.large,
  .panel.wide { grid-column: span 1; }
  .bar-list p { grid-template-columns: 1fr; }
}

/* ===== ACCOUNT PAGE ALIGNMENT FIX ===== */
.account-page {
  padding: 120px 24px 64px;
}

.account-layout {
  width: min(1780px, 100%);
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.account-sidebar {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.account-mini-logo {
  min-height: 58px;
  margin: 0 0 18px;
  padding: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #ffffff;
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
}

.account-mini-logo span {
  color: #8ef052;
  filter: drop-shadow(0 0 12px rgba(126,226,60,.35));
}

.side-link {
  min-height: 48px;
}

.server-box {
  margin-top: auto;
}

.account-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.profile-hero {
  min-height: 175px;
  padding: 30px 36px;
  grid-template-columns: 124px minmax(0, 1fr) 140px;
}

.skin-head {
  width: 112px;
  height: 112px;
  font-size: 66px;
}

.profile-info p {
  margin: 12px 0 14px;
  word-break: break-word;
}

.profile-model {
  justify-self: center;
}

.quick-grid {
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  min-height: 148px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.panel {
  min-width: 0;
  padding: 26px;
  grid-column: span 4;
}

.panel.large {
  grid-column: span 8;
}

.panel.wide {
  grid-column: span 4;
}

#community {
  grid-column: span 4;
}

#deaths,
#achievements {
  grid-column: span 4;
}

.panel h2 {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-list p,
.player-list p,
.achievement-list p {
  min-height: 38px;
  align-items: center;
}

.bar-list p {
  grid-template-columns: minmax(120px, 1fr) minmax(90px, .75fr) 70px;
  min-height: 31px;
}


@media (max-width: 1380px) {
  .account-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
  }

  .profile-hero {
    grid-template-columns: 105px minmax(0, 1fr) 100px;
    padding: 26px;
  }

  .skin-head {
    width: 96px;
    height: 96px;
    font-size: 56px;
  }

  .profile-model {
    font-size: 76px;
  }

  .panel {
    padding: 22px;
  }
}

@media (max-width: 1180px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: relative;
    top: 0;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .account-mini-logo,
  .server-box {
    grid-column: 1 / -1;
  }

  .server-box {
    margin-top: 8px;
  }

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

  .panel,
  .panel.large,
  .panel.wide,
  #community,
  #deaths,
  #achievements {
    grid-column: span 1;
  }
}

@media (max-width: 820px) {
  .account-page {
    padding: 96px 14px 38px;
  }

  .account-sidebar {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .quick-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-list.two-cols {
    grid-template-columns: 1fr;
  }

  .bar-list p {
    grid-template-columns: 1fr;
    gap: 6px;
  }

}

/* ===== STICKY SIDEBAR + ACTIVE SECTION HIGHLIGHT ===== */
.account-page {
  overflow: visible;
}

.account-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100vh - 126px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 226, 60, .55) rgba(255,255,255,.06);
}

.account-sidebar::-webkit-scrollbar {
  width: 6px;
}

.account-sidebar::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
  border-radius: 99px;
}

.account-sidebar::-webkit-scrollbar-thumb {
  background: rgba(126, 226, 60, .55);
  border-radius: 99px;
}

.account-content > [id],
.dashboard-grid > [id] {
  scroll-margin-top: 118px;
}

.side-link.active {
  color: #8ef052;
  background: linear-gradient(90deg, rgba(126, 226, 60, .22), rgba(126, 226, 60, .08));
  box-shadow:
    inset 4px 0 0 #7ee23c,
    0 0 18px rgba(126, 226, 60, .10);
}

.profile-hero,
.panel {
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease,
    background .25s ease;
}

.profile-hero.section-focus,
.panel.section-focus {
  border-color: rgba(126, 226, 60, .82);
  box-shadow:
    0 24px 65px rgba(0,0,0,.48),
    0 0 0 1px rgba(126, 226, 60, .28),
    0 0 34px rgba(126, 226, 60, .25),
    inset 0 0 34px rgba(126, 226, 60, .055);
  transform: translateY(-2px);
}

@media (max-width: 1180px) {
  .account-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    overflow: visible;
  }
}

/* ===== AUTH VISIBILITY ===== */
.auth-only {
  display: none !important;
}
body.is-auth .auth-only {
  display: flex !important;
}
body.is-auth .auth-action-btn .auth-action-text,
body.is-auth .auth-action-mobile {
  font-size: 0;
}
body.is-auth .auth-action-btn .auth-action-text::after {
  content: "Кабинет";
  font-size: 17px;
}
body.is-auth .auth-action-mobile::after {
  content: "Кабинет";
  font-size: 16px;
}
body.is-auth .auth-action-btn {
  border-color: #6dcc2f;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  position: relative;
  min-height: 100vh;
  padding: 126px 18px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-bg {
  position: fixed;
  inset: -30px;
  background-image: url("background.webp");
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.08);
  opacity: 0.82;
  z-index: 1;
}

.auth-dark {
  position: fixed;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 226, 60, 0.2), transparent 32%),
    linear-gradient(to bottom, rgba(0,0,0,0.52), rgba(0,0,0,0.92));
}

.auth-card {
  position: relative;
  z-index: 3;
  width: min(500px, 100%);
  padding: 30px;
  text-align: center;
  animation: fadeUp .7s ease forwards;
}

.auth-logo {
  width: min(330px, 82vw);
  margin: -8px auto 8px;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.75));
}

.auth-logo img {
  width: 100%;
  display: block;
}

.auth-card h1 {
  margin: 0 0 10px;
  color: #8ef052;
  font-size: clamp(32px, 5vw, 48px);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(126,226,60,.35);
}

.auth-subtitle {
  margin: 0 auto 24px;
  color: rgba(255,255,255,.76);
  font-size: 17px;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 16px;
  text-align: left;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #ffffff;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  outline: none;
  background: rgba(0,0,0,.34);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  transition: .2s ease;
}

.auth-form input:focus {
  border-color: rgba(126,226,60,.75);
  box-shadow: 0 0 0 4px rgba(126,226,60,.12);
}

.auth-form input::placeholder {
  color: rgba(255,255,255,.42);
}

.auth-submit,
.auth-second-btn,
.logout-btn {
  min-height: 54px;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, #7edc35, #3e9f19);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: .22s ease;
}

.auth-submit:hover,
.auth-second-btn:hover,
.logout-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.auth-message {
  min-height: 22px;
  margin: 0;
  text-align: center;
  font-weight: 900;
}

.auth-message.error { color: #ff6b6b; }
.auth-message.success { color: #8ef052; }


.auth-divider {
  width: 100%;
  height: 1px;
  margin: 22px 0 18px;
  background: linear-gradient(90deg, transparent, rgba(126, 226, 60, 0.45), transparent);
  box-shadow: 0 0 14px rgba(126, 226, 60, 0.18);
}

.auth-bottom {
  margin-top: 0;
  display: grid;
  gap: 12px;
}

.auth-bottom p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-weight: 800;
}

.auth-second-btn {
  background: rgba(5, 9, 10, 0.65);
  border: 1.5px solid rgba(126, 226, 60, 0.65);
  color: #8ef052;
}

.logout-btn {
  width: 100%;
  margin: 12px 0;
  background: rgba(255, 80, 80, .14);
  border: 1px solid rgba(255, 100, 100, .45);
  color: #ff9a9a;
}

@media (max-width: 820px) {
  .auth-page {
    padding-top: 100px;
  }
  .auth-card {
    padding: 22px;
  }
}


/* ===== AUTH USER MENU UPDATE ===== */
.auth-menu-wrap {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
}

.auth-menu-wrap .register-btn {
  width: auto;
  min-width: 0;
  max-width: 260px;
  padding: 0 22px;
  white-space: nowrap;
}

.auth-action-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(126, 226, 60, 0.35);
  background: rgba(5, 9, 10, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.55), 0 0 24px rgba(126, 226, 60, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: 0.22s ease;
}

.auth-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.auth-dropdown a,
.auth-dropdown button,
.mobile-auth-link {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-dropdown a:hover,
.auth-dropdown button:hover,
.mobile-auth-link:hover {
  color: #8ef052;
  background: rgba(126, 226, 60, 0.14);
}

body.is-auth .auth-action-btn .auth-action-text,
body.is-auth .auth-action-mobile {
  font-size: inherit !important;
}

body.is-auth .auth-action-btn .auth-action-text::after,
body.is-auth .auth-action-mobile::after {
  content: none !important;
}

.security-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  text-align: left;
}

.security-list p {
  margin: 0;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.security-list span {
  color: rgba(255,255,255,0.72);
}

.green-text {
  color: #8ef052;
}

@media (max-width: 820px) {
  .auth-menu-wrap {
    display: none;
  }
}

/* ===== AUTH DROPDOWN FIX V3 ===== */
.auth-dropdown {
  width: auto;
  min-width: 245px;
  padding: 8px;
}

.auth-dropdown a,
.auth-dropdown button {
  min-height: 46px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.auth-dropdown a span,
.auth-dropdown button span {
  width: 24px;
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-dropdown a b,
.auth-dropdown button b {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}

.auth-dropdown-divider {
  display: block;
  height: 1px;
  margin: 4px 10px;
  background: rgba(255,255,255,0.13);
}

.auth-menu-wrap .register-btn {
  width: max-content;
  max-width: none;
}

.auth-action-text {
  max-width: 170px;
  white-space: nowrap;
}

/* ===== REAL WEBBRIDGE DATA STATES ===== */
.red-text {
  color: #ff5b5b !important;
}



/* ===== REAL PLAYER PROFILE ===== */
.skin-head img {
  width: 132%;
  height: 132%;
  image-rendering: pixelated;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  transform: translateY(10px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55));
}

.profile-model {
  display: none !important;
}

.status.online {
  color: #8ef052;
  background: rgba(126, 226, 60, 0.14);
  border-color: rgba(126, 226, 60, 0.35);
}

.status.offline {
  color: #ff5b6b;
  background: rgba(255, 70, 90, 0.14);
  border-color: rgba(255, 70, 90, 0.35);
}


/* ===== PROFILE ROLE / FAST STATUS PATCH ===== */
#profileRole {
  margin: 8px 0 14px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  word-break: break-word;
}

#serverXpLevel,
#serverXpTotal {
  color: #8ef052;
}

/* ===== POPKINDOM ACCOUNT UPDATE: LUCIDE ICONS + HISTORY ===== */
.account-mini-logo svg,
.side-link svg,
.logout-btn svg,
.panel h2 svg,
.stat-card svg,
.server-info-row svg,
.profile-history svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #8ef052;
  filter: drop-shadow(0 0 10px rgba(126, 226, 60, .22));
}

.account-mini-logo svg {
  width: 30px;
  height: 30px;
  color: #7a45d8;
}

.side-link svg {
  color: rgba(255,255,255,.9);
  transition: .2s ease;
}

.side-link:hover svg,
.side-link.active svg {
  color: #8ef052;
}

.logout-btn {
  gap: 10px;
}

.logout-btn svg {
  color: #ff7474;
  filter: drop-shadow(0 0 10px rgba(255, 100, 100, .22));
}

.server-box {
  gap: 16px;
}

.server-info-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
}

.server-info-row + .server-info-row {
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.server-info-row svg {
  width: 30px;
  height: 30px;
}

.server-info-row span,
.server-info-row strong {
  display: block;
}

.profile-hero {
  grid-template-columns: 124px minmax(0, 1fr) minmax(240px, 300px);
}

.profile-history {
  justify-self: end;
  width: min(300px, 100%);
  display: grid;
  gap: 18px;
  padding: 4px 0;
}

.history-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.history-item svg {
  width: 26px;
  height: 26px;
}

.history-item span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 800;
}

.history-item strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.stat-card svg {
  width: 42px;
  height: 42px;
  color: #ffffff;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.12));
}

.panel h2 svg {
  width: 25px;
  height: 25px;
}

.bar-list p {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.bar-list p:last-child {
  border-bottom: none;
}

@media (max-width: 1380px) {
  .profile-hero {
    grid-template-columns: 105px minmax(0, 1fr) minmax(220px, 260px);
  }
}

@media (max-width: 820px) {
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-history {
    justify-self: stretch;
    width: 100%;
    max-width: 320px;
    margin: 8px auto 0;
    text-align: left;
  }
}

/* ===== SIDEBAR ORDER/FIT PATCH: no inner scroll ===== */
.account-sidebar {
  height: auto;
  max-height: none;
  overflow: visible;
  scrollbar-width: none;
}

.account-sidebar::-webkit-scrollbar {
  display: none;
}

.account-mini-logo {
  min-height: 46px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  font-size: 20px;
}

.side-link {
  min-height: 42px;
  padding: 10px 14px;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.15;
}

.logout-btn {
  min-height: 48px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 14px;
}

.server-box {
  margin-top: 12px;
  padding: 14px;
  gap: 12px;
}

.server-box span {
  font-size: 12px;
}

.server-box strong {
  font-size: 16px;
}

.server-info-row {
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

.server-info-row svg {
  width: 26px;
  height: 26px;
}

/* ===== AUTH DROPDOWN PLAYER HEAD + LUCIDE V4 ===== */
.auth-action-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-action-icon svg,
.auth-dropdown svg,
.mobile-auth-link svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
}

.auth-player-head,
.mobile-auth-head {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(126, 226, 60, 0.55), 0 0 12px rgba(126, 226, 60, 0.25);
}

.mobile-auth-head {
  width: 26px;
  height: 26px;
  margin-right: 8px;
}

.auth-dropdown {
  min-width: 260px;
}

.auth-dropdown a,
.auth-dropdown button {
  gap: 13px;
}

.auth-dropdown a svg,
.auth-dropdown button svg {
  color: currentColor;
}

.auth-dropdown .auth-dropdown-logout,
.mobile-auth-logout {
  color: #ff7a7a;
}

.auth-dropdown .auth-dropdown-logout:hover,
.mobile-auth-logout:hover {
  color: #ff9a9a;
  background: rgba(255, 80, 80, 0.15);
}

.auth-dropdown-divider {
  margin: 8px 8px;
  background: rgba(255, 90, 90, 0.22);
}


/* ===== POPKINDOM LOGO UPDATE ===== */
.brand {
  min-width: 0;
}

.brand-logo-img {
  display: block;
  width: 230px;
  max-width: 100%;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 14px rgba(126, 226, 60, 0.28));
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-img {
  display: block;
  width: 260px;
  max-width: 85vw;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(126, 226, 60, 0.28));
}

@media (max-width: 820px) {

  .brand-logo-img {
    width: 170px;
  }

}

/* ===== FINAL HEADER/FOOTER BRAND + VISUAL INFO CARDS ===== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(126, 226, 60, 0.22);
}

.brand > svg {
  width: 34px;
  height: 34px;
  color: #7eff45;
  fill: rgba(126, 255, 69, 0.2);
  filter: drop-shadow(0 0 12px rgba(126, 255, 69, 0.48));
}

.brand span span,
.footer-logo span span {
  color: #73ff3f;
}

.footer-logo {
  gap: 12px;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.footer-logo > svg {
  width: 32px;
  height: 32px;
  color: #7eff45;
  fill: rgba(126, 255, 69, 0.12);
  filter: drop-shadow(0 0 12px rgba(126, 255, 69, 0.36));
}

.card {
  cursor: default;
  user-select: none;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 48px;
  height: 48px;
  color: #7eff45;
  filter: drop-shadow(0 0 14px rgba(126, 255, 69, 0.28));
}

@media (max-width: 820px) {
  .brand {
    font-size: 22px;
    gap: 8px;
  }
  .brand > svg {
    width: 28px;
    height: 28px;
  }
}


/* equal feature cards */
.cards{
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.card{
  min-height:230px;
}
.card h3{
  font-size: 17px;
  line-height:1.15;
  min-height:40px;
  display:flex;
  align-items:center;
  margin:0 0 12px 0;
  text-transform:uppercase;
}


/* ===== NAV BUGFIX V5: compact navigation + stable auth button ===== */
.header {
  grid-template-columns: 300px 1fr 230px auto;
}

.nav {
  gap: 52px;
}

.auth-action-icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
}

.auth-action-icon svg {
  width: 24px;
  height: 24px;
}

.register-btn {
  min-width: 190px;
}

.register-btn .auth-player-head {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.mobile-register {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-register svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 960px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .nav,
  .auth-menu-wrap,
  .view-toggle-btn {
    display: none;
  }
}

.hero{min-height:auto!important;padding-bottom:40px;} .footer{margin-top:0!important;} body{overflow-x:hidden;}

/* ===== MINECRAFT MATERIAL INVENTORY ===== */














@media (max-width: 820px) {




}

/* ===== INVENTORY VISUAL FIX v2 ===== */












@media (max-width: 820px) {


}

/* ===== INVENTORY FALLBACK ICONS + NO-SCROLL LAYOUT FIX v3 ===== */










@media (max-width: 980px) {

}

/* ===== INVENTORY DETAILS + STRICT FALLBACK FIX v4 ===== */
















@media (max-width: 1180px) {
}

@media (max-width: 920px) {


}


/* ===== ABOUT / DETAILS PAGE ===== */
.about-page {
  position: relative;
  min-height: 100vh;
  padding: 126px 5vw 58px;
  overflow: hidden;
}

.about-content {
  position: relative;
  z-index: 3;
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.about-hero {
  min-height: 430px;
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  position: relative;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 20% 18%, rgba(126, 226, 60, 0.22), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(255, 176, 55, 0.14), transparent 28%);
  pointer-events: none;
}

.about-hero-text,
.about-hero-badge {
  position: relative;
  z-index: 1;
}

.about-kicker {
  width: fit-content;
  margin-bottom: 18px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  color: #9cff64;
  background: rgba(126, 226, 60, 0.13);
  border: 1px solid rgba(126, 226, 60, 0.35);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.about-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .95;
  text-transform: uppercase;
  color: #8cff45;
  text-shadow: 0 0 26px rgba(126, 226, 60, 0.42);
}

.about-hero p {
  max-width: 820px;
  margin: 0;
  color: #f3f3f3;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.38;
}

.about-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.about-actions .btn,
.about-final .btn {
  width: auto;
  min-width: 220px;
  height: 62px;
  padding: 0 24px;
  font-size: 18px;
}

.about-hero-badge {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(126, 226, 60, 0.34);
  background: rgba(0, 0, 0, 0.26);
  box-shadow: inset 0 0 28px rgba(126, 226, 60, 0.08);
}

.about-hero-badge svg {
  width: 82px;
  height: 82px;
  color: #8cff45;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(126,226,60,.4));
}

.about-hero-badge b {
  font-size: 32px;
  text-transform: uppercase;
}

.about-hero-badge span {
  margin-top: 8px;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.about-section {
  position: relative;
}

.about-intro {
  padding: 34px;
}

.about-section h2,
.about-section-title h2 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8ef052;
  font-size: clamp(28px, 3.5vw, 42px);
  text-transform: uppercase;
}

.about-intro p,
.about-section-title p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 19px;
  line-height: 1.65;
}

.about-section-title {
  margin: 8px 0 18px;
}

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

.about-feature {
  min-height: 210px;
  padding: 26px;
  transition: .22s ease;
}

.about-feature:hover,
.admin-dialog:hover {
  transform: translateY(-4px);
  border-color: rgba(126,226,60,.46);
  box-shadow: 0 24px 58px rgba(0,0,0,.48), 0 0 24px rgba(126,226,60,.14);
}

.about-feature svg {
  width: 42px;
  height: 42px;
  color: #8ef052;
  margin-bottom: 18px;
}

.about-feature h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 24px;
  text-transform: uppercase;
}

.about-feature p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 16px;
  line-height: 1.55;
}

.admin-dialogs {
  display: grid;
  gap: 18px;
}

.admin-dialog {
  padding: 24px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  transition: .22s ease;
}

.admin-person {
  position: sticky;
  top: 110px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.admin-person img {
  width: 86px;
  height: 86px;
  image-rendering: pixelated;
  border-radius: 14px;
  border: 2px solid rgba(126,226,60,.68);
  background: rgba(0,0,0,.32);
  box-shadow: 0 0 20px rgba(126,226,60,.15);
}

.admin-person b {
  color: #8ef052;
  font-size: 18px;
  word-break: break-word;
}

.admin-bubble {
  position: relative;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.1);
}

.admin-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 34px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: rgba(0,0,0,.28);
  border-left: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.admin-bubble p {
  margin: 0 0 14px;
  color: #f4f4f4;
  font-size: 17px;
  line-height: 1.62;
}

.admin-bubble p:last-child {
  margin-bottom: 0;
}

.start-section {
  padding: 34px;
}

.start-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.start-steps div {
  min-height: 130px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.1);
}

.start-steps b {
  display: block;
  margin-bottom: 12px;
  color: #8ef052;
  font-size: 30px;
  font-weight: 900;
}

.start-steps span {
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.about-final {
  padding: 38px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 22px;
  border-color: rgba(126,226,60,.3);
}

.about-final p {
  max-width: 840px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  font-weight: 900;
}

@media (max-width: 980px) {
  .about-hero,
  .admin-dialog {
    grid-template-columns: 1fr;
  }

  .about-hero-badge {
    min-height: 190px;
  }

  .about-feature-grid,
  .start-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-person {
    position: static;
    justify-items: start;
    grid-template-columns: 78px 1fr;
    text-align: left;
  }

  .admin-person img {
    width: 72px;
    height: 72px;
  }

  .admin-bubble::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .about-page {
    padding: 100px 16px 34px;
  }

  .about-hero,
  .about-intro,
  .start-section,
  .about-final,
  .admin-dialog {
    padding: 22px;
  }

  .about-actions .btn,
  .about-final .btn {
    width: 100%;
  }

  .about-feature-grid,
  .start-steps {
    grid-template-columns: 1fr;
  }
}

/* ===== MINIMAL ADMIN PANEL ===== */
.admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: flex !important;
}

.admin-page {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 70px;
  overflow: hidden;
}

.admin-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.admin-hero {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.95;
}

.admin-hero p {
  margin: 0;
  color: rgba(255,255,255,0.72);
}

.admin-badge {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(126, 226, 60, 0.35);
  color: #8ef052;
  background: rgba(126, 226, 60, 0.1);
  font-weight: 900;
  white-space: nowrap;
}


.admin-pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(126, 226, 60, 0.10), transparent 32%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-pin-overlay[hidden] {
  display: none !important;
}

body.admin-pin-locked {
  overflow: hidden;
}

body.admin-pin-locked .admin-dashboard,
body.admin-pin-locked .admin-hero {
  filter: saturate(0.9) brightness(0.72);
}

body.admin-pin-locked .header,
body.admin-pin-locked .mobile-menu,
body.admin-pin-locked .footer {
  pointer-events: none;
}

.admin-pin-card {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 34px;
  text-align: center;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.58), 0 0 46px rgba(126, 226, 60, 0.08);
}

.admin-pin-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #8ef052;
  background: rgba(126, 226, 60, 0.12);
  border: 1px solid rgba(126, 226, 60, 0.25);
}

.admin-pin-icon svg {
  width: 34px;
  height: 34px;
}

.admin-pin-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.admin-pin-card p {
  color: rgba(255,255,255,0.72);
}

.admin-pin-form {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.admin-pin-form input {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.28);
  color: #fff;
  padding: 0 18px;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 8px;
  outline: none;
}

.admin-pin-form input:focus {
  border-color: rgba(126, 226, 60, 0.65);
  box-shadow: 0 0 0 4px rgba(126, 226, 60, 0.12);
}

.admin-dashboard {
  display: grid;
  gap: 22px;
}

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

.admin-stat {
  padding: 22px;
  display: grid;
  gap: 8px;
}

.admin-stat svg {
  color: #8ef052;
}

.admin-stat span {
  color: rgba(255,255,255,0.68);
  font-weight: 800;
}

.admin-stat b {
  font-size: 34px;
  line-height: 1;
}

.admin-table-card {
  padding: 24px;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-section-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.admin-table th,
.admin-table td {
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-table th {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-player-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.admin-player-cell img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.admin-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-status.online {
  color: #8ef052;
  background: rgba(126, 226, 60, 0.12);
}

.admin-status.offline {
  color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.08);
}

@media (max-width: 760px) {
  .admin-page {
    padding: 98px 14px 50px;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  
.admin-pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(126, 226, 60, 0.10), transparent 32%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-pin-overlay[hidden] {
  display: none !important;
}

body.admin-pin-locked {
  overflow: hidden;
}

body.admin-pin-locked .admin-dashboard,
body.admin-pin-locked .admin-hero {
  filter: saturate(0.9) brightness(0.72);
}

body.admin-pin-locked .header,
body.admin-pin-locked .mobile-menu,
body.admin-pin-locked .footer {
  pointer-events: none;
}

.admin-pin-card {
    padding: 24px 18px;
  }
}

.primary-btn {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  color: #081008;
  background: linear-gradient(135deg, #8ef052, #55c92f);
  font: inherit;
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(85, 201, 47, 0.24);
}

.primary-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}


.skin-head img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.18);
  transform-origin: center bottom;
  image-rendering: auto;
}

/* ===== PLAYER RENDER FIX: профиль без рамки вокруг аватара ===== */
.profile-hero {
  grid-template-columns: 156px minmax(0, 1fr) minmax(240px, 300px) !important;
  column-gap: 28px !important;
}

.skin-head {
  width: 148px !important;
  height: 160px !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.skin-head img {
  width: 172px !important;
  height: 172px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  image-rendering: pixelated !important;
  transform: translateY(6px) scale(1.08) !important;
  transform-origin: center bottom !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

@media (max-width: 1380px) {
  .profile-hero {
    grid-template-columns: 142px minmax(0, 1fr) minmax(220px, 260px) !important;
  }

  .skin-head {
    width: 134px !important;
    height: 150px !important;
  }

  .skin-head img {
    width: 160px !important;
    height: 160px !important;
  }
}

@media (max-width: 820px) {
  .profile-hero {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .skin-head {
    margin: 0 auto !important;
  }
}

/* ===== POPKINDOM PROFILE FINAL: 3D skin, divider, simple online, role badge ===== */
.profile-hero {
  grid-template-columns: 170px 1px minmax(0, 1fr) minmax(240px, 300px) !important;
  column-gap: 26px !important;
  align-items: center !important;
}

.skin-head {
  width: 165px !important;
  height: 178px !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  position: relative !important;
}

.skin-head::after {
  content: "";
  position: absolute;
  right: -27px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(126, 226, 60, .22),
    rgba(255, 255, 255, .22),
    rgba(126, 226, 60, .22),
    transparent
  );
  box-shadow: 0 0 18px rgba(126, 226, 60, .16);
}

.skin-head img {
  width: 196px !important;
  height: 196px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  image-rendering: pixelated !important;
  transform: translateY(5px) scale(1.06) !important;
  transform-origin: center bottom !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .72)) !important;
}

.profile-info {
  padding-left: 0 !important;
  min-width: 0 !important;
}

.profile-title {
  gap: 18px !important;
  align-items: center !important;
}

.status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px currentColor;
  background: currentColor;
}

.status.online {
  color: #8ef052 !important;
}

.status.offline {
  color: #ff5264 !important;
}

.role-badge {
  width: max-content;
  margin: 10px 0 16px !important;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .9) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.role-player {
  color: #8ef052 !important;
  background: rgba(126, 226, 60, .14);
  border: 1px solid rgba(126, 226, 60, .45);
}

.role-moderator {
  color: #65b7ff !important;
  background: rgba(72, 157, 255, .14);
  border: 1px solid rgba(72, 157, 255, .5);
}

.role-admin {
  color: #ffb34d !important;
  background: rgba(255, 159, 26, .14);
  border: 1px solid rgba(255, 159, 26, .5);
}

.role-owner {
  color: #ff5b6b !important;
  background: rgba(255, 70, 90, .14);
  border: 1px solid rgba(255, 70, 90, .5);
}

@media (max-width: 1380px) {
  .profile-hero {
    grid-template-columns: 158px 1px minmax(0, 1fr) minmax(220px, 270px) !important;
    column-gap: 24px !important;
  }

  .skin-head {
    width: 154px !important;
    height: 166px !important;
  }

  .skin-head::after {
    right: -25px;
  }

  .skin-head img {
    width: 184px !important;
    height: 184px !important;
  }
}

@media (max-width: 820px) {
  .profile-hero {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .skin-head {
    margin: 0 auto !important;
  }

  .skin-head::after {
    display: none !important;
  }

  .profile-title,
  .role-badge,
  .level-line {
    justify-content: center !important;
  }

  .role-badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ===== POPKINDOM PROFILE REQUEST PATCH: code-only 3D skin + role/status layout ===== */
.profile-hero {
  grid-template-columns: 180px minmax(0, 1fr) minmax(240px, 300px) !important;
  column-gap: 54px !important;
  align-items: center !important;
  min-height: 220px !important;
}

.skin-head {
  width: 180px !important;
  height: 190px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  position: relative !important;
}

.skin-head::after {
  content: "" !important;
  position: absolute !important;
  right: -28px !important;
  top: 18px !important;
  bottom: 18px !important;
  width: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.18), rgba(126,226,60,.38), rgba(255,255,255,.18), transparent) !important;
  box-shadow: 0 0 18px rgba(126,226,60,.2) !important;
}

.skin-head img {
  width: 225px !important;
  height: 225px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  image-rendering: pixelated !important;
  transform: translate(-2px, 10px) scale(1.05) !important;
  transform-origin: center bottom !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,.78)) !important;
}

.profile-info {
  padding-left: 0 !important;
  transform: translateX(6px) !important;
  min-width: 0 !important;
}

.profile-title {
  gap: 18px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  line-height: 1 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.status-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  display: inline-block !important;
  background: currentColor !important;
  box-shadow: 0 0 12px currentColor !important;
}

.status.online { color: #7ee23c !important; }
.status.offline { color: #ff4d5f !important; }

.role-badge,
#profileRole {
  width: max-content !important;
  margin: 10px 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 14px !important;
  border-radius: 9px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  background: rgba(255,255,255,.055) !important;
  color: rgba(255,255,255,.92) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.18) !important;
}

.role-player {
  color: #8ef052 !important;
  background: rgba(126,226,60,.14) !important;
  border: 1px solid rgba(126,226,60,.62) !important;
}
.role-moderator {
  color: #66b9ff !important;
  background: rgba(72,157,255,.14) !important;
  border: 1px solid rgba(72,157,255,.66) !important;
}
.role-admin {
  color: #ffb347 !important;
  background: rgba(255,159,26,.14) !important;
  border: 1px solid rgba(255,159,26,.66) !important;
}
.role-owner {
  color: #ff596a !important;
  background: rgba(255,70,90,.14) !important;
  border: 1px solid rgba(255,70,90,.72) !important;
}

@media (max-width: 1380px) {
  .profile-hero {
    grid-template-columns: 168px minmax(0, 1fr) minmax(220px, 270px) !important;
    column-gap: 48px !important;
  }
  .skin-head { width: 168px !important; height: 180px !important; }
  .skin-head::after { right: -25px !important; }
  .skin-head img { width: 210px !important; height: 210px !important; }
}

@media (max-width: 820px) {
  .profile-hero {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    row-gap: 18px !important;
  }
  .skin-head { margin: 0 auto !important; }
  .skin-head::after { display: none !important; }
  .profile-info { transform: none !important; }
  .profile-title, .level-line { justify-content: center !important; }
  .role-badge, #profileRole { margin-left: auto !important; margin-right: auto !important; }
}

/* ===== POPKINDOM PROFILE FIX: real 3D skin layer, no overflow, swapped role/status ===== */
.profile-hero {
  grid-template-columns: 210px minmax(0, 1fr) minmax(250px, 320px) !important;
  column-gap: 42px !important;
  align-items: center !important;
  min-height: 218px !important;
  overflow: hidden !important;
}

.skin-head {
  width: 210px !important;
  height: 210px !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  position: relative !important;
  align-self: stretch !important;
}

.skin-head::after {
  content: "" !important;
  position: absolute !important;
  right: -18px !important;
  top: 42px !important;
  bottom: 42px !important;
  width: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.18), rgba(126,226,60,.42), rgba(255,255,255,.18), transparent) !important;
  box-shadow: 0 0 16px rgba(126,226,60,.22) !important;
  pointer-events: none !important;
}

.skin-head img {
  width: 198px !important;
  height: 198px !important;
  max-width: 198px !important;
  max-height: 198px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  image-rendering: auto !important;
  transform: translateY(10px) !important;
  transform-origin: center bottom !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.72)) !important;
}

.profile-info {
  transform: none !important;
  padding-left: 0 !important;
  margin-left: 6px !important;
  min-width: 0 !important;
}

.profile-title {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
  margin-bottom: 8px !important;
}

.profile-title .role-badge,
.profile-title #profileRole {
  margin: 0 !important;
}

.status {
  width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  line-height: 1 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.status-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  display: inline-block !important;
  background: currentColor !important;
  box-shadow: 0 0 12px currentColor !important;
}

.status.online { color: #7ee23c !important; }
.status.offline { color: #ff4d5f !important; }

.role-badge,
#profileRole {
  width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 15px !important;
  border-radius: 9px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  background: rgba(255,255,255,.055) !important;
  color: rgba(255,255,255,.92) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.18) !important;
}

.role-player {
  color: #8ef052 !important;
  background: rgba(126,226,60,.14) !important;
  border: 1px solid rgba(126,226,60,.68) !important;
}
.role-moderator {
  color: #66b9ff !important;
  background: rgba(72,157,255,.14) !important;
  border: 1px solid rgba(72,157,255,.68) !important;
}
.role-admin {
  color: #ffb347 !important;
  background: rgba(255,159,26,.14) !important;
  border: 1px solid rgba(255,159,26,.72) !important;
}
.role-owner {
  color: #ff596a !important;
  background: rgba(255,70,90,.14) !important;
  border: 1px solid rgba(255,70,90,.76) !important;
}

@media (max-width: 1380px) {
  .profile-hero {
    grid-template-columns: 190px minmax(0, 1fr) minmax(230px, 290px) !important;
    column-gap: 38px !important;
  }
  .skin-head { width: 190px !important; height: 200px !important; }
  .skin-head::after { right: -17px !important; top: 38px !important; bottom: 38px !important; }
  .skin-head img { width: 184px !important; height: 184px !important; max-width: 184px !important; max-height: 184px !important; }
}

@media (max-width: 820px) {
  .profile-hero {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    row-gap: 18px !important;
    overflow: visible !important;
  }
  .skin-head {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto !important;
    align-self: auto !important;
  }
  .skin-head::after { display: none !important; }
  .skin-head img { width: 172px !important; height: 172px !important; max-width: 172px !important; max-height: 172px !important; }
  .profile-info { margin-left: 0 !important; }
  .profile-title,
  .level-line { justify-content: center !important; }
  .status,
  .role-badge,
  #profileRole { margin-left: auto !important; margin-right: auto !important; }
}


/* ===== FINAL PROFILE PATCH: 3D skin layers + role badge like old online status ===== */
.profile-hero {
  grid-template-columns: 198px minmax(0, 1fr) minmax(250px, 320px) !important;
  column-gap: 46px !important;
  min-height: 220px !important;
  overflow: hidden !important;
}

.skin-head {
  width: 198px !important;
  height: 210px !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  position: relative !important;
  align-self: stretch !important;
}

.skin-head::after {
  content: "" !important;
  position: absolute !important;
  right: -22px !important;
  top: 42px !important;
  bottom: 42px !important;
  width: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(126, 226, 60, .34),
    rgba(255, 255, 255, .18),
    transparent
  ) !important;
  box-shadow: 0 0 16px rgba(126, 226, 60, .22) !important;
  pointer-events: none !important;
}

.skin-head img {
  width: 194px !important;
  height: 194px !important;
  max-width: 194px !important;
  max-height: 194px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  transform: translateY(2px) !important;
  image-rendering: auto !important;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .74)) !important;
}

.profile-info {
  margin-left: 10px !important;
  padding-left: 0 !important;
  min-width: 0 !important;
}

.profile-title {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 8px !important;
}

.profile-title h1 {
  line-height: .95 !important;
}

.status {
  width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  line-height: 1 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.status-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  display: inline-block !important;
  background: currentColor !important;
  box-shadow: 0 0 12px currentColor !important;
}

.status.online { color: #7ee23c !important; }
.status.offline { color: #ff4d5f !important; }

.profile-title .role-badge,
.profile-title #profileRole {
  margin: 0 !important;
}

.role-badge,
#profileRole {
  width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 11px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .1px !important;
  color: #8ef052 !important;
  background: rgba(126, 226, 60, .14) !important;
  border: 1px solid rgba(126, 226, 60, .38) !important;
  box-shadow:
    inset 0 0 18px rgba(126, 226, 60, .08),
    0 0 14px rgba(126, 226, 60, .10) !important;
}

.role-player {
  color: #8ef052 !important;
  background: rgba(126, 226, 60, .14) !important;
  border-color: rgba(126, 226, 60, .45) !important;
}

.role-moderator {
  color: #67bcff !important;
  background: rgba(72, 157, 255, .14) !important;
  border-color: rgba(72, 157, 255, .52) !important;
  box-shadow:
    inset 0 0 18px rgba(72, 157, 255, .08),
    0 0 14px rgba(72, 157, 255, .10) !important;
}

.role-admin {
  color: #ffb34d !important;
  background: rgba(255, 159, 26, .14) !important;
  border-color: rgba(255, 159, 26, .55) !important;
  box-shadow:
    inset 0 0 18px rgba(255, 159, 26, .08),
    0 0 14px rgba(255, 159, 26, .10) !important;
}

.role-owner {
  color: #ff5b6b !important;
  background: rgba(255, 70, 90, .14) !important;
  border-color: rgba(255, 70, 90, .58) !important;
  box-shadow:
    inset 0 0 18px rgba(255, 70, 90, .08),
    0 0 14px rgba(255, 70, 90, .10) !important;
}

@media (max-width: 1380px) {
  .profile-hero {
    grid-template-columns: 182px minmax(0, 1fr) minmax(230px, 290px) !important;
    column-gap: 40px !important;
  }

  .skin-head {
    width: 182px !important;
    height: 200px !important;
  }

  .skin-head::after {
    right: -19px !important;
    top: 38px !important;
    bottom: 38px !important;
  }

  .skin-head img {
    width: 178px !important;
    height: 178px !important;
    max-width: 178px !important;
    max-height: 178px !important;
  }
}

@media (max-width: 820px) {
  .profile-hero {
    grid-template-columns: 1fr !important;
    row-gap: 18px !important;
    text-align: center !important;
    overflow: visible !important;
  }

  .skin-head {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto !important;
    align-self: auto !important;
  }

  .skin-head::after {
    display: none !important;
  }

  .skin-head img {
    width: 174px !important;
    height: 174px !important;
    max-width: 174px !important;
    max-height: 174px !important;
  }

  .profile-info {
    margin-left: 0 !important;
  }

  .profile-title,
  .level-line {
    justify-content: center !important;
  }

  .status,
  .role-badge,
  #profileRole {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ===== POPKINDOM PATCH: nickname skin render + final role colors ===== */
.skin-head img {
  object-fit: contain !important;
  object-position: center bottom !important;
  image-rendering: auto !important;
}

.role-badge,
#profileRole {
  min-height: 34px !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  backdrop-filter: blur(10px) !important;
}

.role-player {
  color: #8cff4f !important;
  background: rgba(126, 226, 60, .13) !important;
  border: 1px solid rgba(126, 226, 60, .56) !important;
  box-shadow: inset 0 0 18px rgba(126, 226, 60, .08), 0 0 16px rgba(126, 226, 60, .12) !important;
}

.role-moderator {
  color: #5bb8ff !important;
  background: rgba(63, 169, 255, .13) !important;
  border: 1px solid rgba(63, 169, 255, .62) !important;
  box-shadow: inset 0 0 18px rgba(63, 169, 255, .08), 0 0 16px rgba(63, 169, 255, .12) !important;
}

.role-admin {
  color: #ffad3d !important;
  background: rgba(255, 154, 26, .14) !important;
  border: 1px solid rgba(255, 154, 26, .66) !important;
  box-shadow: inset 0 0 18px rgba(255, 154, 26, .08), 0 0 16px rgba(255, 154, 26, .12) !important;
}

.role-owner {
  color: #ff4d5f !important;
  background: rgba(255, 70, 90, .14) !important;
  border: 1px solid rgba(255, 70, 90, .66) !important;
  box-shadow: inset 0 0 18px rgba(255, 70, 90, .08), 0 0 16px rgba(255, 70, 90, .12) !important;
}

/* ===== ROLE BADGE COLOR FIX: strict role palette ===== */
.profile-hero #profileRole.role-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 8px 15px !important;
  border-radius: 9px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  text-shadow: none !important;
  backdrop-filter: blur(10px) !important;
}

.profile-hero #profileRole.role-player,
.profile-hero #profileRole[data-role="player"] {
  color: #8cff4f !important;
  background: rgba(126, 226, 60, .14) !important;
  border: 1px solid rgba(126, 226, 60, .68) !important;
  box-shadow: inset 0 0 18px rgba(126, 226, 60, .10), 0 0 16px rgba(126, 226, 60, .16) !important;
}

.profile-hero #profileRole.role-moderator,
.profile-hero #profileRole[data-role="moderator"] {
  color: #5bb8ff !important;
  background: rgba(63, 169, 255, .15) !important;
  border: 1px solid rgba(63, 169, 255, .72) !important;
  box-shadow: inset 0 0 18px rgba(63, 169, 255, .10), 0 0 16px rgba(63, 169, 255, .16) !important;
}

.profile-hero #profileRole.role-admin,
.profile-hero #profileRole[data-role="admin"] {
  color: #ffad3d !important;
  background: rgba(255, 154, 26, .16) !important;
  border: 1px solid rgba(255, 154, 26, .76) !important;
  box-shadow: inset 0 0 18px rgba(255, 154, 26, .10), 0 0 16px rgba(255, 154, 26, .16) !important;
}

.profile-hero #profileRole.role-owner,
.profile-hero #profileRole[data-role="owner"] {
  color: #ff4d5f !important;
  background: rgba(255, 70, 90, .16) !important;
  border: 1px solid rgba(255, 70, 90, .76) !important;
  box-shadow: inset 0 0 18px rgba(255, 70, 90, .10), 0 0 16px rgba(255, 70, 90, .16) !important;
}

/* ===== EXTENDED ADMIN MODERATION PANEL ===== */
.admin-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.admin-search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-search-row input,
.admin-action-form select,
.admin-action-form input,
.admin-action-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.28);
  color: #fff;
  border-radius: 16px;
  min-height: 48px;
  padding: 0 15px;
  outline: none;
  font-weight: 800;
}

.admin-action-form textarea {
  min-height: 86px;
  padding: 13px 15px;
  resize: vertical;
}

.admin-action-form label {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.admin-mini-btn {
  min-height: 40px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.admin-mini-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 226, 60, 0.42);
  background: rgba(126, 226, 60, 0.12);
}

.admin-mini-btn.approve {
  color: #8ef052;
  border-color: rgba(126, 226, 60, 0.28);
}

.admin-mini-btn.reject {
  color: #ff7070;
  border-color: rgba(255, 112, 112, 0.28);
}

.admin-action-card {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.admin-empty-state,
.admin-empty-mini {
  text-align: center;
  color: rgba(255,255,255,0.68);
  padding: 26px 12px;
}

.admin-empty-state svg {
  width: 42px;
  height: 42px;
  color: #8ef052;
  margin-bottom: 10px;
}

.admin-empty-state h2 {
  margin: 0 0 8px;
}

.admin-player-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-player-profile img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  image-rendering: pixelated;
  border: 1px solid rgba(255,255,255,0.14);
}

.admin-player-profile h2 {
  margin: 3px 0 8px;
  font-size: 30px;
}

.admin-tags {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-tag.ok {
  color: #8ef052;
  background: rgba(126, 226, 60, 0.12);
}

.admin-tag.warn {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
}

.admin-tag.danger {
  color: #ff7070;
  background: rgba(255, 112, 112, 0.12);
}

.admin-tag.muted {
  color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.08);
}

.admin-action-form {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.admin-history-box {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
}

.admin-section-head.compact {
  margin-bottom: 12px;
}

.admin-section-head.compact h3 {
  margin: 3px 0 0;
  font-size: 21px;
}

.admin-history-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.admin-history-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-history-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-history-item p {
  margin: 8px 0 6px;
  color: rgba(255,255,255,0.82);
}

.admin-history-item small {
  color: rgba(255,255,255,0.52);
  font-weight: 700;
}

.admin-players-table tr.selected td {
  background: rgba(126, 226, 60, 0.07);
}

.admin-request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .admin-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel-grid {
    grid-template-columns: 1fr;
  }

  .admin-action-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .admin-grid-four {
    grid-template-columns: 1fr;
  }

  .admin-search-row {
    flex-direction: column;
  }
}

/* ===== ADMIN PANEL UX POLISH: full-width action block + custom action picker ===== */
.admin-hero > div:first-child {
  max-width: 850px;
}

.admin-hero p:not(.eyebrow) {
  max-width: 760px;
  line-height: 1.55;
}

.admin-panel-grid {
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
}

.admin-action-card {
  width: 100% !important;
  position: static !important;
  top: auto !important;
  padding: 24px !important;
}

.admin-player-profile {
  padding: 4px 0 20px;
  margin-bottom: 20px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-selected-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.admin-action-form {
  margin-bottom: 0 !important;
}

.admin-action-form input:not([type="hidden"]),
.admin-action-form textarea,
.admin-search-row input {
  background: rgba(0, 0, 0, 0.34) !important;
  border-color: rgba(255,255,255,0.16) !important;
}

.admin-action-form input:not([type="hidden"]):focus,
.admin-action-form textarea:focus,
.admin-search-row input:focus {
  border-color: rgba(126, 226, 60, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(126, 226, 60, 0.10) !important;
}

.admin-action-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-action-picker button {
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.13);
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
  color: rgba(255,255,255,0.86);
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  text-align: left;
}

.admin-action-picker button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: rgba(255,255,255,0.72);
}

.admin-action-picker button:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 226, 60, 0.38);
  background: rgba(126, 226, 60, 0.10);
}

.admin-action-picker button.active {
  border-color: rgba(126, 226, 60, 0.72);
  background: linear-gradient(135deg, rgba(126, 226, 60, 0.22), rgba(85, 201, 47, 0.10));
  box-shadow: inset 0 0 0 1px rgba(126, 226, 60, 0.10), 0 0 24px rgba(126, 226, 60, 0.12);
  color: #fff;
}

.admin-action-picker button.active svg {
  color: #8ef052;
}

.admin-action-picker button.danger.active {
  border-color: rgba(255, 112, 112, 0.66);
  background: linear-gradient(135deg, rgba(255, 112, 112, 0.20), rgba(255, 112, 112, 0.065));
  box-shadow: inset 0 0 0 1px rgba(255, 112, 112, 0.08), 0 0 22px rgba(255, 112, 112, 0.10);
}

.admin-action-picker button.danger.active svg {
  color: #ff7070;
}

.admin-action-picker button.warn.active {
  border-color: rgba(255, 209, 102, 0.62);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.19), rgba(255, 209, 102, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.08), 0 0 22px rgba(255, 209, 102, 0.10);
}

.admin-action-picker button.warn.active svg {
  color: #ffd166;
}

.admin-action-picker button.safe.active {
  border-color: rgba(126, 226, 60, 0.66);
}

.admin-history-box {
  border-top: 0 !important;
  padding-top: 0 !important;
  min-width: 0;
}

.admin-history-list {
  max-height: 430px !important;
}

.admin-tag.ok {
  color: #8ef052;
}

@media (max-width: 980px) {
  .admin-selected-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-action-picker {
    grid-template-columns: 1fr;
  }
}


/* ===== ADMIN ROLE BADGES: unified with personal cabinet role style ===== */
.admin-role-badge {
  margin: 0 !important;
  min-height: 30px;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap;
  text-transform: none;
}

.admin-table .admin-role-badge {
  min-height: 28px;
  padding: 7px 11px !important;
  font-size: 12px !important;
}

.admin-selected-role {
  margin: 6px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-badge .admin-role-badge {
  min-height: 32px;
  padding: 8px 13px !important;
}

.admin-user-badge-name {
  color: #8ef052;
  font-weight: 1000;
}

.admin-player-profile-wide{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:24px;align-items:center;width:100%}
.admin-info-col{display:flex;flex-direction:column;gap:10px}
.admin-info-label{font-size:12px;text-transform:uppercase;opacity:.7;font-weight:700}
.admin-player-main{display:flex;align-items:center;gap:14px}
@media(max-width:900px){.admin-player-profile-wide{grid-template-columns:1fr}}


/* admin tweaks */
.admin-players-table td:last-child,
.admin-players-table th:last-child{
 text-align:right;
}
.admin-players-table td:last-child .admin-mini-btn,
.admin-players-table td:last-child button{
 margin-left:auto;
}
.admin-history-list,
.admin-punishments-history,
.history-list{
 scrollbar-width: thin;
 scrollbar-color: #84f146 rgba(255,255,255,.05);
}
.admin-history-list::-webkit-scrollbar,
.admin-punishments-history::-webkit-scrollbar,
.history-list::-webkit-scrollbar{
 width:10px;
}
.admin-history-list::-webkit-scrollbar-track,
.admin-punishments-history::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track{
 background: rgba(255,255,255,.04);
 border-radius:999px;
}
.admin-history-list::-webkit-scrollbar-thumb,
.admin-punishments-history::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb{
 background: linear-gradient(180deg,#84f146,#59c41e);
 border-radius:999px;
 box-shadow:0 0 8px rgba(132,241,70,.35);
}


/* ===== TOP PAGE ===== */
.top-page {
  min-height: 100vh;
  padding: 110px 22px 44px;
  position: relative;
  overflow: hidden;
}

.top-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.top-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.top-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .95;
  color: #fff;
}

.top-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}

.top-hero-badge {
  min-width: 210px;
  min-height: 150px;
  border-radius: 26px;
  border: 1px solid rgba(126,226,60,.25);
  background: linear-gradient(145deg, rgba(126,226,60,.16), rgba(5,10,6,.72));
  box-shadow: inset 0 0 28px rgba(126,226,60,.08), 0 18px 50px rgba(0,0,0,.3);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.top-hero-badge svg {
  width: 34px;
  height: 34px;
  color: #8fff48;
  filter: drop-shadow(0 0 12px rgba(126,226,60,.45));
}

.top-hero-badge b {
  color: #fff;
  font-size: 22px;
}

.top-hero-badge span {
  color: rgba(255,255,255,.62);
  font-size: 13px;
}

.top-panel {
  padding: 24px;
}

.top-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.top-panel-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 25px;
}

.top-panel-head h2 svg {
  color: #7ee23c;
}

.top-panel-head p {
  margin: 0;
  color: rgba(255,255,255,.62);
}

.top-refresh-btn {
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(126,226,60,.25);
  border-radius: 999px;
  color: #dfffce;
  background: rgba(126,226,60,.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
}

.top-refresh-btn:hover {
  background: rgba(126,226,60,.16);
  border-color: rgba(126,226,60,.45);
}

.top-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.top-filters button {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.72);
  border-radius: 16px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.top-filters button:hover {
  transform: translateY(-1px);
  background: rgba(126,226,60,.10);
  border-color: rgba(126,226,60,.28);
  color: #fff;
}

.top-filters button.active {
  color: #061006;
  background: linear-gradient(135deg, #a5ff65, #62d820);
  border-color: rgba(126,226,60,.8);
  box-shadow: 0 12px 26px rgba(98,216,32,.18);
}

.top-filters button svg {
  width: 18px;
  height: 18px;
}

.top-table-wrap {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

.top-table {
  width: 100%;
  border-collapse: collapse;
}

.top-table th {
  text-align: left;
  padding: 16px 18px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  background: rgba(255,255,255,.035);
}

.top-table td {
  padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #fff;
}

.top-table tr:hover td {
  background: rgba(126,226,60,.045);
}

.top-place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
  font-weight: 900;
}

.top-place-1,
.top-place-2,
.top-place-3 {
  background: rgba(126,226,60,.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(126,226,60,.22);
}

.top-player-cell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.top-player-cell img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(126,226,60,.22), 0 8px 18px rgba(0,0,0,.25);
}

.top-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 110px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #b9ff92;
  background: rgba(126,226,60,.10);
  border: 1px solid rgba(126,226,60,.18);
  font-weight: 950;
}

.top-empty {
  text-align: center;
  color: rgba(255,255,255,.58) !important;
  padding: 34px 18px !important;
}

.top-empty.error {
  color: #ff9c9c !important;
}

@media (max-width: 760px) {
  .top-page {
    padding: 96px 14px 32px;
  }

  .top-hero,
  .top-panel-head {
    flex-direction: column;
  }

  .top-hero-badge {
    width: 100%;
    min-height: 120px;
  }

  .top-panel {
    padding: 16px;
  }

  .top-table-wrap {
    overflow-x: auto;
  }

  .top-table {
    min-width: 640px;
  }
}


/* ===== ADMIN PIN INPUT FIX: не смещать текст при вводе ===== */
.admin-pin-form input,
.admin-pin-input {
  width: 100%;
  box-sizing: border-box;
  padding-left: 28px !important;
  padding-right: 28px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  text-align: center !important;
  text-indent: 8px;
  letter-spacing: 8px !important;
  line-height: 56px;
  caret-color: #8ef052;
  font-variant-numeric: tabular-nums;
}

.admin-pin-form input::placeholder,
.admin-pin-input::placeholder {
  text-align: center;
  letter-spacing: 8px;
  text-indent: 8px;
}

.admin-pin-form input::-ms-reveal,
.admin-pin-form input::-ms-clear,
.admin-pin-input::-ms-reveal,
.admin-pin-input::-ms-clear {
  display: none;
}

.admin-pin-input:not(:placeholder-shown) {
  -webkit-text-security: disc;
  text-security: disc;
}


/* ===== PopkinDom update: security / admin roles ===== */
.security-list-rich p span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.security-list-rich p span svg {
  width: 20px;
  height: 20px;
  color: #79e446;
}

.security-reset-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(126, 226, 60, 0.2);
  background: rgba(7, 13, 10, 0.54);
  box-shadow: inset 0 0 22px rgba(126, 226, 60, 0.05);
}

.security-reset-card h2 {
  margin: 0 0 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}

.security-reset-card h2 svg {
  width: 22px;
  height: 22px;
  color: #7ee23c;
}

.security-reset-card p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
  line-height: 1.45;
}

.security-reset-grid {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.security-reset-grid input,
.admin-action-form select {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(126, 226, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
  outline: none;
}

.security-reset-grid input:focus,
.admin-action-form select:focus {
  border-color: rgba(126, 226, 60, 0.82);
  box-shadow: 0 0 0 3px rgba(126, 226, 60, 0.12);
}

.security-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}

.security-action-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}

.security-action-btn svg {
  width: 20px;
  height: 20px;
}

.reset-password-btn {
  width: 100%;
  margin-top: 0;
}

.admin-limited .admin-full-only {
  display: none !important;
}

.admin-action-form select[hidden],
.admin-action-form textarea[hidden],
.admin-action-form input[hidden],
.admin-action-form label[hidden] {
  display: none !important;
}

.admin-action-picker .owner-only {
  border-color: rgba(255, 70, 70, 0.35);
}

@media (max-width: 860px) {
  .security-reset-grid,
  .security-actions {
    grid-template-columns: 1fr;
  }
}


.pin-hint{margin:12px 0 18px;color:#cfd3d6;text-align:center}
.security-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.security-action-btn{width:100%;font-size:18px;white-space:normal;min-height:64px}
@media(max-width:800px){.security-actions{grid-template-columns:1fr}}
.admin-role-select{background:#0b0f0b;border:1px solid #4ade80;border-radius:14px;padding:14px;color:#fff}
.admin-role-submit{border-radius:14px;font-weight:700}

/* === PopkinDom security/admin final fixes === */
.security-list p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.security-list p > span {
  min-width: 0;
}

.security-list p > b {
  text-align: right;
  white-space: nowrap;
}

.pin-hint[hidden] {
  display: none !important;
}

.pin-hint {
  margin: 14px 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(123, 255, 75, .26);
  border-radius: 18px;
  background: rgba(4, 16, 10, .42);
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.security-reset-card {
  overflow: hidden;
}

.security-reset-grid {
  width: 100%;
}

.security-reset-grid input {
  min-width: 0;
}

.security-actions {
  align-items: stretch;
}

.security-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}

.admin-role-select-wrap {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(123, 255, 75, .36);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(123, 255, 75, .12), rgba(14, 20, 16, .72));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 12px 32px rgba(0,0,0,.25);
}

.admin-role-select-wrap[hidden] {
  display: none !important;
}

.admin-role-select-wrap::before {
  content: "Установить роль";
  display: block;
  margin: 0 0 8px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-role-select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(123, 255, 75, .58) !important;
  border-radius: 14px !important;
  background: rgba(6, 12, 8, .92) !important;
  color: #fff !important;
  font-weight: 900;
  padding: 0 16px !important;
  outline: none;
}

.admin-role-select option {
  background: #111;
  color: #fff;
}

.admin-action-form button[type="submit"] {
  min-height: 56px;
  white-space: normal;
  text-align: center;
}

@media (max-width: 760px) {
  .security-list p {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .security-list p > b {
    text-align: left;
    white-space: normal;
    padding-left: 34px;
  }

  .security-reset-grid,
  .security-actions {
    grid-template-columns: 1fr !important;
  }
}


.security-actions{
display:flex;
flex-direction:column;
gap:12px;
}
.security-actions-top{
display:grid;
grid-template-columns:1fr 1fr;
gap:12px;
}
.security-action-btn{
min-height:72px;
white-space:normal;
line-height:1.15;
text-align:center;
justify-content:center;
}
.security-action-btn.danger{
background:#dc2626;
}
.security-modal{
position:fixed;inset:0;background:rgba(0,0,0,.75);display:none;align-items:center;justify-content:center;z-index:9999;
}
.security-modal.show{display:flex}
.security-modal-card{
width:min(520px,92vw);background:#101010;border:1px solid #2f2f2f;border-radius:20px;padding:24px;
}

.security-modal{position:fixed;inset:0;background:rgba(0,0,0,.8);display:none;z-index:9999}
.security-modal.open{display:flex;align-items:center;justify-content:center}
.security-modal-card{width:min(700px,90vw);position:relative}
.modal-back-btn{position:absolute;top:-50px;left:0;padding:10px 20px}
.security-actions-top{display:flex;gap:16px}
.security-actions-top .security-action-btn{flex:1}
.security-full{width:100%;margin-top:16px}


/* ===== SECURITY PAGE REWRITE CLEAN FIX ===== */
.security-page {
  min-height: calc(100vh - 86px);
  padding: 72px 18px 56px;
}

.security-page .auth-bg,
.security-page .auth-dark {
  position: fixed;
}

.security-card {
  width: min(760px, 100%);
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 36px 38px;
  overflow: visible;
}

.security-card .auth-logo {
  margin-bottom: 10px;
}

.security-card h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: .9;
  text-align: center;
}

.security-card .auth-subtitle {
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
  line-height: 1.45;
}

.security-list.security-list-rich {
  display: grid;
  gap: 0;
  margin: 18px 0 20px;
  text-align: left;
}

.security-list.security-list-rich p {
  margin: 0;
  min-height: 58px;
  padding: 14px 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.security-list.security-list-rich p > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .76);
  font-weight: 700;
  line-height: 1.25;
}

.security-list.security-list-rich p > span svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #7cff4b;
}

.security-list.security-list-rich p > b {
  max-width: 100%;
  text-align: right;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1.2;
}

.pin-hint[hidden] {
  display: none !important;
}

.pin-hint {
  margin: 16px 0 22px;
  padding: 15px 18px;
  border: 1px solid rgba(123, 255, 75, .3);
  border-radius: 18px;
  background: rgba(5, 18, 10, .56);
  box-shadow: inset 0 0 24px rgba(87, 255, 40, .05);
  color: rgba(255, 255, 255, .88);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.security-reset-open-btn {
  width: 100%;
  min-height: 70px;
  margin: 8px 0 18px;
  border: 1px solid rgba(123, 255, 75, .35);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(33, 117, 18, .55), rgba(14, 42, 18, .64));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: inset 0 0 24px rgba(123, 255, 75, .08), 0 12px 34px rgba(0, 0, 0, .28);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.security-reset-open-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 255, 75, .7);
  background: linear-gradient(135deg, rgba(64, 190, 20, .75), rgba(30, 78, 20, .7));
}

.security-reset-open-btn svg {
  width: 24px;
  height: 24px;
}

.security-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  margin-top: 0 !important;
  align-items: stretch !important;
}

.security-actions-top {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100%;
}

.security-main-btn {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 14px 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #76ef32 0%, #39bd16 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: normal;
  overflow: visible;
  word-break: normal;
  overflow-wrap: normal;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(49, 180, 20, .22);
}

.security-main-btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.security-main-btn span {
  display: inline-block;
  white-space: normal;
}

.security-main-btn.danger,
.security-full.danger {
  min-height: 80px;
  background: linear-gradient(180deg, #ff3434 0%, #d41616 100%);
  box-shadow: 0 14px 30px rgba(220, 28, 28, .25);
}

.security-full {
  width: 100% !important;
  margin: 0 !important;
}

.security-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 24px !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, .82) !important;
  backdrop-filter: blur(8px);
}

.security-modal.open,
.security-modal.show {
  display: flex !important;
}

.security-modal-card {
  width: min(780px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 42px);
  position: relative !important;
  padding: 34px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at top left, rgba(123, 255, 75, .09), transparent 42%),
    rgba(13, 14, 15, .97) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65) !important;
  overflow: auto;
}

.modal-back-btn {
  position: static !important;
  width: max-content;
  min-height: 44px;
  margin: 0 0 18px;
  padding: 10px 18px !important;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  cursor: pointer;
}

.modal-back-btn:hover {
  background: rgba(255,255,255,.13);
}

.modal-back-btn svg {
  width: 18px;
  height: 18px;
}

.security-reset-card {
  width: 100%;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(123, 255, 75, .28);
  border-radius: 24px;
  background: rgba(3, 15, 8, .52);
  box-shadow: inset 0 0 28px rgba(123, 255, 75, .05);
  display: grid;
  gap: 22px;
  overflow: visible;
}

.security-reset-head h2 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
}

.security-reset-head h2 svg {
  width: 28px;
  height: 28px;
  color: #7cff4b;
}

.security-reset-head p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-weight: 800;
  line-height: 1.45;
}

.security-reset-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px;
}

.security-reset-grid input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(123, 255, 75, .26);
  border-radius: 16px;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-weight: 900;
  outline: none;
}

.security-reset-grid input:focus {
  border-color: rgba(123, 255, 75, .75);
  box-shadow: 0 0 0 4px rgba(123, 255, 75, .09);
}

.security-reset-submit {
  width: 100%;
  min-height: 70px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #76ef32 0%, #39bd16 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}

.security-reset-submit svg {
  width: 24px;
  height: 24px;
}

body.security-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .security-page {
    padding: 46px 14px 44px;
  }

  .security-card {
    padding: 26px 20px 30px;
  }

  .security-list.security-list-rich p {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .security-list.security-list-rich p > b {
    text-align: left;
    white-space: normal;
  }

  .security-actions-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .security-main-btn {
    min-height: 72px;
    padding: 12px 10px;
    font-size: 14px;
    gap: 6px;
  }

  .security-main-btn svg {
    width: 18px;
    height: 18px;
  }

  .security-modal {
    padding: 14px !important;
  }

  .security-modal-card {
    padding: 20px !important;
    border-radius: 22px !important;
  }

  .security-reset-card {
    padding: 20px;
  }

  .security-reset-grid {
    grid-template-columns: 1fr !important;
  }

  .security-reset-head h2 {
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  .security-actions-top {
    grid-template-columns: 1fr !important;
  }
}

/* ===== TOP PAGE FULL REDESIGN ===== */
.top-page-v2 {
  padding: 108px 22px 54px;
  background: #030607;
}

.top-content-v2 {
  width: min(1220px, 100%);
  gap: 24px;
}

.top-hero-v2 {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 34px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
  gap: 26px;
  border-color: rgba(126,226,60,.20);
  background:
    radial-gradient(circle at 20% 10%, rgba(126,226,60,.20), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(255,180,36,.14), transparent 30%),
    linear-gradient(135deg, rgba(6,13,10,.90), rgba(2,6,8,.86));
}

.top-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(126,226,60,.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(126,226,60,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.6), transparent 72%);
  pointer-events: none;
}

.top-hero-main,
.top-hero-side {
  position: relative;
  z-index: 1;
}

.top-hero-v2 h1 {
  margin: 16px 0 14px;
  font-size: clamp(46px, 7vw, 86px);
  letter-spacing: -.05em;
  text-transform: uppercase;
  text-shadow: 0 14px 30px rgba(0,0,0,.45);
}

.top-hero-v2 p {
  max-width: 760px;
  font-size: 18px;
  color: rgba(255,255,255,.74);
}

.top-hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.top-anchor-btn,
.top-refresh-hero {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 950;
  color: #061006;
  background: linear-gradient(135deg, #a5ff65, #59d51c);
  border: 1px solid rgba(126,226,60,.70);
  box-shadow: 0 16px 34px rgba(92,210,24,.18);
}

.top-refresh-hero {
  color: #dfffce;
  background: rgba(126,226,60,.10);
  box-shadow: none;
}

.top-hero-side {
  display: grid;
  gap: 14px;
}

.top-season-card {
  min-height: 176px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(126,226,60,.25);
  background:
    radial-gradient(circle at 50% 0%, rgba(126,226,60,.24), transparent 62%),
    rgba(3,10,5,.54);
  box-shadow: inset 0 0 30px rgba(126,226,60,.08), 0 18px 50px rgba(0,0,0,.30);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.top-season-card svg {
  width: 42px;
  height: 42px;
  color: #90ff55;
  filter: drop-shadow(0 0 14px rgba(126,226,60,.5));
}

.top-season-card span,
.top-season-card small {
  color: rgba(255,255,255,.62);
  font-weight: 850;
}

.top-season-card b {
  max-width: 100%;
  color: #fff;
  font-size: 28px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.top-mini-grid div {
  min-height: 86px;
  padding: 14px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.23);
  display: grid;
  place-items: center;
  text-align: center;
}

.top-mini-grid b {
  max-width: 100%;
  color: #8ef052;
  font-size: 20px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-mini-grid span {
  color: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 800;
}

.top-podium-panel,
.top-panel-v2 {
  padding: 26px;
  border-color: rgba(255,255,255,.09);
}

.top-section-head,
.top-panel-head-v2,
.top-table-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.top-section-head h2,
.top-panel-head-v2 h2,
.top-table-title-row h3 {
  margin: 6px 0 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.top-section-head p,
.top-panel-head-v2 p,
.top-table-title-row p {
  max-width: 620px;
  margin: 8px 0 0;
  color: rgba(255,255,255,.62);
  line-height: 1.45;
}

.top-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8ef052;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 950;
}

.top-eyebrow svg,
.top-table-title-row h3 svg {
  width: 20px;
  height: 20px;
  color: #8ef052;
}

.top-update-box,
.top-sort-pill {
  flex: 0 0 auto;
  min-width: 175px;
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid rgba(126,226,60,.20);
  background: rgba(126,226,60,.07);
  display: grid;
  gap: 4px;
  text-align: right;
}

.top-update-box span {
  color: rgba(255,255,255,.52);
  font-size: 12px;
  font-weight: 850;
}

.top-update-box b {
  color: #fff;
  font-size: 20px;
}

.top-sort-pill {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #dfffce;
  font-weight: 900;
  text-align: center;
}

.top-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
}

.top-podium-card {
  position: relative;
  min-height: 220px;
  padding: 20px 16px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.20));
  box-shadow: inset 0 0 26px rgba(255,255,255,.03), 0 18px 44px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  overflow: hidden;
}

.top-podium-card::before {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: rgba(126,226,60,.5);
  box-shadow: 0 0 22px rgba(126,226,60,.45);
}

.top-podium-1 {
  min-height: 260px;
  order: 2;
  border-color: rgba(255,197,63,.40);
  background: radial-gradient(circle at 50% 0%, rgba(255,197,63,.20), transparent 55%), rgba(0,0,0,.22);
}

.top-podium-2 { order: 1; }
.top-podium-3 { order: 3; }

.top-podium-medal {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
}

.top-podium-card img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(126,226,60,.28), 0 18px 34px rgba(0,0,0,.40);
}

.top-podium-card span {
  color: rgba(255,255,255,.52);
  font-weight: 950;
}

.top-podium-card b {
  max-width: 100%;
  color: #fff;
  font-size: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-podium-card small {
  padding: 8px 12px;
  border-radius: 999px;
  color: #baff9b;
  background: rgba(126,226,60,.10);
  border: 1px solid rgba(126,226,60,.18);
  font-weight: 950;
}

.top-podium-card-empty,
.top-podium-empty {
  min-height: 180px;
  border-radius: 24px;
  border: 1px dashed rgba(255,255,255,.12);
  color: rgba(255,255,255,.55);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.top-filters-v2 {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.top-filters-v2 button {
  min-height: 78px;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255,255,255,.045);
}

.top-filters-v2 button svg {
  width: 23px;
  height: 23px;
}

.top-filters-v2 button span {
  font-size: 13px;
  text-align: center;
}

.top-table-card {
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

.top-table-wrap-v2 {
  border-radius: 20px;
  background: rgba(0,0,0,.26);
}

.top-table-v2 th {
  padding: 15px 18px;
  background: rgba(255,255,255,.045);
}

.top-table-v2 td {
  padding: 16px 18px;
}

.top-table-v2 tr:nth-child(even) td {
  background: rgba(255,255,255,.018);
}

.top-player-cell img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.top-player-cell div {
  display: grid;
  gap: 2px;
}

.top-player-cell small {
  color: rgba(255,255,255,.46);
  font-size: 12px;
  font-weight: 800;
}

.top-value {
  min-width: 128px;
  justify-content: center;
}

.top-row-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 900;
  font-size: 13px;
}

.top-row-status-1 {
  color: #fff3bf;
  background: rgba(255,197,63,.12);
  border-color: rgba(255,197,63,.26);
}

.top-row-status-2,
.top-row-status-3 {
  color: #dfffce;
  background: rgba(126,226,60,.10);
  border-color: rgba(126,226,60,.18);
}

@media (max-width: 1120px) {
  .top-hero-v2 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .top-page-v2 {
    padding: 94px 12px 34px;
  }

  .top-hero-v2,
  .top-podium-panel,
  .top-panel-v2,
  .top-table-card {
    padding: 16px;
    border-radius: 22px;
  }

  .top-hero-actions,
  .top-section-head,
  .top-panel-head-v2,
  .top-table-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .top-anchor-btn,
  .top-refresh-hero,
  .top-update-box,
  .top-sort-pill {
    width: 100%;
    text-align: center;
  }

  .top-mini-grid,
  .top-podium,
  .top-filters-v2 {
    grid-template-columns: 1fr;
  }

  .top-podium-1,
  .top-podium-2,
  .top-podium-3 {
    order: initial;
    min-height: 210px;
  }

  .top-table-wrap-v2 {
    overflow-x: auto;
  }

  .top-table-v2 {
    min-width: 760px;
  }
}


/* ===== MAIN / RULES / SERVER 2026 REDESIGN ===== */
.nav {
  gap: clamp(18px, 3vw, 38px);
}

.home-page-v2,
.server-page-v2,
.rules-page-v2 {
  position: relative;
  min-height: 100vh;
  padding: 108px 22px 54px;
  background: #030607;
  overflow: hidden;
}

.home-shell-v2,
.server-shell-v2,
.rules-content-v2 {
  position: relative;
  z-index: 3;
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.glass-card {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 5%, rgba(126,226,60,.12), transparent 34%),
    linear-gradient(135deg, rgba(7,14,11,.88), rgba(4,8,10,.82));
  box-shadow:
    inset 0 0 0 1px rgba(126,226,60,.03),
    0 24px 60px rgba(0,0,0,.36);
  backdrop-filter: blur(14px);
}

.home-hero-v2,
.server-hero-v2,
.rules-hero-v2 {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 34px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
  gap: 26px;
}

.home-hero-v2::before,
.server-hero-v2::before,
.rules-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(126,226,60,.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(126,226,60,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.68), transparent 76%);
  pointer-events: none;
}

.home-hero-left,
.home-hero-panel,
.server-hero-v2 > *,
.rules-hero-v2 > * {
  position: relative;
  z-index: 1;
}

.home-hero-v2 h1,
.server-hero-v2 h1,
.rules-hero-v2 h1 {
  margin: 16px 0 14px;
  max-width: 850px;
  font-size: clamp(44px, 6.2vw, 82px);
  line-height: .92;
  letter-spacing: -.06em;
  text-transform: uppercase;
  text-shadow: 0 16px 34px rgba(0,0,0,.52);
}

.home-hero-v2 p,
.server-hero-v2 p,
.rules-hero-v2 p {
  max-width: 780px;
  color: rgba(255,255,255,.74);
  font-size: 18px;
  line-height: 1.6;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-hero-panel {
  display: grid;
  gap: 14px;
}

.home-status-card,
.server-ip-card,
.rules-hero-note {
  min-height: 152px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(35,92,15,.46), rgba(5,13,7,.78));
  border: 1px solid rgba(126,226,60,.28);
  display: grid;
  align-content: center;
  gap: 8px;
}

.home-status-card i,
.server-ip-card i,
.rules-hero-note i {
  width: 42px;
  height: 42px;
  color: #84ff43;
}

.home-status-card span,
.server-ip-card span,
.rules-hero-note span {
  color: rgba(255,255,255,.68);
  font-weight: 800;
}

.home-status-card b,
.server-ip-card b,
.rules-hero-note b {
  font-size: 28px;
  line-height: 1.1;
}

.home-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-mini-grid div {
  min-height: 116px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  align-content: center;
  gap: 6px;
}

.home-mini-grid i {
  color: #7ee23c;
}

.home-mini-grid b {
  font-size: 22px;
  text-transform: uppercase;
}

.home-mini-grid span {
  color: rgba(255,255,255,.58);
  font-weight: 800;
}

.home-section-grid,
.server-info-grid,
.rules-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-feature-card,
.server-info-card {
  padding: 24px;
  min-height: 230px;
}

.home-feature-card > i,
.server-card-head i,
.rules-summary-card i,
.rule-panel-head i,
.server-note-v2 > i {
  color: #7ee23c;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 14px rgba(126,226,60,.45));
}

.home-feature-card h2,
.server-info-card h2,
.rule-panel-v2 h2,
.home-roadmap h2,
.worlds-panel-v2 h2,
.server-note-v2 h2 {
  margin: 14px 0 10px;
  font-size: 28px;
  letter-spacing: -.03em;
}

.home-feature-card p,
.server-info-card p,
.rule-panel-v2 p,
.server-note-v2 p {
  color: rgba(255,255,255,.68);
  line-height: 1.55;
}

.home-roadmap,
.server-note-v2 {
  padding: 28px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: center;
}

.home-roadmap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.home-roadmap-list p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-weight: 850;
  display: flex;
  gap: 10px;
  align-items: center;
}

.home-roadmap-list i {
  color: #7ee23c;
  flex: 0 0 auto;
}

/* Rules v2 */
.rules-hero-v2 {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.rules-hero-note {
  min-height: 100%;
}

.rules-summary-grid {
  grid-template-columns: repeat(5, 1fr);
}

.rules-summary-card {
  min-height: 132px;
  padding: 18px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  align-content: center;
  gap: 8px;
  transition: .2s ease;
}

.rules-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(126,226,60,.42);
  background: rgba(126,226,60,.10);
}

.rules-summary-card b {
  font-size: 20px;
}

.rules-summary-card span {
  color: rgba(255,255,255,.58);
  font-weight: 800;
  font-size: 13px;
}

.rules-summary-card.danger i {
  color: #ff6262;
}

.rules-list-v2 {
  display: grid;
  gap: 16px;
}

.rule-panel-v2 {
  padding: 24px;
  border-radius: 22px;
  background: rgba(4,9,8,.78);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 0 0 1px rgba(126,226,60,.03);
}

.rule-panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.rule-panel-v2 h2 {
  margin: 0;
}

.rule-panel-v2 ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
  color: rgba(255,255,255,.76);
  line-height: 1.5;
}

.rule-panel-v2 li::marker {
  color: #7ee23c;
}

.rule-panel-v2.danger {
  border-color: rgba(255,80,80,.26);
  background: linear-gradient(135deg, rgba(58,11,11,.56), rgba(4,9,8,.82));
}

.rule-panel-v2.danger .rule-panel-head i,
.rule-panel-v2.danger li::marker {
  color: #ff5f5f;
}

.rule-panel-v2.good {
  border-color: rgba(126,226,60,.28);
  background: linear-gradient(135deg, rgba(42,103,17,.34), rgba(4,9,8,.82));
}

/* Server page */
.server-hero-v2 {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.server-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.server-tags span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(126,226,60,.10);
  border: 1px solid rgba(126,226,60,.28);
  color: #baff92;
  font-weight: 900;
  font-size: 13px;
}

.server-clean-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.server-clean-list li {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: 4px;
}

.server-clean-list b {
  color: #fff;
}

.server-clean-list span {
  color: rgba(255,255,255,.62);
}

.worlds-panel-v2 {
  padding: 28px;
}

.worlds-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.worlds-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.world-card-v2 {
  min-height: 300px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  display: grid;
  align-content: start;
  gap: 12px;
}

.world-card-v2 i {
  width: 42px;
  height: 42px;
  color: #7ee23c;
}

.world-card-v2 h3 {
  margin: 0;
  font-size: 28px;
}

.world-card-v2 p {
  margin: 0 0 8px;
  color: rgba(255,255,255,.66);
  line-height: 1.5;
}

.world-card-v2 div {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.world-card-v2 span {
  color: rgba(255,255,255,.58);
  font-weight: 800;
}

.world-card-v2 b {
  color: #fff;
}

.world-card-v2.nether {
  background: linear-gradient(145deg, rgba(91,25,12,.42), rgba(255,255,255,.035));
}

.world-card-v2.nether i {
  color: #ff7b30;
}

.world-card-v2.end {
  background: linear-gradient(145deg, rgba(79,50,126,.34), rgba(255,255,255,.035));
}

.world-card-v2.end i {
  color: #b78cff;
}

.server-note-v2 {
  grid-template-columns: auto 1fr;
}

@media (max-width: 1060px) {
  .header {
    grid-template-columns: 220px 1fr 210px;
  }

  .nav a {
    font-size: 16px;
  }

  .home-hero-v2,
  .server-hero-v2,
  .rules-hero-v2 {
    grid-template-columns: 1fr;
  }

  .rules-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .server-info-grid,
  .home-section-grid,
  .worlds-grid-v2 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .home-page-v2,
  .server-page-v2,
  .rules-page-v2 {
    padding: 96px 14px 34px;
  }

  .home-hero-v2,
  .server-hero-v2,
  .rules-hero-v2,
  .home-roadmap,
  .worlds-panel-v2,
  .server-note-v2,
  .home-feature-card,
  .server-info-card,
  .rule-panel-v2 {
    padding: 20px;
    border-radius: 20px;
  }

  .home-mini-grid,
  .home-roadmap-list,
  .rules-summary-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-v2 h1,
  .server-hero-v2 h1,
  .rules-hero-v2 h1 {
    font-size: 42px;
  }

  .world-card-v2 div {
    display: grid;
  }
}


/* ===== MAIN PAGE CLEAN REDESIGN =====
   Возвращает главную к компактной старой структуре, но подгоняет визуал под новый стиль страниц. */
.hero {
  min-height: 100vh;
  padding: 118px 5vw 48px;
}

.hero-content {
  width: min(1240px, 100%);
}

.logo-image {
  width: min(760px, 86vw);
  margin-bottom: 2px;
}

.subtitle {
  max-width: 780px;
  margin: -4px auto 22px;
  color: rgba(255,255,255,.84);
  font-weight: 700;
  letter-spacing: .01em;
}

.soon-box {
  width: min(230px, 78vw);
  height: 58px;
  border-radius: 999px;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(126,226,60,.16), rgba(5,10,8,.68));
  border: 1px solid rgba(126,226,60,.38);
  box-shadow: inset 0 0 22px rgba(126,226,60,.08), 0 18px 42px rgba(0,0,0,.34);
}

.clock {
  font-size: 28px;
}

.main-buttons {
  margin-bottom: 28px;
}

.btn {
  min-width: 205px;
  min-height: 58px;
  border-radius: 999px;
  padding: 15px 24px;
  font-size: 16px;
  letter-spacing: .02em;
}

.btn span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.btn-green {
  background: linear-gradient(180deg, #86f244 0%, #45bb18 100%);
  border: 1px solid rgba(190,255,140,.62);
  box-shadow: 0 18px 45px rgba(72,194,24,.28), inset 0 0 18px rgba(255,255,255,.12);
}

.btn-dark {
  background: rgba(7,12,10,.72);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 45px rgba(0,0,0,.35), inset 0 0 20px rgba(255,255,255,.04);
}

.cards {
  width: min(1180px, 100%);
  gap: 16px;
}

.card {
  min-height: 156px;
  padding: 20px;
  border-radius: 24px;
  grid-template-columns: 58px minmax(0, 1fr);
  background:
    linear-gradient(145deg, rgba(9,16,13,.88), rgba(4,8,8,.68)),
    radial-gradient(circle at 50% 0%, rgba(126,226,60,.12), transparent 55%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.35), inset 0 0 25px rgba(126,226,60,.035);
  backdrop-filter: blur(16px);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(126,226,60,.32);
  box-shadow: 0 28px 80px rgba(0,0,0,.44), 0 0 0 1px rgba(126,226,60,.06);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(126,226,60,.18), rgba(6,12,8,.75));
  border: 1px solid rgba(126,226,60,.28);
  display: grid;
  place-items: center;
  color: #87f047;
  box-shadow: inset 0 0 18px rgba(126,226,60,.08);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.5;
  font-size: 14px;
}

@media (max-width: 1050px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 104px 18px 34px;
  }

  .logo-image {
    width: min(520px, 96vw);
  }

  .subtitle {
    font-size: 16px;
  }

  .main-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

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

  .card {
    min-height: auto;
    grid-template-columns: 50px minmax(0,1fr);
    border-radius: 20px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}


/* ===== HOME ALIGNMENT + PERFORMANCE FIX =====
   Выравнивает карточки главной страницы и убирает тяжелые эффекты,
   из-за которых страница дергалась на слабых ПК/браузерах. */
.hero {
  padding-top: 108px;
  padding-bottom: 42px;
}

.hero-bg {
  inset: 0;
  filter: none;
  transform: none;
  opacity: .82;
  will-change: auto;
}

.hero-dark {
  background:
    radial-gradient(circle at 50% 28%, rgba(126, 226, 60, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.78));
}

.logo-image {
  width: min(720px, 84vw);
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.7));
}

.main-buttons {
  gap: 22px;
  margin: 22px auto 30px;
}

.btn {
  width: 320px;
  min-width: 0;
  height: 76px;
  min-height: 0;
  padding: 0 28px;
  line-height: 1.15;
}

.cards {
  width: min(1180px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.card {
  min-width: 0;
  min-height: 180px;
  height: 100%;
  padding: 22px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(0);
}

.card:hover {
  transform: translateY(-3px);
}

.card-icon {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  border-radius: 22px;
  align-self: center;
}

.card-icon svg {
  width: 34px;
  height: 34px;
}

.card > div:last-child {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.card h3 {
  max-width: 100%;
  margin: 0 0 9px;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: normal;
}

.card p {
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.header,
.card,
.auth-card,
.top-hero,
.top-board,
.rules-hero-v2,
.server-hero-v2,
.security-modal-card {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 1180px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    min-height: 156px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 102px 16px 34px;
  }

  .main-buttons {
    gap: 12px;
  }

  .btn {
    width: min(100%, 360px);
    height: 64px;
    font-size: 15px;
  }

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

  .card {
    min-height: auto;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 18px;
    gap: 14px;
  }

  .card-icon {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    height: 58px;
    min-height: 58px;
    max-height: 58px;
  }

  .card h3 {
    font-size: 18px;
  }
}


/* ===== 2026 performance + clean home alignment patch ===== */
.cards {
  align-items: stretch !important;
  justify-content: center !important;
  gap: 16px !important;
}
.cards .card {
  display: grid !important;
  grid-template-columns: 72px 1fr !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 150px !important;
  padding: 24px 20px !important;
  overflow: hidden !important;
}
.cards .card .card-icon {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}
.cards .card h3 {
  margin: 0 0 8px !important;
  line-height: 1.05 !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}
.cards .card p {
  margin: 0 !important;
  line-height: 1.55 !important;
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(260px, 1fr)) !important; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr !important; }
  .cards .card { grid-template-columns: 60px 1fr !important; min-height: 128px !important; }
  .cards .card .card-icon { width: 60px !important; height: 60px !important; min-width: 60px !important; }
}

/* Убираем самые тяжёлые эффекты на слабых устройствах и ускоряем отрисовку длинных страниц. */
.auth-card,
.profile-hero,
.info-card,
.security-card,
.admin-card,
.top-panel,
.top-hero,
.server-card,
.rules-card,
.about-card,
.card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 320px;
}

.hero-bg,
.auth-bg {
  animation: none !important;
  transform: translateZ(0);
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .header,
  .auth-dropdown,
  .mobile-menu,
  .card,
  .top-panel,
  .profile-hero,
  .security-card,
  .admin-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* ===== PopkinDom performance pass ===== */
.auth-bg, .account-bg, .hero-bg, .rules-bg, .top-bg, .server-bg {
  background-image: url("background.webp") !important;
  transform: translateZ(0);
}
.glass-card, .panel, .stat-card, .feature-card, .top-section, .security-reset-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* ===== BLUR FIX: убран бесполезный блюр фона и карточек ===== */
*,
*::before,
*::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.auth-bg,
.hero-bg,
.rules-bg,
.account-bg {
  inset: 0 !important;
  filter: none !important;
  transform: none !important;
  opacity: 0.72 !important;
  will-change: auto !important;
}

.auth-dark,
.hero-dark,
.rules-dark,
.account-dark {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.auth-card,
.glass-card,
.card,
.top-hero,
.top-board,
.rules-hero-v2,
.server-hero-v2,
.security-modal-card,
.security-reset-card,
.profile-hero,
.admin-card,
.top-panel {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Фон страницы безопасности без размытия внутри центральной области */
.auth-page .auth-bg {
  background-image: url("background.webp") !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Модальные окна затемняют экран без размытия */
.security-modal,
.admin-pin-overlay {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}


/* ===== POPKINDOM: переключение обычной / мобильной версии ===== */
.view-toggle-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 172px;
  height: 42px;
  padding: 0 14px;
  margin-right: 14px;
  border-radius: 10px;
  border: 1px solid rgba(126, 226, 60, .55);
  color: #8ef052;
  background: rgba(7, 18, 12, .7);
  box-shadow: inset 0 0 18px rgba(126, 226, 60, .07);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
}

.view-toggle-btn:hover {
  background: rgba(126, 226, 60, .14);
  transform: translateY(-1px);
}

.view-toggle-btn svg,
.view-toggle-mobile svg {
  width: 18px;
  height: 18px;
  color: #7ee23c;
}

.view-toggle-mobile {
  width: 100%;
  border: 1px solid rgba(126, 226, 60, .28);
  background: rgba(126, 226, 60, .08);
  color: #8ef052;
  cursor: pointer;
}

body.force-desktop {
  min-width: 1180px;
}

body.force-desktop .header {
  height: 86px;
  grid-template-columns: 260px 1fr 230px auto;
  padding: 0 32px;
}

body.force-desktop .nav {
  display: flex !important;
}

body.force-desktop .burger,
body.force-desktop .mobile-menu {
  display: none !important;
}

body.force-desktop .register-btn {
  min-width: 190px;
  height: 54px;
  padding: 0 22px;
  font-size: 17px;
}

body.force-desktop .auth-action-text {
  display: inline;
}

body.force-mobile {
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  background: #050b08;
}

body.force-mobile .header {
  height: 76px;
  grid-template-columns: 1fr auto auto;
  padding: 0 14px;
}

body.force-mobile .brand {
  font-size: 20px;
  min-width: 0;
}

body.force-mobile .brand span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.force-mobile .nav,
body.force-mobile .view-toggle-btn,
body.force-mobile .auth-menu-wrap {
  display: none !important;
}

body.force-mobile .burger {
  display: inline-flex !important;
}

body.force-mobile .mobile-menu {
  width: min(100%, 430px);
  left: 50%;
  transform: translateX(-50%);
}

body.force-mobile .hero {
  min-height: 100svh;
  padding: 94px 16px 28px;
}

body.force-mobile .hero-content,
body.force-mobile .rules-shell,
body.force-mobile .top-shell,
body.force-mobile .server-shell-v2,
body.force-mobile .about-shell,
body.force-mobile .account-layout,
body.force-mobile .admin-shell-v2,
body.force-mobile .auth-card {
  width: 100% !important;
  max-width: 100% !important;
}

body.force-mobile .logo-image {
  width: 100%;
}

body.force-mobile .subtitle {
  font-size: 17px;
}

body.force-mobile .main-buttons,
body.force-mobile .security-actions-top,
body.force-mobile .security-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

body.force-mobile .btn,
body.force-mobile .security-action-btn,
body.force-mobile .auth-submit {
  width: 100% !important;
  min-width: 0 !important;
}

body.force-mobile .cards,
body.force-mobile .server-info-grid,
body.force-mobile .top-stats-grid,
body.force-mobile .about-grid,
body.force-mobile .rules-grid {
  grid-template-columns: 1fr !important;
}

body.force-mobile .card {
  grid-template-columns: 64px 1fr;
}

@media (max-width: 1180px) {
  .header {
    grid-template-columns: 220px 1fr 190px auto;
  }
  .view-toggle-btn {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }
  .view-toggle-btn b {
    display: none;
  }
}

@media (max-width: 820px) {
  .view-toggle-btn {
    display: none !important;
  }
}

/* ===== MOBILE FIX: top/admin pages + right mobile menu ===== */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 820px) {
  .header,
  body.force-mobile .header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding-left: 16px !important;
    padding-right: 14px !important;
  }

  .brand { min-width: 0 !important; }
  .brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .burger,
  body.force-mobile .burger {
    justify-self: end !important;
    margin-left: auto !important;
  }

  .mobile-menu,
  body.force-mobile .mobile-menu {
    left: auto !important;
    right: 12px !important;
    width: min(340px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    transform: translateY(-12px) !important;
  }

  .mobile-menu.open,
  body.force-mobile .mobile-menu.open {
    transform: translateY(0) !important;
  }

  /* TOP: убираем горизонтальный вылет и делаем карточки вместо широкой таблицы */
  .top-page,
  .top-page-v2,
  body.force-mobile .top-page,
  body.force-mobile .top-page-v2 {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 96px 12px 34px !important;
    overflow-x: hidden !important;
  }

  .top-content,
  .top-content-v2,
  body.force-mobile .top-content,
  body.force-mobile .top-content-v2 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
  }

  .top-hero,
  .top-hero-v2,
  .top-podium-panel,
  .top-panel,
  .top-panel-v2,
  .top-table-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .top-hero-v2 {
    grid-template-columns: 1fr !important;
  }

  .about-kicker,
  .top-eyebrow {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25 !important;
  }

  .top-hero-v2 h1,
  .top-hero h1 {
    font-size: clamp(42px, 12vw, 58px) !important;
    letter-spacing: -0.04em !important;
    overflow-wrap: anywhere !important;
  }

  .top-hero-v2 p,
  .top-hero p,
  .top-section-head p,
  .top-panel-head-v2 p,
  .top-table-title-row p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
  }

  .top-hero-actions,
  .top-section-head,
  .top-panel-head,
  .top-panel-head-v2,
  .top-table-title-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .top-anchor-btn,
  .top-refresh-hero,
  .top-refresh-btn,
  .top-update-box,
  .top-sort-pill {
    width: 100% !important;
    min-width: 0 !important;
  }

  .top-mini-grid,
  .top-podium,
  .top-filters,
  .top-filters-v2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .top-filters button,
  .top-filters-v2 button {
    width: 100% !important;
    min-height: 58px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: 12px 14px !important;
  }

  .top-table-wrap,
  .top-table-wrap-v2 {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .top-table,
  .top-table-v2 {
    min-width: 0 !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
  }

  .top-table thead,
  .top-table-v2 thead { display: none !important; }

  .top-table tbody,
  .top-table-v2 tbody,
  .top-table tr,
  .top-table-v2 tr,
  .top-table td,
  .top-table-v2 td { display: block !important; width: 100% !important; }

  .top-table tr,
  .top-table-v2 tr {
    padding: 14px !important;
    border: 1px solid rgba(126,226,60,.16) !important;
    border-radius: 18px !important;
    background: rgba(0,0,0,.28) !important;
  }

  .top-table td,
  .top-table-v2 td {
    padding: 8px 0 !important;
    border: 0 !important;
  }

  .top-table td:nth-child(1),
  .top-table-v2 td:nth-child(1) { padding-top: 0 !important; }

  .top-player-cell { width: 100% !important; min-width: 0 !important; }
  .top-player-cell b,
  .top-player-cell div { min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  .top-value,
  .top-row-status { width: 100% !important; min-width: 0 !important; justify-content: center !important; }

  /* ADMIN: компактная мобильная версия без вылета за экран */
  .admin-page,
  body.force-mobile .admin-page {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 96px 12px 36px !important;
    overflow-x: hidden !important;
  }

  .admin-layout,
  body.force-mobile .admin-layout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .admin-hero,
  .admin-dashboard,
  .admin-panel-grid,
  .admin-table-card,
  .admin-action-card,
  .admin-stat,
  .admin-pin-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .admin-hero {
    padding: 20px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  .admin-hero h1 {
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: 1.02 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .admin-hero p,
  .admin-hero .eyebrow {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .admin-badge {
    width: fit-content !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  .admin-grid,
  .admin-grid-four,
  .admin-panel-grid,
  .admin-selected-grid,
  .admin-player-profile-wide {
    grid-template-columns: 1fr !important;
  }

  .admin-search-row {
    grid-template-columns: 1fr !important;
  }

  .admin-table-wrap {
    overflow: visible !important;
  }

  .admin-table {
    min-width: 0 !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
  }

  .admin-table thead { display: none !important; }
  .admin-table tbody,
  .admin-table tr,
  .admin-table td { display: block !important; width: 100% !important; }

  .admin-table tr {
    padding: 14px !important;
    border: 1px solid rgba(126,226,60,.14) !important;
    border-radius: 18px !important;
    background: rgba(0,0,0,.24) !important;
  }

  .admin-table td {
    padding: 7px 0 !important;
    border: 0 !important;
  }

  .admin-player-cell,
  .admin-player-main,
  .admin-tags,
  .admin-request-actions {
    flex-wrap: wrap !important;
    min-width: 0 !important;
  }
}

@media (max-width: 430px) {
  .top-hero-v2 h1,
  .admin-hero h1 { font-size: 38px !important; }
  .top-hero-v2,
  .top-podium-panel,
  .top-panel-v2,
  .admin-hero,
  .admin-table-card,
  .admin-action-card { padding: 16px !important; }
}


/* ===== HOME BUTTON ALIGNMENT + LUCIDE CLOCK FIX ===== */
.soon-box,
.btn {
  line-height: 1;
}

.soon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.soon-box .clock,
.btn .btn-icon,
.btn > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.soon-box .clock svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.7;
  color: currentColor;
  filter: drop-shadow(0 0 10px rgba(126, 226, 60, .35));
}

.soon-box b,
.btn b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.btn svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.7;
  display: block;
}

.btn {
  gap: 16px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .soon-box .clock svg {
    width: 26px;
    height: 26px;
  }

  .btn svg {
    width: 25px;
    height: 25px;
  }

  .btn {
    gap: 14px;
  }
}


/* ===== FINAL MOBILE BURGER/AUTH HEADER FIX ===== */
@media (max-width: 960px) {
  .header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .burger {
    display: inline-flex !important;
    justify-self: end !important;
    margin-left: auto !important;
  }

  .view-toggle-btn,
  .auth-menu-wrap,
  .nav {
    display: none !important;
  }
}

@media (max-width: 820px) {
  .burger {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    border-radius: 15px !important;
  }

  .burger span {
    width: 30px !important;
    height: 3px !important;
  }
}


/* ===== FINAL HEADER DESKTOP CENTER + AUTH RESTORE ===== */
@media (min-width: 961px) {
  .header {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 86px !important;
    padding: 0 32px !important;
    position: fixed !important;
  }

  .header .brand {
    position: relative !important;
    z-index: 32 !important;
    flex: 0 0 auto !important;
  }

  .header .nav {
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    height: 100% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(28px, 2.6vw, 52px) !important;
    margin: 0 !important;
    z-index: 25 !important;
    white-space: nowrap !important;
  }

  .header .auth-menu-wrap {
    display: flex !important;
    position: absolute !important;
    right: 32px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 35 !important;
    justify-self: auto !important;
  }

  .header .auth-menu-wrap .register-btn {
    display: inline-flex !important;
    min-width: 190px !important;
    height: 54px !important;
  }

  .header .view-toggle-btn {
    display: inline-flex !important;
    position: absolute !important;
    right: 252px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 34 !important;
  }

  .header .burger {
    display: none !important;
  }
}

@media (min-width: 961px) and (max-width: 1400px) {
  .header {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .header .nav {
    gap: 28px !important;
  }

  .header .nav a {
    font-size: 15px !important;
  }

  .header .auth-menu-wrap {
    right: 24px !important;
  }

  .header .view-toggle-btn {
    right: 226px !important;
    min-width: 44px !important;
    width: 44px !important;
    padding: 0 !important;
  }

  .header .view-toggle-btn b {
    display: none !important;
  }

  .header .auth-menu-wrap .register-btn {
    min-width: 176px !important;
  }
}

@media (max-width: 960px) {
  .header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .auth-menu-wrap,
  .view-toggle-btn,
  .nav {
    display: none !important;
  }

  .burger {
    display: inline-flex !important;
  }
}


/* ===== SERVER PAGE FULL TECH INFO UPDATE ===== */
.server-page-full {
  position: relative;
  min-height: 100vh;
  padding: 126px 5vw 60px;
  overflow: hidden;
}

.server-page-full .rules-bg,
.server-page-full .rules-dark {
  pointer-events: none;
}

.server-shell-v2 {
  position: relative;
  z-index: 3;
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.server-hero-v2 {
  min-height: 310px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.server-hero-v2::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 226, 60, 0.24), transparent 35%),
    radial-gradient(circle at 82% 24%, rgba(255, 170, 40, 0.12), transparent 28%);
  pointer-events: none;
}

.server-hero-v2 > * {
  position: relative;
  z-index: 1;
}

.server-hero-v2 h1 {
  margin: 14px 0 16px;
  color: #8cff45;
  font-size: clamp(38px, 5.8vw, 74px);
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(126, 226, 60, 0.36);
}

.server-hero-v2 p {
  max-width: 820px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  font-weight: 700;
}

.server-ip-card {
  min-height: 210px;
  padding: 26px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(126, 226, 60, 0.35);
  background: linear-gradient(145deg, rgba(126, 226, 60, .16), rgba(0,0,0,.30));
  box-shadow: inset 0 0 35px rgba(126, 226, 60, 0.08);
}

.server-ip-card svg {
  width: 58px;
  height: 58px;
  color: #8cff45;
  filter: drop-shadow(0 0 16px rgba(126, 226, 60, .35));
}

.server-ip-card span {
  color: rgba(255,255,255,.68);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.server-ip-card b {
  color: #ffffff;
  font-size: 30px;
  text-transform: uppercase;
}

.server-section-v2 {
  padding: clamp(24px, 3vw, 34px);
}

.server-section-title {
  margin-bottom: 22px;
}

.server-section-title h2,
.worlds-head h2,
.server-note-v2 h2 {
  margin: 12px 0 10px;
  color: #8ef052;
  font-size: clamp(28px, 3.8vw, 44px);
  text-transform: uppercase;
  line-height: 1.05;
}

.server-section-title p,
.worlds-head p,
.server-note-v2 p {
  max-width: 920px;
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}

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

.server-plugin-grid article {
  min-height: 190px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 0 26px rgba(255,255,255,.025);
  transition: .22s ease;
}

.server-plugin-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 226, 60, .48);
  background: rgba(126, 226, 60, .075);
  box-shadow: 0 18px 42px rgba(0,0,0,.32), 0 0 22px rgba(126,226,60,.10);
}

.server-plugin-grid svg {
  width: 34px;
  height: 34px;
  color: #8cff45;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(126,226,60,.28));
}

.server-plugin-grid h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
}

.server-plugin-grid p {
  margin: 0;
  color: rgba(255,255,255,.70);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.server-plugin-grid-featured {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.server-plugin-grid-featured article {
  border-color: rgba(126, 226, 60, .24);
  background: linear-gradient(145deg, rgba(126,226,60,.105), rgba(0,0,0,.28));
}

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

.server-info-card {
  padding: clamp(24px, 3vw, 32px);
}

.server-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.server-card-head svg {
  width: 34px;
  height: 34px;
  color: #8cff45;
}

.server-card-head h2 {
  margin: 0;
  color: #8ef052;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px);
}

.server-clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.server-clean-list li {
  min-height: 76px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.server-clean-list li:last-child {
  border-bottom: 0;
}

.server-clean-list b {
  display: block;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
}

.server-clean-list span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.worlds-panel-v2 {
  padding: clamp(24px, 3vw, 34px);
}

.worlds-head {
  margin-bottom: 22px;
}

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

.world-card-v2 {
  min-height: 260px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 12px;
  border-radius: 20px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.10);
}

.world-card-v2.main { border-color: rgba(126,226,60,.26); }
.world-card-v2.nether { border-color: rgba(255,120,70,.24); }
.world-card-v2.end { border-color: rgba(165,115,255,.24); }

.world-card-v2 > svg {
  width: 42px;
  height: 42px;
  color: #8cff45;
  filter: drop-shadow(0 0 14px rgba(126,226,60,.26));
}

.world-card-v2 h3 {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  text-transform: uppercase;
}

.world-card-v2 p {
  margin: 0 0 8px;
  color: rgba(255,255,255,.72);
  line-height: 1.48;
  font-weight: 700;
}

.world-card-v2 div {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.world-card-v2 span {
  color: rgba(255,255,255,.58);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 900;
}

.world-card-v2 b {
  color: #8ef052;
  text-align: right;
  text-transform: uppercase;
}

.server-note-v2 {
  padding: 26px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.server-note-v2 > svg {
  width: 44px;
  height: 44px;
  color: #8cff45;
}

@media (max-width: 1180px) {
  .server-plugin-grid,
  .server-plugin-grid-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .server-info-grid-wide,
  .worlds-grid-v2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .server-page-full {
    padding: 100px 16px 38px;
  }

  .server-hero-v2 {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .server-ip-card {
    min-height: 150px;
  }

  .server-plugin-grid,
  .server-plugin-grid-featured {
    grid-template-columns: 1fr;
  }

  .server-clean-list li {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
  }

  .server-note-v2 {
    grid-template-columns: 1fr;
  }
}


/* ===== SERVER PAGE LIST ALIGNMENT / OVERFLOW FIX ===== */
.server-info-card .server-clean-list {
  width: 100%;
}

.server-info-card .server-clean-list li {
  display: grid !important;
  grid-template-columns: minmax(0, clamp(150px, 32%, 210px)) minmax(0, 1fr) !important;
  gap: clamp(14px, 2vw, 24px) !important;
  align-items: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.server-info-card .server-clean-list li b,
.server-info-card .server-clean-list li span {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  white-space: normal !important;
}

.server-info-card .server-clean-list li b {
  display: block !important;
  line-height: 1.25 !important;
}

.server-info-card .server-clean-list li span {
  display: block !important;
  line-height: 1.45 !important;
}

@media (max-width: 900px) {
  .server-info-card .server-clean-list li {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: start !important;
  }
}


/* ===== FINAL PATCH: HEADER GAP, PIN NOTICE, MODERATOR UNMUTE, 16:9 / 21:9 STABILITY ===== */
@media (min-width: 961px) {
  .header .auth-menu-wrap {
    right: 28px !important;
  }

  .header .auth-menu-wrap .register-btn {
    max-width: 220px !important;
  }

  .header .auth-action-text {
    max-width: 132px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .header .view-toggle-btn {
    right: 292px !important;
  }
}

@media (min-width: 961px) and (max-width: 1500px) {
  .header .view-toggle-btn {
    right: 270px !important;
    min-width: 48px !important;
    width: 48px !important;
    padding: 0 !important;
  }

  .header .view-toggle-btn b {
    display: none !important;
  }

  .header .auth-menu-wrap .register-btn {
    min-width: 176px !important;
    max-width: 198px !important;
  }
}

@media (min-width: 1600px) {
  .hero-content,
  .rules-content,
  .about-content,
  .server-shell-v2,
  .top-shell,
  .security-card,
  .admin-shell,
  .account-layout {
    width: min(1480px, 84vw) !important;
  }
}

@media (min-width: 2100px) {
  .hero-content,
  .rules-content,
  .about-content,
  .server-shell-v2,
  .top-shell,
  .security-card,
  .admin-shell,
  .account-layout {
    width: 1560px !important;
    max-width: 1560px !important;
  }

  .hero {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.security-pin-missing {
  padding: clamp(28px, 4vw, 46px);
  border-radius: 22px;
  border: 1px solid rgba(126, 226, 60, 0.38);
  background:
    radial-gradient(circle at top, rgba(126, 226, 60, 0.16), transparent 45%),
    rgba(5, 10, 8, 0.74);
  box-shadow:
    inset 0 0 28px rgba(126, 226, 60, 0.06),
    0 18px 45px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.security-pin-missing[hidden] {
  display: none !important;
}

.security-pin-missing-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #8ef052;
  background: rgba(126, 226, 60, 0.12);
  border: 1px solid rgba(126, 226, 60, 0.32);
}

.security-pin-missing-icon svg {
  width: 38px;
  height: 38px;
}

.security-pin-missing h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

.security-pin-missing p {
  max-width: 640px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
}

.security-pin-command {
  width: min(420px, 100%);
  margin: 0 auto 22px;
  padding: 16px 18px;
  display: grid;
  gap: 6px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(126, 226, 60, 0.24);
}

.security-pin-command span {
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.security-pin-command b {
  color: #8ef052;
  font-size: 24px;
  font-weight: 950;
}

.security-pin-ok {
  width: min(420px, 100%);
  margin: 0 auto;
}

@media (max-width: 820px) {
  .security-modal-card {
    width: min(94vw, 540px) !important;
    padding: 18px !important;
  }

  .security-pin-missing {
    padding: 24px 18px;
  }
}


/* ===== SERVER OPENING COUNTDOWN ===== */
.server-address-value,
.server-address-value.is-countdown,
.server-address-value.is-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  letter-spacing: .01em;
}

.server-address-value.is-countdown {
  color: #8ef052 !important;
}

.server-address-value.is-open {
  color: #ffffff !important;
  user-select: all;
}

.server-box .server-address-value {
  justify-content: flex-start;
  text-align: left;
}


/* ===== HOME OPENING COUNTDOWN ===== */
.opening-countdown-box {
  width: fit-content;
  min-width: 220px;
  max-width: min(90vw, 100%);
  padding-inline: 22px;
}

.opening-countdown-box b[data-server-address] {
  min-width: 0;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}

.opening-countdown-box.is-countdown,
.opening-countdown-box:has(b[data-server-address].is-countdown) {
  width: fit-content;
}

.opening-countdown-box b[data-server-address].is-countdown {
  font-size: clamp(18px, 2.1vw, 28px);
  letter-spacing: 0.02em;
}

.opening-countdown-box b[data-server-address].is-open {
  font-size: clamp(17px, 1.9vw, 26px);
  text-transform: none;
  letter-spacing: 0.01em;
}

@media (max-width: 820px) {
  .opening-countdown-box {
    width: 100%;
    max-width: 430px;
    padding: 0 18px;
  }

  .opening-countdown-box b[data-server-address].is-countdown,
  .opening-countdown-box b[data-server-address].is-open {
    font-size: 21px;
  }
}


/* ===== ADMIN FINAL HIERARCHY / CONFIRM / RESPONSIVE PATCH ===== */
.header .view-toggle-btn {
  margin-left: auto;
  margin-right: 16px;
}

.header .auth-menu-wrap {
  margin-left: 16px;
}

.admin-action-disabled {
  opacity: .82;
}

.admin-action-disabled .primary-btn:disabled,
.admin-action-form .primary-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: grayscale(.25);
  transform: none !important;
}

.admin-restriction-notice,
.admin-no-actions {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  color: #ffb0b0;
  background: rgba(255, 60, 60, .12);
  border: 1px solid rgba(255, 90, 90, .35);
  font-weight: 900;
  line-height: 1.35;
}

.admin-restriction-notice svg {
  width: 22px;
  min-width: 22px;
  height: 22px;
}

.admin-no-actions {
  justify-content: center;
  min-height: 58px;
  text-align: center;
}

.admin-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
}

.admin-confirm-modal.open {
  display: flex;
}

.admin-confirm-card {
  width: min(520px, 100%);
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  background: rgba(5, 9, 9, .96);
  border: 1px solid rgba(126, 226, 60, .35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .65),
    0 0 34px rgba(126, 226, 60, .12),
    inset 0 0 28px rgba(255,255,255,.035);
}

.admin-confirm-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #8ef052;
  background: rgba(126, 226, 60, .13);
  border: 1px solid rgba(126, 226, 60, .35);
}

.admin-confirm-icon svg {
  width: 38px;
  height: 38px;
}

.admin-confirm-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
  color: #fff;
}

.admin-confirm-card p {
  margin: 0 0 26px;
  color: rgba(255,255,255,.78);
  font-size: 19px;
  font-weight: 800;
}

.admin-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-confirm-actions button {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.admin-confirm-yes {
  background: linear-gradient(180deg, #7edc35, #3e9f19);
}

.admin-confirm-no {
  background: linear-gradient(180deg, #ff4d4d, #b71717);
}

.admin-confirm-actions button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

/* Stable desktop layout for 16:9 / 16:10 / 21:9 */
.hero-content,
.rules-content,
.about-content,
.server-shell-v2,
.top-shell,
.security-card,
.admin-shell,
.admin-dashboard,
.account-layout {
  max-width: min(1680px, calc(100vw - 64px));
}

@media (min-width: 2100px) {
  .hero-content,
  .rules-content,
  .about-content,
  .server-shell-v2,
  .top-shell,
  .admin-shell,
  .admin-dashboard,
  .account-layout {
    max-width: 1760px;
  }

  .hero {
    align-items: center;
  }
}

@media (min-width: 1600px) and (max-width: 2099px) {
  .hero-content,
  .server-shell-v2,
  .top-shell,
  .admin-shell,
  .admin-dashboard,
  .account-layout {
    max-width: 1500px;
  }
}

@media (max-width: 960px) {
  .header .view-toggle-btn,
  .header .auth-menu-wrap {
    margin-left: 0;
    margin-right: 0;
  }

  .admin-confirm-card {
    padding: 24px;
  }

  .admin-confirm-actions {
    grid-template-columns: 1fr;
  }
}


/* Mods & Datapacks layout */
.server-clean-list li{
  display:grid !important;
  grid-template-columns: 220px 3px 1fr;
  align-items:center;
  gap:16px;
}

.server-clean-list li b{
  display:block;
  margin:0;
}

.server-clean-list li::after{
  content:none;
}

.server-clean-list li b::after{
  content:"";
  position:relative;
  display:block;
}

.server-clean-list li span{
  border-left:3px solid #6eea3b;
  padding-left:16px;
  line-height:1.45;
  color:rgba(255,255,255,.78);
}

/* Fix long text overflow in mods/datapacks */
.server-clean-list li{
    grid-template-columns: 210px 4px minmax(0,1fr) !important;
}
.server-clean-list li span{
    min-width:0 !important;
    width:100% !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
    white-space:normal !important;
}
.server-clean-list li b{
    min-width:0 !important;
}


/* ===== FIX v3: SERVER MODS / DATAPACKS TEXT ALIGNMENT ===== */
/* HTML has only 2 children in each row: b + span, so the row MUST be 2 columns. */
.server-page-v2 .server-info-card .server-clean-list{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.server-page-v2 .server-info-card .server-clean-list li{
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;

  display: grid !important;
  grid-template-columns: minmax(150px, 31%) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;

  padding: 14px 16px !important;
}

.server-page-v2 .server-info-card .server-clean-list li b{
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;

  display: block !important;
  margin: 0 !important;

  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.22 !important;
}

.server-page-v2 .server-info-card .server-clean-list li span{
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;

  display: block !important;
  margin: 0 !important;
  padding-left: 16px !important;
  border-left: 3px solid #6eea3b !important;

  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.42 !important;
}

@media (max-width: 900px){
  .server-page-v2 .server-info-card .server-clean-list li{
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .server-page-v2 .server-info-card .server-clean-list li span{
    padding-left: 12px !important;
  }
}


/* ===== FOOTER SOLID FIX V2 ===== */
/* На внутренних страницах фон подвала просвечивал из-за полупрозрачного background.
   Делаем подвал полностью глухим и кладём дополнительную подложку через ::before. */
body:not(.home-page) .footer{
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: #020605 !important;
  background-color: #020605 !important;
  border-top: 1px solid rgba(126, 226, 60, 0.22) !important;
  box-shadow: 0 -18px 50px rgba(0,0,0,0.85) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body:not(.home-page) .footer::before{
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background:
    linear-gradient(180deg, #07100b 0%, #020605 100%) !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

body:not(.home-page) .footer-content{
  position: relative !important;
  z-index: 1 !important;
}




/* ===== FINAL FOOTER FIX ===== */
/* Причина: общий фон страницы/секции просвечивал через footer из-за старого rgba-фона.
   Фикс ниже принудительно делает подвал отдельным непрозрачным слоем. */
.footer.footer-solid,
body.inner-page footer.footer,
body.force-desktop.inner-page footer.footer,
body.force-mobile.inner-page footer.footer{
  position: relative !important;
  z-index: 999 !important;
  isolation: isolate !important;
  overflow: hidden !important;
  opacity: 1 !important;
  background: #020605 !important;
  background-color: #020605 !important;
  background-image: linear-gradient(180deg, #07100b 0%, #020605 100%) !important;
  border-top: 1px solid rgba(126, 226, 60, 0.22) !important;
  box-shadow: 0 -20px 55px rgba(0,0,0,.95) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.footer.footer-solid::before,
body.inner-page footer.footer::before{
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: #020605 !important;
  background-image: linear-gradient(180deg, #07100b 0%, #020605 100%) !important;
  opacity: 1 !important;
}

.footer.footer-solid .footer-content,
body.inner-page footer.footer .footer-content{
  position: relative !important;
  z-index: 2 !important;
}

