/* ═══════════════════════════════════════════════
   KHMERGOLDMC CSS
   Theme: Minecraft Store / Portal red & gold theme
   ═══════════════════════════════════════════════ */

/* ── RESET & BASE ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  margin: 0;
  padding: 0;
  background-color: #dff6ff;
  color: #111;
  font-family: 'Minecrafter', 'Montserrat', sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; }

/* ── HEADER & NAVIGATION ────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

#navbar.scrolled {
  backdrop-filter: blur(22px) saturate(1.6);
  background: rgba(110, 0, 26, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.07);
}

.navbar-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 2em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1em;
  align-items: center;
}

.nav-item {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Minecrafter', sans-serif;
  font-size: 18px;
  padding: 0.5em 1em;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.45em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.25s;
}

.nav-item-icon {
  opacity: 0.7;
  font-size: 0.85em;
  transition: opacity 0.25s;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.nav-item:hover .nav-item-icon {
  opacity: 1;
}

.nav-item.active {
  color: #8b0025;
  background: linear-gradient(135deg, #ffde31 0%, #ffe866 100%);
  text-shadow: none;
  box-shadow: 0 2px 12px rgba(255, 222, 49, 0.35);
}

.nav-item.active .nav-item-icon {
  color: #8b0025;
  opacity: 1;
}

.navbar-actions {
  display: none;
  margin-left: auto;
}

/* Hamburger button */
.menu-toggle {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  transition: all 0.2s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-toggle-bar {
  background: #fff;
  border-radius: 2px;
  width: 20px;
  height: 2px;
  transition: all 0.3s;
}

.menu-toggle.active .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE DRAWER ───────────────────────────── */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1002;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background-color 0.3s;
}

.mobile-backdrop.open {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.65);
}

.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  z-index: 1003;
  background: linear-gradient(#5a0015 0%, #8b0025 30%, #a8002b 60%, #6e0019 100%);
  border-radius: 24px 0 0 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0, 0, 0.2, 1), opacity 0.22s;
  opacity: 0;
  overflow: hidden;
}

.mobile-drawer.open {
  transform: translateX(0);
  opacity: 1;
  box-shadow: -16px 0 60px rgba(0, 0, 0, 0.55);
}

.mobile-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(at 100% 0, rgba(255, 222, 49, 0.06) 0%, transparent 60%);
}

.mobile-drawer-header {
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2em 1.2em 1em 1.3em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.mobile-drawer-close {
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  transition: all 0.2s;
}

.mobile-drawer-close:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.95);
}

.mobile-nav-links {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  padding: 0.6em 0.7em;
  list-style: none;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-item {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85em 1.1em;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1em;
  transition: all 0.2s;
}

.mobile-nav-item:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.mobile-nav-item.active {
  color: #8b0025;
  background: linear-gradient(135deg, #ffde31 0%, #ffe866 100%);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(255, 222, 49, 0.25);
}

.mobile-nav-icon {
  width: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9em;
}

.mobile-nav-item.active .mobile-nav-icon {
  color: #8b0025;
}

.mobile-drawer-footer {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 0.9em 0.9em 1.2em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  width: 100%;
  padding: 0.75em 1em;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  gap: 0.75em;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-drawer-action:active {
  background: rgba(0, 0, 0, 0.42);
}

.mobile-drawer-action > i {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15em;
  width: 18px;
  text-align: center;
}

.mobile-drawer-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  text-align: left;
}

.mobile-drawer-action-text span:first-child {
  color: #fff;
  font-weight: 600;
}

.mobile-drawer-action-hint {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.82em;
}

.mobile-drawer-count {
  background: rgba(85, 239, 196, 0.15);
  border: 1px solid rgba(85, 239, 196, 0.3);
  border-radius: 20px;
  color: #55efc4;
  font-size: 0.78em;
  font-weight: 700;
  padding: 3px 9px;
  margin-left: auto;
}

.mobile-drawer-bedrock {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 12px;
  padding: 0.75em 1em;
  display: flex;
  flex-direction: column;
  gap: 0.65em;
}

.mobile-drawer-bedrock-info {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.mobile-drawer-bedrock-info > i {
  color: rgba(255, 165, 0, 0.8);
  font-size: 1.1em;
  width: 18px;
  text-align: center;
}

.mobile-drawer-bedrock-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.mobile-drawer-bedrock-title {
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
}

.mobile-drawer-bedrock-addr {
  color: rgba(255, 165, 0, 0.7);
  font-size: 0.72em;
  letter-spacing: 0.3px;
}

.mobile-drawer-bedrock-actions {
  display: flex;
  gap: 0.5em;
}

.mobile-drawer-bedrock-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.55em 0.5em;
  border-radius: 8px;
  font-size: 0.75em;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.mobile-drawer-bedrock-btn--play {
  color: rgba(255, 165, 0, 0.95);
  background: rgba(255, 165, 0, 0.15);
  border-color: rgba(255, 165, 0, 0.35);
}

.mobile-drawer-bedrock-btn--play:active {
  background: rgba(255, 165, 0, 0.28);
}

.mobile-drawer-bedrock-btn--copy {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.mobile-drawer-bedrock-btn--copy:active {
  background: rgba(255, 255, 255, 0.12);
}

/* Spacer for fixed navbar */
.px89 {
  height: 64px;
}

/* ── HERO SECTION ───────────────────────────── */
.hero {
  background: linear-gradient(160deg, #8b0025 0%, #b20030 30%, #d4003c 60%, #f14c78 100%);
  margin-top: -64px;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(at 30% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
              radial-gradient(at 70% 80%, rgba(255, 222, 49, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 5px;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='5'%3E%3Cpath d='M24 0L76 0L74 5L26 5Z' fill='%23dff6ff'/%3E%3C/svg%3E");
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: 100px 5px;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    top: 110%;
    transform: rotate(0deg);
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    opacity: 0;
    top: -10%;
    transform: rotate(720deg);
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  gap: 2.5em;
  max-width: 1170px;
  margin: 0 auto;
  padding: 4em 2em;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Player/Discord Stats Boxes */
.players-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1em 1.5em;
  display: flex;
  align-items: center;
  gap: 1.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  width: fit-content;
}

.players-box:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.players-box:first-child {
  justify-self: end;
}

.players-box:last-child {
  justify-self: start;
}

.players-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.players-box:hover .players-icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.players-online {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
}

.players-online.text-flex-end {
  align-items: flex-end;
}

.player-count-text, .player-count-text-flex {
  font-family: 'Minecrafter', sans-serif;
  font-size: 22px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.player-count-text-flex {
  flex-direction: row-reverse;
}

.player-count, .discord-count {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #8b0025;
  background: linear-gradient(135deg, #ffde31 0%, #ffe866 100%);
  padding: 0.25em 0.7em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 222, 49, 0.3);
}

.players-ip-discord {
  font-size: 1em;
  position: relative;
  display: inline-block;
  height: 18px;
}

.default-text, .hover-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.855em;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: inline-block;
}

.default-text {
  color: rgba(255, 255, 255, 0.7);
  transition: opacity 0.2s;
}

.hover-text {
  color: #ffde31;
  opacity: 0;
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.text-flex-end .players-ip-discord .hover-text {
  left: auto;
  right: 0;
}

.players-ip-discord:hover .default-text {
  opacity: 0;
}

.players-ip-discord:hover .hover-text {
  opacity: 1;
}

/* Center Logo */
.hero-logo-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.35));
  animation: 3s ease-in-out infinite alternate pulseLogo;
}

@keyframes pulseLogo {
  0% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.35));
  }
  100% {
    transform: scale(1.06) translateY(-4px);
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.4));
  }
}

/* ── CARDS SECTION ───────────────────────────── */
.team-section {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  margin: 30px 0 50px;
  width: 100%;
}

.grid-layout {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.grid-box {
  display: flex;
  gap: 1.8em;
  width: 100%;
}

.box {
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.box:hover {
  transform: scale(1.03);
}

.box.ranks {
  background: #00bdf6;
  flex: 1 1 0;
  box-shadow: 0 8px #02789c;
}

.grid-box .row {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1.8em;
}

.box.crates {
  background: #ff8604;
  height: 200px;
  box-shadow: 0 8px #a35604;
}

.box.gems {
  background: #90c43d;
  height: 200px;
  box-shadow: 0 8px #496620;
}

.card.box-perks {
  background: #a3002c;
  height: 200px;
  box-shadow: 0 8px #63011b;
  width: 100%;
  display: flex;
}

/* Card Links and content mapping */
.box-ranks-a {
  padding: 30px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ranks-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  margin-top: 80px;
}

.ranks-title, .emblem-title {
  color: #fff;
  font-family: 'Minecrafter', sans-serif;
  font-size: 46px;
  line-height: 1;
  text-shadow: 0 4px rgba(0, 0, 0, 0.45);
  letter-spacing: 1px;
}

.ranks-subtitle, .emblem-subtitle {
  color: #fff;
  font-family: 'Minecrafter', sans-serif;
  font-size: 17px;
  margin-top: 9px;
  text-shadow: 0 2px rgba(0, 0, 0, 0.45);
  letter-spacing: 1px;
}

.ranks-logo {
  max-width: 50%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.25));
  transition: transform 0.3s;
}

.box.ranks:hover .ranks-logo {
  transform: scale(1.05);
}

.emblem-link {
  width: 100%;
  height: 100%;
  padding: 16px 26px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.emblem-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.box-crates-a .emblem-title, .box-gems-a .emblem-title, .box-perks .emblem-title {
  font-size: 34px;
}

.box-crates-a .emblem-subtitle, .box-gems-a .emblem-subtitle, .box-perks .emblem-subtitle {
  font-size: 13px;
  margin-top: 7px;
}

.emblem-logo {
  max-height: 152px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.25));
  transition: transform 0.3s;
}

