@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Vazirmatn:wght@400;500;600;700;800;900&display=swap");

:root {
  --gold: #e9bd62;
  --gold-light: #ffe3a0;
  --purple: #170e29;
  --dark: #0c0813;
  --card: #191126;
  --text: #f8f4ff;
  --muted: #a69bb7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: "Inter", "Vazirmatn", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  height: 82px;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 9, 25, 0.95);
  border-bottom: 1px solid rgba(233, 189, 98, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo,
.footer-logo {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 2px;
}

.logo span,
.footer-logo span {
  color: var(--gold);
}

.navbar nav {
  display: flex;
  gap: 30px;
}

.navbar nav a {
  font-size: 13px;
  color: var(--muted);
  transition: 0.3s;
}

.navbar nav a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language {
  color: var(--gold);
  font-weight: 800;
}

.nav-button,
.primary-button {
  background: linear-gradient(135deg, #ffe3a0, #d6a13e);
  color: #170e19;
  padding: 13px 23px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.hero {
  min-height: 620px;
  padding: 100px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at 75% 50%, #352044 0%, transparent 45%),
    linear-gradient(120deg, #100a1a, #1a1028);
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
}

.server-label {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 800;
  margin-bottom: 25px;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #53d68b;
  margin-right: 8px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--gold);
  display: block;
}

.hero p {
  color: var(--muted);
  margin-top: 25px;
  line-height: 2;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.secondary-button {
  border: 1px solid #66517b;
  padding: 13px 23px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.royal-emblem {
  width: 280px;
  height: 280px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 160px;
  font-weight: 900;
  color: var(--gold);
  box-shadow: 0 0 80px #d6a13e22;
}

.connect-section,
.about-section,
.staff-preview {
  padding: 90px 10%;
  text-align: center;
}

.section-heading span {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 4px;
  font-weight: 800;
}

.section-heading h2 {
  font-size: 32px;
  margin-top: 12px;
  font-weight: 900;
}

.server-card {
  max-width: 650px;
  margin: 40px auto 15px;
  padding: 25px;
  background: var(--card);
  border: 1px solid #44344f;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.server-card small {
  color: var(--muted);
  letter-spacing: 2px;
}

.server-card h3 {
  margin-top: 10px;
  color: var(--gold);
  font-size: 20px;
}

.copy-button {
  border: none;
  background: var(--gold);
  color: #170e19;
  padding: 14px 20px;
  border-radius: 7px;
  font-weight: 900;
  cursor: pointer;
}

.server-version {
  color: var(--muted);
  font-size: 12px;
}

.about-text {
  max-width: 700px;
  margin: 30px auto;
  color: var(--muted);
  line-height: 2.2;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.staff-card {
  background: var(--card);
  padding: 35px 20px;
  border: 1px solid #44344f;
  border-radius: 12px;
  transition: 0.3s;
}

.staff-card:hover {
  transform: translateY(-7px);
  border-color: var(--gold);
}

.staff-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto auto 20px;
  background: #392747;
  color: var(--gold);
  font-size: 27px;
  font-weight: 900;
}

.staff-card h3 {
  font-size: 17px;
}

.staff-card span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  margin-top: 10px;
}

.footer {
  padding: 35px 10%;
  background: #100a19;
  border-top: 1px solid #33243f;
  text-align: center;
}

.footer p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}

.footer-credit {
  color: var(--gold) !important;
}

[dir="rtl"] {
  font-family: "Vazirmatn", sans-serif;
}

[dir="rtl"] .server-card {
  text-align: right;
}

@media (max-width: 850px) {
  .navbar {
    height: auto;
    padding: 20px 5%;
    flex-wrap: wrap;
    gap: 20px;
  }

  .navbar nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 22px;
    padding: 8px 0;
  }

  .navbar nav a {
    white-space: nowrap;
  }

  .hero {
    padding: 80px 7%;
    text-align: center;
    justify-content: center;
  }

  .hero-decoration {
    display: none;
  }

  .hero-buttons {
    justify-content: center;
  }

  .connect-section,
  .about-section,
  .staff-preview {
    padding: 65px 6%;
  }
}

@media (max-width: 480px) {
  .server-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

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

/* ===== RoyalSMP motion, loader and scrollbar ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  overflow-x: hidden;
}

/* Gold scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #c99a43 #100a19;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: #100a19;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffe3a0, #b9822d);
  border: 2px solid #100a19;
  border-radius: 20px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #ffdf91;
}

/* Initial loading screen */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at center,
    #241633 0%,
    #100a19 58%,
    #09060e 100%
  );
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-content {
  width: min(280px, 80vw);
  text-align: center;
}
.loader-emblem {
  width: 76px;
  height: 76px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 22px;
  color: var(--gold);
  font-size: 43px;
  font-weight: 900;
  box-shadow:
    0 0 35px #e9bd6233,
    inset 0 0 20px #e9bd6218;
  animation: emblemPulse 1.5s ease-in-out infinite;
}
.loader-name {
  color: var(--text);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 3px;
}
.loader-name span {
  color: var(--gold);
}
.loader-track {
  height: 4px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 20px;
  background: #382941;
}
.loader-track span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9822d, #ffe3a0);
  animation: loaderProgress 1.25s ease-in-out infinite;
}
.loader-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}
body.is-loading {
  overflow: hidden;
}

/* Reading progress line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #a87527, #ffe3a0);
  box-shadow: 0 0 12px #e9bd6280;
  pointer-events: none;
}

/* Small interaction polish */
.primary-button,
.secondary-button,
.nav-button,
.copy-button {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
.primary-button:hover,
.nav-button:hover,
.copy-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #e9bd6230;
  filter: brightness(1.06);
}
.secondary-button:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

@keyframes loaderProgress {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(330%);
  }
}
@keyframes emblemPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 25px #e9bd6222;
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 42px #e9bd6255;
  }
}