.emblem-link:hover .emblem-logo {
  transform: scale(1.05);
}

.box-crates-a .emblem-logo {
  max-width: 44%;
}

.box-gems-a .emblem-logo {
  max-width: 48%;
}

.box-perks .emblem-logo {
  max-width: 26%;
}

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background-color: #0d1b1e;
  color: #fff;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-box {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}

.footer-left p {
  margin: 6px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-left strong {
  color: #fff;
}

.footer-left a {
  transition: color 0.2s;
}

.text-IQ:hover {
  color: #fac400;
  text-decoration: underline;
}

.KingTayy-Text:hover {
  color: #bc0000;
  text-decoration: underline;
}

.footer-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-icon {
  background: #1a2b30;
  color: #b9d8e4;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}

.social-icon:hover {
  color: #fff;
  background: #2d3f44;
  transform: translateY(-2px);
}

/* Toast alert styling */
.copy-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(38, 155, 36, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: bottom 0.3s ease-out;
}

.copy-toast.show {
  bottom: 30px;
}

/* ── RESPONSIVE DESIGN ──────────────────────── */
@media (max-width: 1199px) and (min-width: 768px) {
  .hero-stats {
    flex-flow: wrap;
    justify-content: center;
    gap: 1.5em;
  }
  .hero-logo-center {
    flex-basis: 100%;
    order: -1;
  }
}

@media (max-width: 1008px) {
  .nav-links {
    gap: 0.8em;
  }
  .nav-item {
    font-size: 15px;
    padding: 0.5em 0.8em;
  }
  .nav-item-icon {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    display: none;
  }
  .navbar-actions {
    display: flex;
  }
  .navbar-inner {
    height: 56px;
    padding: 0 1.2em;
    justify-content: flex-end;
  }
  .px89 {
    height: 56px;
  }
  
  /* Hero */
  .hero {
    margin-top: -56px;
    padding-top: 56px;
    min-height: auto;
  }
  
  .hero-stats {
    padding: 2.5em 1.2em;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
  }
  
  .logo-img {
    max-width: 220px;
  }
  
  .hero-stats .players-box {
    display: none; /* Hidden on mobile just like the original site */
  }
  
  /* Cards layout */
  .grid-box {
    flex-direction: column;
    gap: 1.8em;
  }
  .box.ranks, .grid-box .row {
    flex: none;
  }
  .box.ranks, .box.crates, .box.gems, .card.box-perks {
    width: 100%;
    max-width: 350px;
    height: 200px;
    margin: 0 auto;
  }
  
  .box-ranks-a {
    padding: 18px;
    justify-content: center;
    gap: 18px;
  }
  
  .ranks-logo {
    max-width: 32%;
    max-height: 120px;
    order: 0;
  }
  
  .ranks-text {
    margin-top: 0;
    justify-content: center;
  }
  
  .ranks-title, .emblem-title {
    font-size: 30px;
  }
  
  .ranks-subtitle, .emblem-subtitle {
    font-size: 12px;
    margin-top: 6px;
  }
  
  .box-crates-a, .box-gems-a, .box-perks {
    padding: 18px;
    justify-content: center;
    gap: 18px;
  }
  
  .box-crates-a .emblem-logo, .box-gems-a .emblem-logo, .box-perks .emblem-logo {
    max-width: 40%;
    max-height: 120px;
  }
  
  /* Footer */
  .footer-box {
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px;
    text-align: center;
  }
  .footer-left p {
    text-align: center;
  }
  .footer-right {
    justify-content: center;
  }
}


/* =========================================================================
   SUB-PAGES STYLING (Cloned from live site)
   ========================================================================= */

.blockhero-nav-body { box-sizing:border-box;flex-direction:column;align-items:center;gap:50px;width:100%;max-width:1170px;margin:50px auto;padding:0 15px;display:flex }
.blockhero-btn { box-sizing:border-box;color:#fff;background:linear-gradient(#2a1220 0%,#1a0b14 100%);border:1px solid rgba(241,76,120,.35);border-radius:18px;flex:auto;justify-content:space-between;align-items:center;width:100%;max-width:1135px;padding:24px;font-family:"Press Start 2P",cursive;text-decoration:none;transition:transform .18s,box-shadow .2s,background .25s,border-color .2s;display:flex;position:relative;overflow:hidden;box-shadow:inset 0 1px rgba(255,255,255,.08),inset 0 0 0 1px rgba(241,76,120,.08),0 6px #8a0a2e,0 14px 26px rgba(138,10,46,.35) }
.blockhero-btn:before { content:"";pointer-events:none;background:radial-gradient(circle at 0 0,rgba(241,76,120,.28) 0%,transparent 55%),radial-gradient(circle at 100% 100%,rgba(212,0,60,.22) 0%,transparent 55%);transition:opacity .25s;position:absolute;top:0;bottom:0;left:0;right:0 }
.blockhero-btn:after { content:"";pointer-events:none;background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.12) 50%,transparent 100%);transition:transform .7s;position:absolute;top:0;bottom:0;left:0;right:0;transform:translate(-120%) }
.blockhero-btn:hover { background:linear-gradient(#341627 0%,#1f0d18 100%);border-color:rgba(241,76,120,.55);transform:translateY(-3px);box-shadow:inset 0 1px rgba(255,255,255,.12),inset 0 0 0 1px rgba(241,76,120,.18),0 9px #8a0a2e,0 18px 32px rgba(212,0,60,.4) }
.blockhero-btn:hover:after { transform:translate(120%) }
.blockhero-btn:active { transform:translateY(3px);box-shadow:inset 0 1px rgba(255,255,255,.08),0 2px #8a0a2e,0 6px 14px rgba(138,10,46,.3) }
.blockhero-btn>* { z-index:1;position:relative }
.home-wrapper { align-items:center;gap:25px;display:flex }
.page-view { box-sizing:border-box;background:#c6e3e9;border:5px solid #b1d0d6;border-radius:14px;width:1170px;max-width:100%;overflow:hidden }
.page-title { z-index:5;color:#000;align-items:center;margin-bottom:-5px;padding:28px 30px;font-family:Minecrafter,sans-serif;font-size:30px;line-height:1;display:flex;position:relative;box-shadow:0 4px 6px rgba(0,0,0,.05);background:#b1d0d6!important }
.packages { grid-template-columns:repeat(3,minmax(0,1fr));gap:max(20px,min(2.5vw,30px));padding:max(25px,min(3.5vw,40px));display:grid }
.package-panel { background:#fff;border:3px solid #b1d0d6;border-radius:15px;margin-bottom:0 }
.image-page-rank { max-width:100px;margin:0 auto }
.selling-price-rank { color:#48a94b;border-radius:7px;margin-top:-5px;font-family:Minecraftia,sans-serif;font-size:15px }
.text-buy-rank { letter-spacing:.3px;color:#fff;cursor:pointer;background:#6cc349;border-radius:10px;flex-direction:row;justify-content:center;align-items:center;gap:20px;margin-top:6px;margin-bottom:5px;padding:10px;font-family:Minecrafter,sans-serif;font-size:20px;font-weight:lighter;transition:transform .2s,background .2s,box-shadow .2s;display:flex;box-shadow:0 5px #3c8527 }
.text-buy-rank:hover { background:#5ab03a;transform:scale(1.03) }
.text-buy-rank:active { transform:scale(.98)translateY(2px);box-shadow:0 2px #3c8527 }
@media (max-width:768px) {
  .blockhero-nav-body { box-sizing:border-box;align-items:center;padding:0 15px;display:flex }
  .blockhero-btn { width:302px;display:none }
  .page-view { width:100%;margin:0 }
  .packages { grid-template-columns:repeat(1,minmax(0,1fr));padding:25px }
}
.packages-mcoins { grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:max(20px,min(2.5vw,30px));padding:max(25px,min(3.5vw,40px));display:grid }
.packages-mcoins>.box-special-width { box-sizing:border-box;width:100%;max-width:100% }
.packages-mcoins>.special-width { box-sizing:border-box;grid-column:1/-1;justify-self:center;width:max(300px,min(50%,520px));max-width:100% }
@media (max-width:768px) {
  .packages-mcoins { grid-template-columns:minmax(0,1fr);justify-items:center }
  .packages-mcoins>.box-special-width,.packages-mcoins>.special-width { grid-column:auto;width:100%;max-width:420px }
}
.packages-crates { grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:max(20px,min(2.5vw,30px));padding:max(25px,min(3.5vw,40px));display:grid }
.packages-crates>.panel-body-crates { width:100%;max-width:100% }
.packages-crates>.panel-body-crates--wide { grid-column:1/-1;justify-self:center;width:max(300px,min(50%,520px));max-width:100% }
@media (max-width:768px) {
  .packages-crates { grid-template-columns:minmax(0,1fr);justify-items:center;padding:25px }
  .packages-crates>.panel-body-crates,.packages-crates>.panel-body-crates--wide { grid-column:auto;width:100%;max-width:420px }
}
.packages-soon { justify-content:center;align-items:center;min-height:240px;padding:40px;display:flex }
.packages-soon__icon { color:#8b0025;opacity:.85;font-size:3rem }
.packages-soon__title { color:#111;letter-spacing:.5px;margin:0;font-family:Minecrafter,sans-serif;font-size:28px;font-weight:lighter }
.packages-soon__desc { color:#5a6a70;margin:0;font-family:Montserrat,sans-serif;font-size:14px;line-height:1.5 }
@media (max-width:768px) {
  .packages-soon { min-height:200px;padding:25px }
  .packages-soon__icon { font-size:2.5rem }
  .packages-soon__title { font-size:24px }
}
.modal-content { color:#fff;background:#1e1e1e;border-radius:12px;width:90%;max-width:500px;margin:80px auto;padding:30px;box-shadow:0 0 20px rgba(0,0,0,.4) }
.close,.modal-content .close { color:#555;cursor:pointer;font-size:1.2em;font-weight:700;position:absolute;top:1em;right:1.2em }
@media (max-width:768px) {
  .modal-content { width:95%;max-width:99vw;padding:20px }
}
.packages-perks { flex-wrap:wrap;justify-content:center;gap:45px;padding:40px;display:flex }
.text-view { letter-spacing:.3px;color:#fff;cursor:pointer;background:#6cc349;border-radius:10px;flex-direction:row;justify-content:center;align-items:center;gap:15px;margin-top:6px;margin-bottom:5px;padding:10px;font-family:Minecrafter,sans-serif;font-size:20px;font-weight:lighter;transition:transform .2s,background .2s,box-shadow .2s;display:flex;box-shadow:0 5px #3c8527 }
.text-view:hover { background:#5ab03a;transform:scale(1.03) }
.text-view:active { transform:scale(.98)translateY(2px);box-shadow:0 2px #3c8527 }
@media (max-width:768px) {
  .packages-perks { flex-direction:column;align-items:center;display:flex }
}
.switch-server-1 { color:#fff;background:#c6e3e9;border:5px solid #b1d0d6;border-radius:15px;padding:25px }
.packages-stacked { flex-direction:column;align-items:center;gap:40px;width:100%;max-width:1182px;display:flex }
@media (max-width:768px) {
  .gridpackage__name,.page-title { padding:22px 24px;font-size:24px }
}
.box-vote { gap:25px;display:flex }
@media (max-width:1023px) {
  .box-vote { box-sizing:border-box;flex-direction:column;align-items:stretch;width:100%;max-width:460px;margin:0 auto }
  .vote-left,.vote-right,.gridpackage__name-vote,.stackedpackage-vote { box-sizing:border-box;width:auto }
  .stackedpackage-vote { height:auto }
  .vote-button-room { grid-template-columns:repeat(1,1fr) }
}
@media (min-width:1024px) {
  .gridpackage__name-vote { width:715px }
  .vote-button-room { grid-template-columns:repeat(2,1fr) }
  .stackedpackage-vote { height:280px }
}
.vote-left { color:#fff;border-radius:15px;flex-direction:column;gap:15px;padding:25px;display:flex;background:#c6e3e9!important;border:5px solid #b1d0d6!important }
.switch-server { color:#fff;background:#4ebb52;border-bottom:4px solid #318134;border-radius:20px;flex-direction:column;align-items:center;gap:5px;padding:24px;text-decoration:none;display:flex }
.switch-server-title { font-size:28px;font-weight:lighter;list-style:none }
.switch-server h1 .button-title { text-shadow:2px 3px #318134;letter-spacing:1px;font-family:Minecrafter,sans-serif;font-size:22px;font-weight:lighter;line-height:1;display:block }
.switch-server p { color:#267429;font-size:14px }
.reward { color:#111;background:#fff;border:2px solid #b1d0d6;border-radius:12px;flex-direction:row;align-items:center;gap:12px;padding:8px 10px;font-family:"Press Start 2P",cursive;font-size:11px;display:flex }
.reward i { color:#fff;background:#1997f0;border-radius:50%;padding:8px }
.reward-box { flex-direction:column;gap:15px;display:flex }
.reward p { border-radius:7px;font-family:Minecraftia,sans-serif;font-size:13px }
.vote-note { color:#2c3e50;box-sizing:border-box;background:#b1d0d6;border-radius:7px;width:100%;max-width:300px;padding:12px;font-family:Minecraftia,sans-serif;font-size:13px }
.vote-note p { font-size:11px }
.gridpackage__name-vote { z-index:5;color:#000;background:#b1d0d6;border-top-left-radius:14px;border-top-right-radius:14px;align-items:center;margin-bottom:-5px;padding:28px;font-family:Minecrafter,sans-serif;font-size:26px;line-height:1;display:flex;position:relative }
.stackedpackage-vote { color:#fff;border-bottom-right-radius:15px;border-bottom-left-radius:15px;padding:25px;background:#c6e3e9!important;border:5px solid #b1d0d6!important }
.vote-button-room { gap:24px;display:grid }
.vote-button { color:#fff;background:#09f;flex-direction:column;align-items:center;gap:10px;padding:24px;text-decoration:none;display:flex;box-shadow:0 6px #086db3 }
.vote-button:hover { background:#0088e8 }
.vote-button h1 { letter-spacing:1px;font-size:28px;font-weight:lighter }
.vote-button p { border-radius:7px;margin-top:-5px;font-family:Minecraftia,sans-serif;font-size:13px }
.java-bedrock-download { box-sizing:border-box;flex-direction:column;gap:40px;width:1135px;max-width:100%;display:flex }
.title-download-room { box-sizing:border-box;z-index:5;color:#000;background:#b1d0d6;border-top-left-radius:14px;border-top-right-radius:14px;align-items:center;width:100%;margin-bottom:-5px;padding:28px;font-family:Minecrafter,sans-serif;font-size:26px;line-height:1;display:flex;position:relative }
.download-room { box-sizing:border-box;background:#c6e3e9;border:5px solid #b1d0d6;border-bottom-right-radius:15px;border-bottom-left-radius:15px;flex-direction:column;align-items:stretch;gap:25px;padding:25px;display:flex }
.box-download { box-sizing:border-box;background:#fff;border:none;border-radius:14px;align-items:center;gap:16px;width:100%;padding:16px 20px;transition:transform .2s,box-shadow .2s;display:flex;box-shadow:0 4px 6px rgba(0,0,0,.04) }
.box-download:hover { transform:translateY(-2px);box-shadow:0 6px 15px rgba(0,0,0,.08) }
.download-img { flex-shrink:0;width:60px;height:60px }
.download-img img { aspect-ratio:1;border-radius:10px;width:100%;height:100% }
.title-description { flex-direction:column;flex:1;gap:10px;padding-top:0;display:flex }
.title-download { margin:0;font-size:25px }
.description-download { justify-content:space-between;align-items:center;font-family:Minecraftia,sans-serif;font-size:14px;font-weight:900;display:flex }
.description-download p { color:#555;margin:0;font-size:13px }
.description-download a { color:#fff;text-shadow:1px 1px rgba(0,0,0,.2);background:linear-gradient(#71c64e,#559f36);border-radius:8px;justify-content:center;width:auto;min-width:70px;padding:6px 14px;font-family:inherit;font-weight:700;text-decoration:none;transition:transform .1s,box-shadow .1s;display:flex;box-shadow:0 4px #3c8527,0 4px 6px rgba(0,0,0,.15) }
.description-download a:active { background:linear-gradient(#559f36,#488a2c);transform:translateY(4px);box-shadow:0 0 #3c8527,0 1px 2px rgba(0,0,0,.1) }
@media (max-width:768px) {
  .java-bedrock-download { max-width:100%;padding:0 15px }
  .download-room { flex-direction:column;align-items:stretch;padding:20px 15px }
  .box-download { width:100%;min-width:unset }
}
.server-modal-overlay { z-index:1000;background-color:rgba(0,0,0,.7);justify-content:center;align-items:center;width:100%;height:100%;display:none;position:fixed;top:0;left:0 }
.modal-content { background-color:#fff;width:90%;max-width:600px;margin:0 16px;padding:25px;position:relative;box-shadow:6px 2px 15px #111 }
.modal-text { color:#000;border-bottom:1px dashed #e5e5e5;justify-content:space-between;margin-bottom:30px;padding-bottom:15px;display:flex }
.modal-text p { font-size:24px }
.server-list { flex-wrap:wrap;gap:15px;display:flex }
.server-button { letter-spacing:.3px;color:#fff;background:#6cc349;border-radius:7px;flex-direction:row;flex:150px;justify-content:center;align-items:center;gap:20px;margin-bottom:5px;padding:10px;font-family:Minecrafter,sans-serif;font-size:20px;font-weight:lighter;text-decoration:none;transition:all .3s;display:flex;box-shadow:0 5px #3c8527 }
.modal-content { background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;width:100%;animation:.3s ease-out fadeIn;position:relative;box-shadow:0 10px 30px rgba(0,0,0,.5) }
#rankPurchaseModal .modal-content,#cratesPurchaseModal .modal-content { max-width:500px;max-height:78vh;overflow-y:auto }
#thankYouModal .modal-content,#failureModal .modal-content { text-align:center;max-width:400px;max-height:78vh;padding:40px;overflow-y:auto }
.staff-link { text-decoration:none }
.package-staff { background:var(--blue1,#b1d0d6);border:none;border-radius:12px;align-items:center;padding:10px;text-decoration:none;transition:transform .2s,box-shadow .2s;display:flex;overflow:hidden;box-shadow:0 4px #92b1b5 }
.package-staff:hover { transform:translateY(-2px);box-shadow:0 6px #92b1b5 }
.package-staff.background-remove { background:0 0 }
.skin-staff { background:var(--blue2,#a7c4c8);width:110px;height:80px;box-shadow:none;border:none;border-radius:10px;justify-content:center;display:flex;overflow:hidden }
.skin-staff img { height:85px;margin-top:-2px;margin-bottom:0;transition:transform .3s;object-fit:contain }
.package-staff:hover .skin-staff img { transform:translateY(-3px) }
.box-name { justify-content:center;width:100%;padding-left:10px;font-size:20px;display:flex }
.background-name { -webkit-backdrop-filter:blur(4px);background-color:rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.1);border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,.2) }
.name-staff { color:#fff;text-shadow:1px 1px rgba(0,0,0,.8);letter-spacing:.5px;border-radius:7px;flex-direction:row;align-items:center;margin:6px 16px;font-family:Minecraftia,sans-serif;font-size:16px;line-height:1;display:flex }
#mcoinsPurchaseModal .modal-content { max-width:500px;max-height:78vh;overflow-y:auto }
#rankPurchaseModal .modal-content,#cratesPurchaseModal .modal-content,#mcoinsPurchaseModal .modal-content,#thankYouModal .modal-content,#failureModal .modal-content { border-radius:20px }
#rankPurchaseModal .modal-content,#cratesPurchaseModal .modal-content,#mcoinsPurchaseModal .modal-content { max-width:520px;max-height:86vh;overflow-x:hidden;overflow-y:auto }
.modal-content>.download-qr-btn { color:#5a0f24;background:linear-gradient(135deg,#ffde31 0%,#ffe866 100%);border:none;border-radius:12px;width:calc(100% - 36px);margin:10px 18px 6px;padding:13px;font-weight:800;transition:transform .2s,box-shadow .2s,filter .2s;box-shadow:0 8px 18px rgba(255,204,0,.28) }
.modal-content>.download-qr-btn:hover { filter:brightness(1.04);transform:translateY(-2px);box-shadow:0 12px 24px rgba(255,204,0,.36) }
.modal-content>.close-thank-you-btn { width:calc(100% - 36px);margin:0 18px 18px }
#thankYouModal .modal-content>.close-thank-you-btn,#failureModal .modal-content>.close-thank-you-btn { width:calc(100% - 56px);margin:0 28px 32px }
#thankYouModal .modal-content { background:#fff;max-width:420px;padding:0 }
#failureModal .modal-content { background:#fff;max-width:420px;padding:0 }
.modal-content>.download-qr-btn-v3 { width:calc(100% - 36px);color:var(--mzc-red-800);letter-spacing:.25px;cursor:pointer;background:linear-gradient(135deg,#fff 0%,#fff4f8 100%);border:1.5px solid rgba(241,76,120,.3);border-radius:12px;justify-content:center;align-items:center;gap:10px;margin:10px 18px 4px;padding:11px 14px;font-size:14px;font-weight:800;transition:transform .2s,background .25s,border-color .25s,box-shadow .25s;display:inline-flex;position:relative;overflow:hidden;box-shadow:inset 0 1px rgba(255,255,255,.9),0 4px 14px rgba(212,0,60,.07) }
.modal-content>.download-qr-btn-v3:before { content:"";pointer-events:none;background:linear-gradient(120deg,transparent 0%,rgba(241,76,120,.14) 50%,transparent 100%);transition:transform .6s;position:absolute;top:0;bottom:0;left:0;right:0;transform:translate(-100%) }
.modal-content>.download-qr-btn-v3:hover { border-color:var(--mzc-pink-500);background:linear-gradient(135deg,#fff4f8 0%,rgba(241,76,120,.12) 100%);transform:translateY(-1px);box-shadow:inset 0 1px rgba(255,255,255,.9),0 10px 24px rgba(241,76,120,.2) }
.modal-content>.download-qr-btn-v3:hover:before { transform:translate(100%) }
.modal-content>.download-qr-btn-v3:active { transform:translateY(0) }
.modal-content>.download-qr-btn-v3 i { color:#fff;background:var(--mzc-gradient);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;font-size:12px;display:inline-flex;box-shadow:0 3px 8px rgba(212,0,60,.26) }
#rankPurchaseModal .modal-content::-webkit-scrollbar { width:8px }
#cratesPurchaseModal .modal-content::-webkit-scrollbar { width:8px }
#mcoinsPurchaseModal .modal-content::-webkit-scrollbar { width:8px }
#rankPurchaseModal .modal-content::-webkit-scrollbar-track { background:0 0 }
#cratesPurchaseModal .modal-content::-webkit-scrollbar-track { background:0 0 }
#mcoinsPurchaseModal .modal-content::-webkit-scrollbar-track { background:0 0 }
#rankPurchaseModal .modal-content::-webkit-scrollbar-thumb { background:linear-gradient(rgba(212,0,60,.35),rgba(241,76,120,.35));border-radius:999px }
#cratesPurchaseModal .modal-content::-webkit-scrollbar-thumb { background:linear-gradient(rgba(212,0,60,.35),rgba(241,76,120,.35));border-radius:999px }
#mcoinsPurchaseModal .modal-content::-webkit-scrollbar-thumb { background:linear-gradient(rgba(212,0,60,.35),rgba(241,76,120,.35));border-radius:999px }
@media (max-width:480px) {
  #rankPurchaseModal .modal-content,#cratesPurchaseModal .modal-content,#mcoinsPurchaseModal .modal-content,#thankYouModal .modal-content,#failureModal .modal-content { width:94%;max-width:94vw;max-height:88vh;padding:0 }
  .modal-content>.download-qr-btn-v3 { width:calc(100% - 24px);margin:6px 12px 4px;padding:11px;font-size:13.5px }
  #rankPurchaseModal .modal-content>.close-thank-you-btn,#cratesPurchaseModal .modal-content>.close-thank-you-btn,#mcoinsPurchaseModal .modal-content>.close-thank-you-btn { width:calc(100% - 24px);margin:0 12px 14px }
}
#paypalPaymentModal .modal-content { border-radius:20px;width:100%;max-width:560px;max-height:90vh;overflow-x:hidden;overflow-y:auto }
#paypalPaymentModal .modal-content::-webkit-scrollbar { width:8px }
#paypalPaymentModal .modal-content::-webkit-scrollbar-track { background:0 0 }
#paypalPaymentModal .modal-content::-webkit-scrollbar-thumb { background:linear-gradient(rgba(0,48,135,.35),rgba(0,156,222,.35));border-radius:999px }
@media (max-width:480px) {
  #paypalPaymentModal .modal-content { width:94%;max-width:94vw;max-height:92vh;padding:0 }
}


/* --- HELPDESK & SHOP LAYOUT RULES --- */
.panel-body { flex-direction:column; align-items:center; gap:20px; padding:30px; display:flex; position:relative }
.img-responsive { max-width:100%; height:auto; display:block }
.btn-a { width:100% }
.packages-perks { flex-wrap:wrap; justify-content:center; gap:45px; padding:40px; display:flex }
.perks { width:300px }
@media (max-width:768px) {
  .perks { width:260px }
  .packages-perks { flex-direction:column; align-items:center; display:flex }
}


/* --- RETURN TO BROWSE BANNER STYLES --- */
.home-text-store { flex-direction:column; align-items:flex-start; gap:3px; display:flex }
.p-home-store { text-transform:uppercase; letter-spacing:.5px; font-family:Minecraftia,sans-serif; font-size:11px }
.h1-home-store { font-family: Minecrafter, sans-serif; white-space:nowrap; font-size:26px; font-weight:400; line-height:1 }


/* =========================================================================
   SUB-PAGES STYLING (Cloned from live site)
   ========================================================================= */

.blockhero-nav-body { box-sizing:border-box;flex-direction:column;align-items:center;gap:50px;width:100%;max-width:1170px;margin:50px auto;padding:0 15px;display:flex }
.blockhero-btn { box-sizing:border-box;color:#fff;background:linear-gradient(#2a1220 0%,#1a0b14 100%);border:1px solid rgba(241,76,120,.35);border-radius:18px;flex:auto;justify-content:space-between;align-items:center;width:100%;max-width:1135px;padding:24px;font-family:"Press Start 2P",cursive;text-decoration:none;transition:transform .18s,box-shadow .2s,background .25s,border-color .2s;display:flex;position:relative;overflow:hidden;box-shadow:inset 0 1px rgba(255,255,255,.08),inset 0 0 0 1px rgba(241,76,120,.08),0 6px #8a0a2e,0 14px 26px rgba(138,10,46,.35) }
.blockhero-btn:before { content:"";pointer-events:none;background:radial-gradient(circle at 0 0,rgba(241,76,120,.28) 0%,transparent 55%),radial-gradient(circle at 100% 100%,rgba(212,0,60,.22) 0%,transparent 55%);transition:opacity .25s;position:absolute;top:0;bottom:0;left:0;right:0 }
.blockhero-btn:after { content:"";pointer-events:none;background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.12) 50%,transparent 100%);transition:transform .7s;position:absolute;top:0;bottom:0;left:0;right:0;transform:translate(-120%) }
.blockhero-btn:hover { background:linear-gradient(#341627 0%,#1f0d18 100%);border-color:rgba(241,76,120,.55);transform:translateY(-3px);box-shadow:inset 0 1px rgba(255,255,255,.12),inset 0 0 0 1px rgba(241,76,120,.18),0 9px #8a0a2e,0 18px 32px rgba(212,0,60,.4) }
.blockhero-btn:hover:after { transform:translate(120%) }
.blockhero-btn:active { transform:translateY(3px);box-shadow:inset 0 1px rgba(255,255,255,.08),0 2px #8a0a2e,0 6px 14px rgba(138,10,46,.3) }
.blockhero-btn>* { z-index:1;position:relative }
.home-wrapper { align-items:center;gap:25px;display:flex }
.page-view { box-sizing:border-box;background:#c6e3e9;border:5px solid #b1d0d6;border-radius:14px;width:1170px;max-width:100%;overflow:hidden }
.page-title { z-index:5;color:#000;align-items:center;margin-bottom:-5px;padding:28px 30px;font-family:Minecrafter,sans-serif;font-size:30px;line-height:1;display:flex;position:relative;box-shadow:0 4px 6px rgba(0,0,0,.05);background:#b1d0d6!important }
.packages { grid-template-columns:repeat(3,minmax(0,1fr));gap:max(20px,min(2.5vw,30px));padding:max(25px,min(3.5vw,40px));display:grid }
.package-panel { background:#fff;border:3px solid #b1d0d6;border-radius:15px;margin-bottom:0 }
.image-page-rank { max-width:100px;margin:0 auto }
.selling-price-rank { color:#48a94b;border-radius:7px;margin-top:-5px;font-family:Minecraftia,sans-serif;font-size:15px }
.text-buy-rank { letter-spacing:.3px;color:#fff;cursor:pointer;background:#6cc349;border-radius:10px;flex-direction:row;justify-content:center;align-items:center;gap:20px;margin-top:6px;margin-bottom:5px;padding:10px;font-family:Minecrafter,sans-serif;font-size:20px;font-weight:lighter;transition:transform .2s,background .2s,box-shadow .2s;display:flex;box-shadow:0 5px #3c8527 }
.text-buy-rank:hover { background:#5ab03a;transform:scale(1.03) }
.text-buy-rank:active { transform:scale(.98)translateY(2px);box-shadow:0 2px #3c8527 }
@media (max-width:768px) {
  .blockhero-nav-body { box-sizing:border-box;align-items:center;padding:0 15px;display:flex }
  .blockhero-btn { width:302px;display:none }
  .page-view { width:100%;margin:0 }
  .packages { grid-template-columns:repeat(1,minmax(0,1fr));padding:25px }
}
.packages-mcoins { grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:max(20px,min(2.5vw,30px));padding:max(25px,min(3.5vw,40px));display:grid }
.packages-mcoins>.box-special-width { box-sizing:border-box;width:100%;max-width:100% }
.packages-mcoins>.special-width { box-sizing:border-box;grid-column:1/-1;justify-self:center;width:max(300px,min(50%,520px));max-width:100% }
@media (max-width:768px) {
  .packages-mcoins { grid-template-columns:minmax(0,1fr);justify-items:center }
  .packages-mcoins>.box-special-width,.packages-mcoins>.special-width { grid-column:auto;width:100%;max-width:420px }
}
.packages-crates { grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:max(20px,min(2.5vw,30px));padding:max(25px,min(3.5vw,40px));display:grid }
.packages-crates>.panel-body-crates { width:100%;max-width:100% }
.packages-crates>.panel-body-crates--wide { grid-column:1/-1;justify-self:center;width:max(300px,min(50%,520px));max-width:100% }
@media (max-width:768px) {
  .packages-crates { grid-template-columns:minmax(0,1fr);justify-items:center;padding:25px }
  .packages-crates>.panel-body-crates,.packages-crates>.panel-body-crates--wide { grid-column:auto;width:100%;max-width:420px }
}
.packages-soon { justify-content:center;align-items:center;min-height:240px;padding:40px;display:flex }
.packages-soon__icon { color:#8b0025;opacity:.85;font-size:3rem }
.packages-soon__title { color:#111;letter-spacing:.5px;margin:0;font-family:Minecrafter,sans-serif;font-size:28px;font-weight:lighter }
.packages-soon__desc { color:#5a6a70;margin:0;font-family:Montserrat,sans-serif;font-size:14px;line-height:1.5 }
@media (max-width:768px) {
  .packages-soon { min-height:200px;padding:25px }
  .packages-soon__icon { font-size:2.5rem }
  .packages-soon__title { font-size:24px }
}
.modal-content { color:#fff;background:#1e1e1e;border-radius:12px;width:90%;max-width:500px;margin:80px auto;padding:30px;box-shadow:0 0 20px rgba(0,0,0,.4) }
.close,.modal-content .close { color:#555;cursor:pointer;font-size:1.2em;font-weight:700;position:absolute;top:1em;right:1.2em }
@media (max-width:768px) {
  .modal-content { width:95%;max-width:99vw;padding:20px }
}
.packages-perks { flex-wrap:wrap;justify-content:center;gap:45px;padding:40px;display:flex }
.text-view { letter-spacing:.3px;color:#fff;cursor:pointer;background:#6cc349;border-radius:10px;flex-direction:row;justify-content:center;align-items:center;gap:15px;margin-top:6px;margin-bottom:5px;padding:10px;font-family:Minecrafter,sans-serif;font-size:20px;font-weight:lighter;transition:transform .2s,background .2s,box-shadow .2s;display:flex;box-shadow:0 5px #3c8527 }
.text-view:hover { background:#5ab03a;transform:scale(1.03) }
.text-view:active { transform:scale(.98)translateY(2px);box-shadow:0 2px #3c8527 }
@media (max-width:768px) {
  .packages-perks { flex-direction:column;align-items:center;display:flex }
}
.switch-server-1 { color:#fff;background:#c6e3e9;border:5px solid #b1d0d6;border-radius:15px;padding:25px }
.packages-stacked { flex-direction:column;align-items:center;gap:40px;width:100%;max-width:1182px;display:flex }
@media (max-width:768px) {
  .gridpackage__name,.page-title { padding:22px 24px;font-size:24px }
}
.box-vote { gap:25px;display:flex }
@media (max-width:1023px) {
  .box-vote { box-sizing:border-box;flex-direction:column;align-items:stretch;width:100%;max-width:460px;margin:0 auto }
  .vote-left,.vote-right,.gridpackage__name-vote,.stackedpackage-vote { box-sizing:border-box;width:auto }
  .stackedpackage-vote { height:auto }
  .vote-button-room { grid-template-columns:repeat(1,1fr) }
}
@media (min-width:1024px) {
  .gridpackage__name-vote { width:715px }
  .vote-button-room { grid-template-columns:repeat(2,1fr) }
  .stackedpackage-vote { height:280px }
}
.vote-left { color:#fff;border-radius:15px;flex-direction:column;gap:15px;padding:25px;display:flex;background:#c6e3e9!important;border:5px solid #b1d0d6!important }
.switch-server { color:#fff;background:#4ebb52;border-bottom:4px solid #318134;border-radius:20px;flex-direction:column;align-items:center;gap:5px;padding:24px;text-decoration:none;display:flex }
.switch-server-title { font-size:28px;font-weight:lighter;list-style:none }
.switch-server h1 .button-title { text-shadow:2px 3px #318134;letter-spacing:1px;font-family:Minecrafter,sans-serif;font-size:22px;font-weight:lighter;line-height:1;display:block }
.switch-server p { color:#267429;font-size:14px }
.reward { color:#111;background:#fff;border:2px solid #b1d0d6;border-radius:12px;flex-direction:row;align-items:center;gap:12px;padding:8px 10px;font-family:"Press Start 2P",cursive;font-size:11px;display:flex }
.reward i { color:#fff;background:#1997f0;border-radius:50%;padding:8px }
.reward-box { flex-direction:column;gap:15px;display:flex }
.reward p { border-radius:7px;font-family:Minecraftia,sans-serif;font-size:13px }
.vote-note { color:#2c3e50;box-sizing:border-box;background:#b1d0d6;border-radius:7px;width:100%;max-width:300px;padding:12px;font-family:Minecraftia,sans-serif;font-size:13px }
.vote-note p { font-size:11px }
.gridpackage__name-vote { z-index:5;color:#000;background:#b1d0d6;border-top-left-radius:14px;border-top-right-radius:14px;align-items:center;margin-bottom:-5px;padding:28px;font-family:Minecrafter,sans-serif;font-size:26px;line-height:1;display:flex;position:relative }
.stackedpackage-vote { color:#fff;border-bottom-right-radius:15px;border-bottom-left-radius:15px;padding:25px;background:#c6e3e9!important;border:5px solid #b1d0d6!important }
.vote-button-room { gap:24px;display:grid }
.vote-button { color:#fff;background:#09f;flex-direction:column;align-items:center;gap:10px;padding:24px;text-decoration:none;display:flex;box-shadow:0 6px #086db3 }
.vote-button:hover { background:#0088e8 }
.vote-button h1 { letter-spacing:1px;font-size:28px;font-weight:lighter }
.vote-button p { border-radius:7px;margin-top:-5px;font-family:Minecraftia,sans-serif;font-size:13px }
.java-bedrock-download { box-sizing:border-box;flex-direction:column;gap:40px;width:1135px;max-width:100%;display:flex }
.title-download-room { box-sizing:border-box;z-index:5;color:#000;background:#b1d0d6;border-top-left-radius:14px;border-top-right-radius:14px;align-items:center;width:100%;margin-bottom:-5px;padding:28px;font-family:Minecrafter,sans-serif;font-size:26px;line-height:1;display:flex;position:relative }
.download-room { box-sizing:border-box;background:#c6e3e9;border:5px solid #b1d0d6;border-bottom-right-radius:15px;border-bottom-left-radius:15px;flex-direction:column;align-items:stretch;gap:25px;padding:25px;display:flex }
.box-download { box-sizing:border-box;background:#fff;border:none;border-radius:14px;align-items:center;gap:16px;width:100%;padding:16px 20px;transition:transform .2s,box-shadow .2s;display:flex;box-shadow:0 4px 6px rgba(0,0,0,.04) }
.box-download:hover { transform:translateY(-2px);box-shadow:0 6px 15px rgba(0,0,0,.08) }
.download-img { flex-shrink:0;width:60px;height:60px }
.download-img img { aspect-ratio:1;border-radius:10px;width:100%;height:100% }
.title-description { flex-direction:column;flex:1;gap:10px;padding-top:0;display:flex }
.title-download { margin:0;font-size:25px }
.description-download { justify-content:space-between;align-items:center;font-family:Minecraftia,sans-serif;font-size:14px;font-weight:900;display:flex }
.description-download p { color:#555;margin:0;font-size:13px }
.description-download a { color:#fff;text-shadow:1px 1px rgba(0,0,0,.2);background:linear-gradient(#71c64e,#559f36);border-radius:8px;justify-content:center;width:auto;min-width:70px;padding:6px 14px;font-family:inherit;font-weight:700;text-decoration:none;transition:transform .1s,box-shadow .1s;display:flex;box-shadow:0 4px #3c8527,0 4px 6px rgba(0,0,0,.15) }
.description-download a:active { background:linear-gradient(#559f36,#488a2c);transform:translateY(4px);box-shadow:0 0 #3c8527,0 1px 2px rgba(0,0,0,.1) }
@media (max-width:768px) {
  .java-bedrock-download { max-width:100%;padding:0 15px }
  .download-room { flex-direction:column;align-items:stretch;padding:20px 15px }
  .box-download { width:100%;min-width:unset }
}
.server-modal-overlay { z-index:1000;background-color:rgba(0,0,0,.7);justify-content:center;align-items:center;width:100%;height:100%;display:none;position:fixed;top:0;left:0 }
.modal-content { background-color:#fff;width:90%;max-width:600px;margin:0 16px;padding:25px;position:relative;box-shadow:6px 2px 15px #111 }
.modal-text { color:#000;border-bottom:1px dashed #e5e5e5;justify-content:space-between;margin-bottom:30px;padding-bottom:15px;display:flex }
.modal-text p { font-size:24px }
.server-list { flex-wrap:wrap;gap:15px;display:flex }
.server-button { letter-spacing:.3px;color:#fff;background:#6cc349;border-radius:7px;flex-direction:row;flex:150px;justify-content:center;align-items:center;gap:20px;margin-bottom:5px;padding:10px;font-family:Minecrafter,sans-serif;font-size:20px;font-weight:lighter;text-decoration:none;transition:all .3s;display:flex;box-shadow:0 5px #3c8527 }
.modal-content { background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;width:100%;animation:.3s ease-out fadeIn;position:relative;box-shadow:0 10px 30px rgba(0,0,0,.5) }
#rankPurchaseModal .modal-content,#cratesPurchaseModal .modal-content { max-width:500px;max-height:78vh;overflow-y:auto }
#thankYouModal .modal-content,#failureModal .modal-content { text-align:center;max-width:400px;max-height:78vh;padding:40px;overflow-y:auto }
.staff-link { text-decoration:none }
.package-staff { background:var(--blue1,#b1d0d6);border:none;border-radius:12px;align-items:center;padding:10px;text-decoration:none;transition:transform .2s,box-shadow .2s;display:flex;overflow:hidden;box-shadow:0 4px #92b1b5 }
.package-staff:hover { transform:translateY(-2px);box-shadow:0 6px #92b1b5 }
.package-staff.background-remove { background:0 0 }
.skin-staff { background:var(--blue2,#a7c4c8);width:110px;height:80px;box-shadow:none;border:none;border-radius:10px;justify-content:center;display:flex;overflow:hidden }
.skin-staff img { height:85px;margin-top:-2px;margin-bottom:0;transition:transform .3s;object-fit:contain }
.package-staff:hover .skin-staff img { transform:translateY(-3px) }
.box-name { justify-content:center;width:100%;padding-left:10px;font-size:20px;display:flex }
.background-name { -webkit-backdrop-filter:blur(4px);background-color:rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.1);border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,.2) }
.name-staff { color:#fff;text-shadow:1px 1px rgba(0,0,0,.8);letter-spacing:.5px;border-radius:7px;flex-direction:row;align-items:center;margin:6px 16px;font-family:Minecraftia,sans-serif;font-size:16px;line-height:1;display:flex }
#mcoinsPurchaseModal .modal-content { max-width:500px;max-height:78vh;overflow-y:auto }
#rankPurchaseModal .modal-content,#cratesPurchaseModal .modal-content,#mcoinsPurchaseModal .modal-content,#thankYouModal .modal-content,#failureModal .modal-content { border-radius:20px }
#rankPurchaseModal .modal-content,#cratesPurchaseModal .modal-content,#mcoinsPurchaseModal .modal-content { max-width:520px;max-height:86vh;overflow-x:hidden;overflow-y:auto }
.modal-content>.download-qr-btn { color:#5a0f24;background:linear-gradient(135deg,#ffde31 0%,#ffe866 100%);border:none;border-radius:12px;width:calc(100% - 36px);margin:10px 18px 6px;padding:13px;font-weight:800;transition:transform .2s,box-shadow .2s,filter .2s;box-shadow:0 8px 18px rgba(255,204,0,.28) }
.modal-content>.download-qr-btn:hover { filter:brightness(1.04);transform:translateY(-2px);box-shadow:0 12px 24px rgba(255,204,0,.36) }
.modal-content>.close-thank-you-btn { width:calc(100% - 36px);margin:0 18px 18px }
#thankYouModal .modal-content>.close-thank-you-btn,#failureModal .modal-content>.close-thank-you-btn { width:calc(100% - 56px);margin:0 28px 32px }
#thankYouModal .modal-content { background:#fff;max-width:420px;padding:0 }
#failureModal .modal-content { background:#fff;max-width:420px;padding:0 }
.modal-content>.download-qr-btn-v3 { width:calc(100% - 36px);color:var(--mzc-red-800);letter-spacing:.25px;cursor:pointer;background:linear-gradient(135deg,#fff 0%,#fff4f8 100%);border:1.5px solid rgba(241,76,120,.3);border-radius:12px;justify-content:center;align-items:center;gap:10px;margin:10px 18px 4px;padding:11px 14px;font-size:14px;font-weight:800;transition:transform .2s,background .25s,border-color .25s,box-shadow .25s;display:inline-flex;position:relative;overflow:hidden;box-shadow:inset 0 1px rgba(255,255,255,.9),0 4px 14px rgba(212,0,60,.07) }
.modal-content>.download-qr-btn-v3:before { content:"";pointer-events:none;background:linear-gradient(120deg,transparent 0%,rgba(241,76,120,.14) 50%,transparent 100%);transition:transform .6s;position:absolute;top:0;bottom:0;left:0;right:0;transform:translate(-100%) }
.modal-content>.download-qr-btn-v3:hover { border-color:var(--mzc-pink-500);background:linear-gradient(135deg,#fff4f8 0%,rgba(241,76,120,.12) 100%);transform:translateY(-1px);box-shadow:inset 0 1px rgba(255,255,255,.9),0 10px 24px rgba(241,76,120,.2) }
.modal-content>.download-qr-btn-v3:hover:before { transform:translate(100%) }
.modal-content>.download-qr-btn-v3:active { transform:translateY(0) }
.modal-content>.download-qr-btn-v3 i { color:#fff;background:var(--mzc-gradient);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;font-size:12px;display:inline-flex;box-shadow:0 3px 8px rgba(212,0,60,.26) }
#rankPurchaseModal .modal-content::-webkit-scrollbar { width:8px }
#cratesPurchaseModal .modal-content::-webkit-scrollbar { width:8px }
#mcoinsPurchaseModal .modal-content::-webkit-scrollbar { width:8px }
#rankPurchaseModal .modal-content::-webkit-scrollbar-track { background:0 0 }
#cratesPurchaseModal .modal-content::-webkit-scrollbar-track { background:0 0 }
#mcoinsPurchaseModal .modal-content::-webkit-scrollbar-track { background:0 0 }
#rankPurchaseModal .modal-content::-webkit-scrollbar-thumb { background:linear-gradient(rgba(212,0,60,.35),rgba(241,76,120,.35));border-radius:999px }
#cratesPurchaseModal .modal-content::-webkit-scrollbar-thumb { background:linear-gradient(rgba(212,0,60,.35),rgba(241,76,120,.35));border-radius:999px }
#mcoinsPurchaseModal .modal-content::-webkit-scrollbar-thumb { background:linear-gradient(rgba(212,0,60,.35),rgba(241,76,120,.35));border-radius:999px }
@media (max-width:480px) {
  #rankPurchaseModal .modal-content,#cratesPurchaseModal .modal-content,#mcoinsPurchaseModal .modal-content,#thankYouModal .modal-content,#failureModal .modal-content { width:94%;max-width:94vw;max-height:88vh;padding:0 }
  .modal-content>.download-qr-btn-v3 { width:calc(100% - 24px);margin:6px 12px 4px;padding:11px;font-size:13.5px }
  #rankPurchaseModal .modal-content>.close-thank-you-btn,#cratesPurchaseModal .modal-content>.close-thank-you-btn,#mcoinsPurchaseModal .modal-content>.close-thank-you-btn { width:calc(100% - 24px);margin:0 12px 14px }
}
#paypalPaymentModal .modal-content { border-radius:20px;width:100%;max-width:560px;max-height:90vh;overflow-x:hidden;overflow-y:auto }
#paypalPaymentModal .modal-content::-webkit-scrollbar { width:8px }
#paypalPaymentModal .modal-content::-webkit-scrollbar-track { background:0 0 }
#paypalPaymentModal .modal-content::-webkit-scrollbar-thumb { background:linear-gradient(rgba(0,48,135,.35),rgba(0,156,222,.35));border-radius:999px }
@media (max-width:480px) {
  #paypalPaymentModal .modal-content { width:94%;max-width:94vw;max-height:92vh;padding:0 }
}


/* --- HELPDESK & SHOP LAYOUT RULES --- */
.panel-body { flex-direction:column; align-items:center; gap:20px; padding:30px; display:flex; position:relative }
.img-responsive { max-width:100%; height:auto; display:block }
.btn-a { width:100% }
.packages-perks { flex-wrap:wrap; justify-content:center; gap:45px; padding:40px; display:flex }
.perks { width:300px }
@media (max-width:768px) {
  .perks { width:260px }
  .packages-perks { flex-direction:column; align-items:center; display:flex }
}


/* --- RETURN TO BROWSE BANNER STYLES --- */
.home-text-store { flex-direction:column; align-items:flex-start; gap:3px; display:flex }
.p-home-store { text-transform:uppercase; letter-spacing:.5px; font-family:Minecraftia,sans-serif; font-size:11px }
.h1-home-store { font-family: Minecrafter, sans-serif; white-space:nowrap; font-size:26px; font-weight:400; line-height:1 }
.background-home-icon-wrapper { color:#fff; background:linear-gradient(135deg,#f14c78 0%,#d4003c 100%); border-radius:12px; justify-content:center; align-items:center; width:70px; height:70px; display:flex; box-shadow:inset 0 1px rgba(255,255,255,.25),0 4px 12px rgba(212,0,60,.4) }
.home-icon-wrapper { font-size:30px }


/* --- SPA TRANSITION RULES --- */
#page-content {
  transition: opacity 0.22s ease-in-out, transform 0.22s ease-in-out;
  opacity: 1;
  transform: translateY(0);
}
#page-content.fade-out {
  opacity: 0;
  transform: translateY(12px);
}


/* =========================================================================
   PURCHASE MODAL STYLES (KHQR Checkout Flow)
   ========================================================================= */

.purchase-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(13, 27, 30, 0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.purchase-modal-overlay.open {
  display: flex;
  opacity: 1;
}
.purchase-modal-content {
  background-color: #ffffff;
  border: 1px solid rgba(139, 0, 37, 0.08);
  border-radius: 24px;
  width: 90%;
  max-width: 490px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  animation: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) modalPop;
}
@keyframes modalPop {
  from { transform: scale(0.92) translateY(15px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.purchase-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(139, 0, 37, 0.1);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.purchase-modal-logo {
  height: 42px;
  width: auto;
}
.purchase-modal-close {
  background: rgba(139, 0, 37, 0.05);
  border: 1px solid rgba(139, 0, 37, 0.1);
  color: #8b0025;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}
.purchase-modal-close:hover {
  background: #8b0025;
  color: #fff;
  transform: rotate(90deg);
}
.form-section {
  position: relative;
  border: 1.5px solid rgba(139, 0, 37, 0.08);
  border-radius: 16px;
  padding: 24px 20px 20px;
  background-color: #fffcfd;
  margin-top: 24px;
  margin-bottom: 10px;
}
.form-section-title {
  position: absolute;
  top: -12px;
  left: 18px;
  background: #ffffff;
  padding: 0 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #8b0025;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-section-title i {
  font-size: 0.95em;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #3b4d52;
  text-align: left;
}
.form-label em {
  font-weight: 500;
  color: #7b8d92;
  font-style: normal;
}
.form-label .required {
  color: #d4003c;
}
.form-input, .form-select {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid rgba(139, 0, 37, 0.12);
  border-radius: 12px;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s;
  outline: none;
  box-sizing: border-box;
}
.form-input:focus, .form-select:focus {
  border-color: #8b0025;
  box-shadow: 0 0 0 3px rgba(139, 0, 37, 0.12);
  background: #fff;
}
.form-input::placeholder {
  color: #a3b5b8;
  font-weight: 500;
}
.promo-group {
  display: flex;
  gap: 10px;
  width: 100%;
}
.promo-apply-btn {
  background: rgba(139, 0, 37, 0.06);
  border: 1.5px solid rgba(139, 0, 37, 0.12);
  color: #8b0025;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.promo-apply-btn:hover {
  background: #8b0025;
  color: #fff;
  border-color: #8b0025;
}
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-method-card {
  border: 1.5px solid rgba(139, 0, 37, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s;
}
.payment-method-card.active {
  border-color: #8b0025;
  background-color: rgba(139, 0, 37, 0.03);
  box-shadow: 0 2px 8px rgba(139, 0, 37, 0.06);
}
.payment-icon {
  color: #8b0025;
  font-size: 18px;
  display: flex;
  align-items: center;
}
.payment-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  flex: 1;
  text-align: left;
}
.payment-radio-circle {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(139, 0, 37, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.payment-method-card.active .payment-radio-circle {
  border-color: #8b0025;
}
.payment-radio-inner {
  width: 8px;
  height: 8px;
  background-color: transparent;
  border-radius: 50%;
  transition: all 0.2s;
}
.payment-method-card.active .payment-radio-inner {
  background-color: #8b0025;
}
.total-box {
  background: #ffeef2;
  border: 1.5px solid rgba(241, 76, 120, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.total-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #8b0025;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.total-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #d4003c;
}
.submit-purchase-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #8b0025 0%, #b20030 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: 'Minecrafter', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(139, 0, 37, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.submit-purchase-btn:hover {
  background: linear-gradient(135deg, #a7002b 0%, #d4003c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 0, 60, 0.35);
}
.submit-purchase-btn:active {
  transform: translateY(0);
}

/* Step 2: Confirm summary styles */
.confirm-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.confirm-icon-badge {
  background: rgba(139, 0, 37, 0.05);
  border: 2px solid rgba(139, 0, 37, 0.15);
  color: #8b0025;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.confirm-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}
.confirm-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #5a6a70;
  margin-bottom: 24px;
  font-weight: 500;
}
.confirm-summary-table {
  width: 100%;
  border: 1.5px dashed rgba(139, 0, 37, 0.15);
  border-radius: 16px;
  padding: 16px 20px;
  background: #fffcfd;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}
.confirm-cell-label {
  font-weight: 700;
  color: #5a6a70;
  display: flex;
  align-items: center;
  gap: 8px;
}
.confirm-cell-label i {
  color: #8b0025;
  width: 16px;
  text-align: center;
}
.confirm-cell-value {
  font-weight: 700;
  color: #111;
  text-align: right;
  word-break: break-all;
}
.confirm-cell-value.payment-badge {
  background: #ffeef2;
  border: 1px solid rgba(241, 76, 120, 0.25);
  color: #d4003c;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.total-box-confirm {
  background: #ffeef2;
  border-radius: 14px;
  width: 100%;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-sizing: border-box;
}
.total-label-confirm {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #8b0025;
}
.total-value-confirm {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #d4003c;
}
.confirm-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}
.confirm-btn-back {
  flex: 1;
  height: 46px;
  background: #f0ede8;
  border: 1px solid #e1ded9;
  border-radius: 12px;
  color: #5a4d45;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.confirm-btn-back:hover {
  background: #e2dfda;
}
.confirm-btn-pay {
  flex: 1.5;
  height: 46px;
  background: #d4003c;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(212, 0, 60, 0.25);
}
.confirm-btn-pay:hover {
  background: #b20030;
  box-shadow: 0 6px 16px rgba(212, 0, 60, 0.35);
}

/* Step 3: Scan to Pay styles */
.pay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pay-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
}
.khqr-card-container {
  background: #fff;
  border: 1.5px solid rgba(139, 0, 37, 0.12);
  border-radius: 20px;
  width: 250px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}
.khqr-header {
  background: #d4003c;
  padding: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
}
.khqr-logo-text {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.khqr-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.khqr-merchant {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #5a6a70;
  margin: 0;
}
.khqr-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #111;
}
.khqr-qr-frame {
  position: relative;
  background: #f9f9f9;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 8px;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.khqr-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.khqr-qr-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}
.pay-waiting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f7f8;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 10px 16px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #5a6a70;
  margin-bottom: 24px;
}
.pay-waiting-text {
  font-weight: 700;
}
.pay-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(139, 0, 37, 0.15);
  border-top-color: #8b0025;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-sizing: border-box;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.pay-countdown {
  color: #d4003c;
  font-variant-numeric: tabular-nums;
}
.pay-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.pay-btn-download {
  width: 100%;
  height: 44px;
  background: #fff;
  border: 1.5px solid rgba(212, 0, 60, 0.3);
  border-radius: 12px;
  color: #d4003c;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pay-btn-download:hover {
  background: rgba(212, 0, 60, 0.04);
}
.pay-btn-close {
  width: 100%;
  height: 44px;
  background: #d4003c;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.pay-btn-close:hover {
  background: #b20030;
}


/* ==========================================================================
   PERKS PAGE CUSTOM STYLES
   ========================================================================== */
.packages-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: max(20px, min(2.5vw, 30px));
  padding: max(25px, min(3.5vw, 40px));
}

.package-panel.perks {
  background: #fff;
  border: 3px solid #b1d0d6;
  border-radius: 15px;
  width: 100%;
  box-sizing: border-box;
}

.box-text-smp {
  font-family: 'Minecraftia', Arial, sans-serif !important;
  font-size: 13px;
  text-align: left;
  width: 100%;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7fbfc;
  border: 2px solid #e0eff1;
  border-radius: 10px;
  padding: 15px;
}

.text-perks-eco {
  width: 100%;
  min-height: 220px;
  height: auto;
  margin-bottom: 10px;
}

.text-perks-eco p {
  margin: 6px 0;
  color: #333;
  line-height: 1.4;
  font-weight: normal !important;
  text-transform: none !important;
  font-size: 13px;
}

.img-perks-smp {
  border: 3px solid rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 290px;
  height: auto;
  margin-top: 15px;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
  border-radius: 6px;
}

@media (max-width: 768px) {
  .packages-perks {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    padding: 20px 15px;
  }
  .package-panel.perks {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}