/* ===== RoyalSMP Clean Loader ===== */

.loader-spinner {
  width: 115px !important;
  height: 115px !important;
  margin: 0 auto 22px !important;
  position: relative;
  display: grid;
  place-items: center;
}

.loader-spinner::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid rgba(233, 189, 98, 0.12);
  border-top-color: #ffe3a0;
  border-radius: 50%;
  box-shadow: 0 0 18px #e9bd6222;
  animation: royalSpin 1s linear infinite !important;
}

.loader-emblem {
  width: 76px !important;
  height: 76px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #e9bd62;
  font-size: 65px !important;
  font-weight: 900;
  text-shadow: 0 0 20px #e9bd6255;
  animation: none !important;
  transform: none !important;
}

.loader-name {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 4px;
}

.loader-caption {
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: 3px;
  opacity: 0.65;
}

@keyframes royalSpin {
  to {
    transform: rotate(360deg);
  }
}
.online-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.online-dot.is-offline {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

.server-player-count {
  color: #22c55e;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

.server-offline-text {
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}
/* Server Status */
.server-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.online-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
}

.online-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
}

.online-dot.is-offline {
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
}

.server-player-count,
.server-offline-text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.server-player-count {
  color: #22c55e;
}

.server-offline-text {
  color: #ef4444;
}

.status-page {
  min-height: 75vh;
  padding: 100px 20px;
}

.status-container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.status-eyebrow {
  color: #a78bfa;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 800;
}

.status-container h1 {
  font-size: clamp(36px, 6vw, 60px);
  margin: 18px 0;
}

.status-container > p {
  color: #aaa;
  margin-bottom: 45px;
}

.status-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 650px;
  margin: auto;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 25px;
}

.status-player-count strong {
  display: block;
  font-size: 48px;
}

.status-player-count span {
  color: #aaa;
}

.status-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 650px;
  margin: 25px auto;
}

.status-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 25px;
}

.status-info span {
  display: block;
  color: #aaa;
  margin-bottom: 12px;
}

.status-info strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .status-card {
    flex-direction: column;
  }

  .status-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Minecraft Server List Style */

.minecraft-server-list {
  max-width: 950px;
  margin: 100px auto;
  padding: 30px;
}

.minecraft-server-list h1 {
  font-size: 38px;
  margin-bottom: 10px;
}

.minecraft-subtitle {
  color: #999;
  margin-bottom: 35px;
}

.minecraft-server-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px;
  min-height: 105px;
  background: #252525;
  border: 2px solid #555;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #111;
}

.minecraft-server-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7138c8, #251044);
  border: 2px solid #999;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  text-shadow: 2px 2px #000;
}

.minecraft-server-details {
  flex: 1;
  min-width: 0;
}

.minecraft-server-name {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 7px;
}

.minecraft-server-motd {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 5px;
}

.minecraft-server-address {
  color: #777;
  font-size: 12px;
}

.minecraft-server-ping {
  min-width: 85px;
  text-align: center;
}

.minecraft-status-bars {
  display: flex;
  justify-content: center;
  gap: 3px;
  height: 22px;
  align-items: flex-end;
  margin-bottom: 8px;
}

.minecraft-status-bars span {
  width: 6px;
  height: 5px;
  background: #555;
}

.minecraft-status-bars span:nth-child(2) {
  height: 8px;
}
.minecraft-status-bars span:nth-child(3) {
  height: 12px;
}
.minecraft-status-bars span:nth-child(4) {
  height: 16px;
}
.minecraft-status-bars span:nth-child(5) {
  height: 20px;
}

.minecraft-status-bars span.active {
  background: #55dd55;
}

.minecraft-player-count {
  color: #fff;
  font-size: 14px;
  margin-bottom: 5px;
}

.minecraft-online {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #aaa;
  font-size: 12px;
}

.minecraft-server-extra {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.minecraft-server-extra > div {
  flex: 1;
  padding: 18px;
  background: #202020;
  border: 1px solid #444;
  border-radius: 4px;
}

.minecraft-server-extra span {
  display: block;
  color: #888;
  font-size: 12px;
  margin-bottom: 8px;
}

.minecraft-server-extra strong {
  color: #eee;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .minecraft-server-list {
    padding: 15px;
    margin: 50px auto;
  }

  .minecraft-server-row {
    gap: 10px;
    padding: 10px;
  }

  .minecraft-server-icon {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  .minecraft-server-name {
    font-size: 15px;
  }

  .minecraft-server-extra {
    flex-direction: column;
  }
}

/* Minecraft Server Status */

.status-page {
  width: 100%;
  min-height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  direction: rtl;
}

.minecraft-server-list {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 30px;
  text-align: right;
}

.minecraft-server-list h1 {
  font-size: 38px;
  margin-bottom: 10px;
  color: var(--text);
}

.minecraft-subtitle {
  color: var(--muted);
  margin-bottom: 35px;
}

.minecraft-server-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  min-height: 105px;
  background: var(--card);
  border: 1px solid #40334f;
  border-radius: 12px;
  direction: rtl;
}

.minecraft-server-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7138c8, #251044);
  border: 2px solid #999;
  border-radius: 8px;
  color: white;
  font-size: 38px;
  font-weight: 900;
}

.minecraft-server-details {
  flex: 1;
  min-width: 0;
}

.minecraft-server-name {
  color: white;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 7px;
}

.minecraft-server-motd {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 5px;
}

.minecraft-server-address {
  color: #888;
  font-size: 12px;
  direction: ltr;
  text-align: right;
}

.minecraft-server-ping {
  min-width: 85px;
  text-align: center;
}

.minecraft-status-bars {
  display: flex;
  justify-content: center;
  gap: 3px;
  height: 22px;
  align-items: flex-end;
  margin-bottom: 8px;
}

.minecraft-status-bars span {
  width: 6px;
  height: 5px;
  background: #555;
}

.minecraft-status-bars span:nth-child(2) {
  height: 8px;
}
.minecraft-status-bars span:nth-child(3) {
  height: 12px;
}
.minecraft-status-bars span:nth-child(4) {
  height: 16px;
}
.minecraft-status-bars span:nth-child(5) {
  height: 20px;
}

.minecraft-status-bars span.active {
  background: #35d07f;
}

.minecraft-player-count {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.minecraft-online {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.online-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.online-dot.is-offline {
  background: #ef4444;
}

.minecraft-server-extra {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.minecraft-server-extra > div {
  flex: 1;
  padding: 18px;
  background: var(--card);
  border: 1px solid #40334f;
  border-radius: 10px;
}

.minecraft-server-extra span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.minecraft-server-extra strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .minecraft-server-row {
    flex-wrap: wrap;
  }

  .minecraft-server-ping {
    width: 100%;
  }

  .minecraft-server-extra {
    flex-direction: column;
  }

  .minecraft-server-list h1 {
    font-size: 28px;
  }
}
.minecraft-server-icon {
  overflow: hidden;
}

.minecraft-server-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.minecraft-server-motd {
  text-align: center;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 600;
  direction: ltr;
}
.minecraft-server-details {
  text-align: center;
}
.extra-address {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.extra-address .copy-ip-btn {
  flex-shrink: 0;
}
.extra-address {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}
.extra-address {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-ip-btn {
  padding: 6px 12px;
  background: #302044;
  color: #e9bd62;
  border: 1px solid #665080;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}

.copy-ip-btn:hover {
  background: #493064;
}

.copy-ip-btn.copied {
  color: #35e65b;
  border-color: #35e65b;
}
.royal-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.royal-emblem img {
  width: 100%;
  height: 100%;
  max-width: 350px;
  max-height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(233, 189, 98, 0.3));
}

/* Responsive Server Status */

.minecraft-server-list {
  width: 100%;
  max-width: 950px;
  padding: 30px;
  margin: 80px auto;
}

.minecraft-server-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.minecraft-server-icon {
  flex-shrink: 0;
}

.minecraft-server-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.minecraft-server-details {
  flex: 1;
  min-width: 0;
}

.minecraft-server-motd {
  overflow-wrap: anywhere;
}

.minecraft-server-extra {
  display: flex;
  gap: 15px;
}

.minecraft-server-extra > div {
  min-width: 0;
  flex: 1;
}

.extra-address {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.extra-address strong {
  overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 768px) {
  .minecraft-server-list {
    padding: 20px;
    margin: 50px auto;
  }

  .minecraft-server-list h1 {
    font-size: 30px;
  }

  .minecraft-server-row {
    gap: 12px;
    padding: 15px;
  }

  .minecraft-server-icon {
    width: 55px;
    height: 55px;
  }

  .minecraft-server-motd {
    font-size: 15px;
    line-height: 1.8;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .status-page {
    padding: 20px 12px;
    min-height: auto;
  }

  .minecraft-server-list {
    padding: 12px;
    margin: 25px auto;
  }

  .minecraft-server-list h1 {
    font-size: 26px;
    text-align: center;
  }

  .minecraft-subtitle {
    text-align: center;
    font-size: 13px;
    margin-bottom: 22px;
  }

  .minecraft-server-row {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 12px;
  }

  .minecraft-server-icon {
    width: 55px;
    height: 55px;
  }

  .minecraft-server-details {
    text-align: center;
  }

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

  .minecraft-server-motd {
    font-size: 13px;
    line-height: 1.9;
  }

  .minecraft-server-address {
    font-size: 11px;
    justify-content: center;
  }

  .minecraft-server-ping {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #40334f;
    padding-top: 14px;
    margin-top: 5px;
  }

  .minecraft-status-bars,
  .minecraft-player-count,
  .minecraft-online {
    margin: 0;
  }

  .minecraft-player-count {
    font-size: 17px;
  }

  .minecraft-online {
    font-size: 12px;
  }

  .minecraft-server-extra {
    flex-direction: column;
    gap: 10px;
  }

  .minecraft-server-extra > div {
    width: 100%;
    padding: 15px;
  }

  .extra-address {
    justify-content: flex-start;
  }

  .copy-ip-btn {
    padding: 7px 12px;
    white-space: nowrap;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .minecraft-server-list {
    padding: 8px;
  }

  .minecraft-server-motd {
    font-size: 11px;
  }

  .minecraft-server-ping {
    gap: 9px;
  }

  .minecraft-player-count {
    font-size: 14px;
  }
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ================================
   RULES PAGE
================================ */

.rules-page {
  min-height: 100vh;
  padding-bottom: 100px;
}

.rules-hero {
  position: relative;
  padding: 110px 20px 65px;
  text-align: center;
  overflow: hidden;
}

.rules-hero-content {
  max-width: 750px;
  margin: 0 auto;
}

.rules-eyebrow {
  display: inline-block;
  color: var(--gold, #e9bd62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.rules-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  margin: 0 0 16px;
}

.rules-hero p {
  color: #a8a8b5;
  font-size: 15px;
  line-height: 2;
  margin: 0;
}

.rules-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.rules-card {
  min-width: 0;
  padding: 27px;
  background: rgba(19, 18, 27, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
}

.rules-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rules-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--gold, #e9bd62);
  background: rgba(233, 189, 98, 0.1);
  border: 1px solid rgba(233, 189, 98, 0.18);
  border-radius: 13px;
  font-size: 20px;
}

.rules-card-header h2 {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 5px;
}

.rules-card-header p {
  color: #92919e;
  font-size: 12px;
  margin: 0;
}

.rules-count {
  margin-inline-start: auto;
  color: var(--gold, #e9bd62);
  font-size: 14px;
  font-weight: 800;
  background: rgba(233, 189, 98, 0.09);
  padding: 7px 10px;
  border-radius: 8px;
}

.rules-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 23px 0;
}

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

.rules-list li {
  counter-increment: rule-counter;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  color: #dedde5;
  font-size: 13px;
  line-height: 1.9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.rules-list li:last-child {
  border-bottom: none;
}

.rule-number {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--gold, #e9bd62);
  background: rgba(233, 189, 98, 0.09);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.rule-number::before {
  content: counter(rule-counter, decimal-leading-zero);
}

.rules-report {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 20px;
  padding: 16px;
  background: rgba(30, 150, 220, 0.08);
  border: 1px solid rgba(30, 150, 220, 0.18);
  border-radius: 12px;
}

.rules-report > i {
  color: #29a9e8;
  font-size: 23px;
  margin-top: 3px;
}

.rules-report p {
  color: #c8c8d2;
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 6px;
}

.rules-report a {
  color: #29a9e8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.rules-report a:hover {
  text-decoration: underline;
}

.rules-notice {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 25px;
  padding: 22px 25px;
  background: rgba(233, 189, 98, 0.07);
  border: 1px solid rgba(233, 189, 98, 0.17);
  border-radius: 14px;
}

.rules-notice > i {
  color: var(--gold, #e9bd62);
  font-size: 22px;
  margin-top: 3px;
}

.rules-notice h3 {
  color: var(--gold, #e9bd62);
  font-size: 15px;
  margin: 0 0 8px;
}

.rules-notice p {
  color: #c4c2cc;
  font-size: 13px;
  line-height: 2;
  margin: 0;
}

/* Responsive */

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

  .rules-hero {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .rules-container {
    width: calc(100% - 24px);
  }

  .rules-card {
    padding: 19px;
  }

  .rules-card-header {
    gap: 10px;
  }

  .rules-card-header h2 {
    font-size: 18px;
  }

  .rules-card-header p {
    font-size: 10px;
  }

  .rules-list li {
    font-size: 12px;
  }

  .rules-notice {
    padding: 17px;
  }
}

/* ================================
   STAFF PAGE
================================ */

.staff-page {
  min-height: 100vh;
  padding-bottom: 100px;
}

.staff-hero {
  text-align: center;
  padding: 100px 20px 65px;
}

.staff-eyebrow {
  color: var(--gold, #e9bd62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.staff-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 900;
  margin: 18px 0 12px;
}

.staff-hero p {
  color: #a8a8b5;
  font-size: 14px;
}

.staff-container {
  width: min(1100px, calc(100% - 40px));
  margin: auto;
}

.staff-group {
  margin-bottom: 55px;
}

.staff-group-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.staff-group-heading h2 {
  color: #fff;
  font-size: 22px;
  white-space: nowrap;
}

.staff-group-heading span {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
}

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

.staff-member-card {
  text-align: center;
  padding: 35px 20px;
  background: rgba(19, 18, 27, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  transition: 0.3s ease;
}

.staff-member-card:hover {
  transform: translateY(-7px);
  border-color: rgba(233, 189, 98, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.staff-member-icon {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: rgba(233, 189, 98, 0.1);
  color: var(--gold, #e9bd62);
  font-size: 25px;
}

.staff-member-card h3 {
  color: #fff;
  font-size: 17px;
  margin: 0 0 15px;
  overflow-wrap: anywhere;
}

.staff-role {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.staff-role.owner {
  color: #f2c66d;
  background: rgba(242, 198, 109, 0.12);
}

.staff-role.developer {
  color: #55c7ff;
  background: rgba(85, 199, 255, 0.12);
}

.staff-role.helper {
  color: #63d6a1;
  background: rgba(99, 214, 161, 0.12);
}

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

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

  .staff-hero {
    padding-top: 75px;
  }
}
.staff-member-head {
  width: 85px;
  height: 85px;
  margin: 0 auto 20px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(233, 189, 98, 0.25);
}

.staff-member-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 0.3s ease;
}

.staff-member-card:hover .staff-member-head img {
  transform: scale(1.12);
}
/* PARTNERS SECTION */

.partners-group {
  margin-top: 75px;
}

.partner-subtitle {
  color: var(--gold, #e9bd62);
  font-size: 17px;
  margin: 30px 0 18px;
}

.staff-role.sponsor {
  color: #f2c66d;
  background: rgba(242, 198, 109, 0.12);
}

.staff-role.media {
  color: #c39aff;
  background: rgba(195, 154, 255, 0.12);
}

/* FOOTER HOSTING CREDIT */

.footer-hosting {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  direction: ltr;
}

.hosting-label {
  color: #9998a5;
  font-size: 12px;
  font-weight: 500;
}

.hosting-name {
  color: var(--gold, #e9bd62);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  transition: color 0.25s ease;
}

.hosting-name:hover {
  color: #fff;
}

/* ========================================
   ROYALSMP CONNECT GALLERY
======================================== */

.connect-gallery {
  width: 100%;
  max-width: 850px;
  margin: 0 auto 55px;
  position: relative;
  direction: ltr;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(233, 189, 98, 0.25);
  background: #100d18;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.gallery-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(10, 8, 16, 0.7);
  color: #fff;
  font-size: 21px;
  cursor: pointer;
  z-index: 2;
  transition: 0.25s ease;
}

.gallery-arrow:hover {
  background: var(--gold, #e9bd62);
  color: #17121d;
  border-color: var(--gold, #e9bd62);
}

.gallery-prev {
  left: 18px;
}

.gallery-next {
  right: 18px;
}

.gallery-counter {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 13px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 13px;
  z-index: 2;
}

.gallery-current {
  color: var(--gold, #e9bd62);
  font-weight: 800;
}

/* CONNECT DESCRIPTION */

.connect-description {
  max-width: 850px;
  margin: 25px auto 35px;
  color: #aaa7b5;
  font-size: 15px;
  line-height: 2.3;
  text-align: center;
  padding: 0 15px;
}

/* ABOUT DESCRIPTION */

.about-text {
  max-width: 900px;
  margin: 25px auto;
  line-height: 2.4;
  text-align: center;
}

/* MOBILE */

@media (max-width: 600px) {
  .connect-gallery {
    border-radius: 12px;
    margin-bottom: 40px;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .connect-description {
    font-size: 13px;
    line-height: 2.1;
  }
}
