/* =========================
   1. FONT & TYPOGRAPHY
   ========================= */
@import url("https://fonts.cdnfonts.com/css/minecrafter");

h1 {
  font-family: "Minecrafter", sans-serif;
  margin: 0;
}
p {
  margin: 0;
  margin-block-end: 0;
}
body {
  margin: 0;
  font-family: "Minecrafter", sans-serif;
  background-color: #dff6ff;
  color: #111;
}

:root {
  --bg-primary: #f4f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9ecef;
  --border-color: #dee2e6;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --accent-pink: #e84393;
  --accent-green: #55efc4;
  --accent-green-dark: #00b894;
  --error-red: #ff7675;
}

img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.logo {
  font-size: 2.5em;
  color: yellow;
}

.highlight {
  color: red;
}

.px89 {
  background: #b20030;
  height: 89px;
}

/* =========================
      2. LAYOUT & GRID
      ========================= */
.hero {
  background: linear-gradient(to bottom, #b20030, #f14c78);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-image: linear-gradient(to right, #e8fdff 50%, transparent 50%);
  background-size: 100px 100%;
  background-repeat: repeat-x;
  z-index: 1;
}
.hero-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  padding: 3em 0 4em;
  flex-wrap: wrap;
}
.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5em;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0 auto;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  gap: 3em;
  padding: 5em 0 5em;
  max-width: 100%;
  margin: 0 auto;
}
.right-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.grid-layout {
  gap: 1.8em;
  display: flex;
  flex-direction: column;
}
.row {
  gap: 1.8em;
  display: flex;
  flex-direction: column;
}
.container {
  display: grid;
  justify-content: center;
}
.centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.content-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.content-wrapper {
  display: flex;
  align-items: flex-end;
}
.section-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.section-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  font-family: "Minecraft", sans-serif;
  font-size: 24px;
  border-radius: 20px;
  box-shadow: 0 8px #ccc;
  transition: transform 0.2s ease;
}
.viewranks-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 2em;
}

/* =========================
      3. NAVBAR
      ========================= */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1em 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5em;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  position: absolute;
}
.navbar {
  position: relative;
  top: 0;
  left: 0;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  padding: 1em;
  background: transparent;
  z-index: 1000;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  padding: 14px 0;
  background: #b20030;
  z-index: 1000;
}
.nav-logo {
  color: white;
  font-family: "Press Start 2P", cursive;
  font-size: 0.8em;
}
.menu-toggle {
  display: none;
  font-size: 1.5em;
  color: white;
  cursor: pointer;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5em;
  font-size: 19px;
  font-weight: lighter;
  flex-direction: row;
  align-items: center;
}
.nav-links li {
  display: inline;
}
.active-text {
  font-size: 23px;
  font-weight: lighter;
}
.nav-item {
  text-shadow: 2px 2px 0 #7f1731;
  color: white;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 12px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.nav-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.active {
  font-size: 23px;
  font-weight: lighter;
  border-radius: 50px;
}
.nav-item.active {
  text-shadow: none;
  background: yellow;
  color: #a3002c;
  transform: scale(1.1);
}
.nav-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -80px;
  margin-bottom: 20px;
}

/* =========================
      4. HERO & PROMO
      ========================= */
.logo-img {
  display: block;
  margin: 0 auto;
  max-width: 350px;
  height: auto;
  animation: pulseLogo 2s ease-in-out infinite alternate;
}
@keyframes pulseLogo {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}
.promo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.crate-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1em;
  border-radius: 10px;
  margin: 50px 0;
  align-items: center;
  justify-content: space-between;
  background: #d4ecf5;
  border-radius: 20px;
  padding: 2em 3em;
  max-width: 1200px;
  box-shadow: 0 8px 0 #c1dbe6;
  gap: 2em;
}
.crate-banner img {
  width: 120px;
  height: auto;
}
.crate-icon {
  width: 200px;
  height: auto;
  margin-right: 1em;
}
.image-wrapper {
  background-color: transparent;
  border-radius: 16px;
  padding: 1em;
  display: inline-block;
}
.crate-text {
  flex-grow: 1;
}
.crate-text p {
  font-family: "Minecrafter", sans-serif;
  font-size: 0.75em;
}
.crate-title {
  font-size: 45px;
  color: black;
  letter-spacing: 1px;
  font-weight: lighter;
}
.crate-subtitle {
  font-family: "Press Start 2P", cursive;
  font-size: 0.7em;
  color: #5d707a;
  text-align: start;
}
.crate-timer {
  gap: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: "Press Start 2P", cursive;
}
.timer-box {
  display: flex;
  text-align: center;
  align-items: center;
  flex-direction: column;
}
.timer-digit {
  background: transparent;
  font-weight: bold;
  color: black;
  text-shadow: 1px 1px #000;
  border-radius: 3px;
  display: inline-block;
}
.crate-timer small {
  display: block;
  font-size: 0.75em;
  margin-top: 0.3em;
  color: #5d707a;
  font-family: "Minecrafter", sans-serif;
}
.crate-timer span {
  display: inline-block;
  margin: 0 0.3em;
}
.timer-separator {
  font-family: "Press Start 2P", cursive;
  font-size: 1;
}
.claim-now {
  background-color: #ff4c4c;
  color: white;
  font-family: "Press Start 2P", cursive;
  font-size: 0.6em;
  padding: 0.5em 0.8em;
  border-radius: 6px;
  margin-top: 0.5em;
  display: inline-block;
}
.claim-button.disabled {
  background-color: gray;
  cursor: not-allowed;
  pointer-events: none;
}
.claim-button {
  display: inline-block;
  margin-left: 1em;
  margin-top: 1em;
  padding: 0.6em 1.4em;
  font-family: "Press Start 2P", cursive;
  font-size: 0.65em;
  background-color: #ff4c4c;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.claim-button:hover {
  background-color: #e03b3b;
  transform: scale(1.05);
}

/* =========================
      5. BOXES, STORE, TEAM
      ========================= */
.team-section {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  margin: 20px 0 50px 0;
}

.box {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px;
  transition: transform 0.3s ease;
}
.box:hover {
  transform: scale(1.03);
}
.box .text {
  color: white;
  font-family: "Minecraftia", sans-serif;
}
.box .text h3 {
  font-size: 36px;
  margin: 0;
}
.box .text p {
  font-size: 14px;
  margin: 5px 0 0;
}
.box.ranks {
  width: 585px;
  background: #00bdf6;
  grid-row: span 2;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: rgb(2, 120, 156) 0px 8px 0px;
}
.box.ranks .text {
  position: relative;
  z-index: 1;
}
.box.ranks:hover .full-box-image {
  transform: scale(1.05);
}
.box.crates {
  background: #ff8604;
  box-shadow: 0 8px 0#a35604;
  width: 93%;
  height: 50%;
  position: relative;
}
.box.gems {
  background: #90c43d;
  justify-content: space-between;
  box-shadow: 0 8px 0#496620;
  width: 93%;
  height: 50%;
  position: relative;
}

.card {
  box-shadow: rgb(99, 1, 27) 0px 8px 0px;
  background: rgb(163, 0, 44);
  padding: 24px;
}

.box.crates,
.box.gems {
  width: 100%;
  max-width: 600px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.box-ranks-a {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
}
.box-crates-a {
  height: 80%;
  padding: 20px;
  display: flex;
  align-items: center;
}
.box-gems-a {
  height: 100%;
}
.full-box-image {
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  transition: transform 0.3s ease;
  z-index: 0;
  box-shadow: #02789c;
}
.box.crates img.full-box-image,
.box.gems img.full-box-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.crates-img,
.gems-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.box.gems img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.text h3 {
  font-size: 32px;
  margin: 0;
}
.text p {
  font-size: 14px;
  margin-top: 10px;
}
.text {
  position: absolute;
  bottom: 20px;
  left: 0;
  padding-left: 20px;
  text-align: left;
}
.box.viewranks {
  background: #a3002c;
  box-shadow: 0 8px 0 #63011b;
  height: auto;
  min-height: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex: 0 0 100%;
  text-align: center;
  border-radius: 20px;
  grid-column: span 2;
}
.box.viewranks:hover {
  transform: scale(1.05);
}
.box.viewranks img.full-box-image {
  width: 50%;
  object-fit: cover;
  border-radius: 20px;
}
.viewranks-img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.viewranks-text {
  font-family: "Press Start 2P", cursive;
  font-size: 18px;
  color: white;
}
.a-text {
  width: 100%;
  height: 100%;
}

/* =========================
      Div server IP
      ========================= */

.all-server-ip {
  width: 82%;
  border-radius: 20px;
  font-size: 25px;
  font-weight: 700;
  padding: 24px;
  font-family: "Minecrafter", sans-serif;
  background-color: #c1dbe6;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

.server-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-server-ip {
  font-size: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000000;
  /* letter-spacing: 2px; */
  font-weight: lighter;
}

.box-ip {
  gap: 25px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.server-java-bedrock {
  gap: 10px;
  display: flex;
  background: #ffffff;
  border: 3px solid rgba(0, 0, 0, 0.2);
  /* box-shadow: rgb(99, 1, 27) 0px 8px 0px; */
  width: 525px;
  flex-direction: column;
  font-size: 190px;
  align-items: center;
  border-radius: 20px;
  padding: 20px;
}

.java-bedrock i {
  font-size: 70px;
}

.text-ip {
  font-size: 23px;
  /* text-shadow: 2px 2px 0 #7f1731; */
  letter-spacing: 2px;
  font-weight: lighter;
  color: #000000;
}

.ip {
  gap: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 20px;
  font-family: "Minecrafter", sans-serif;
  letter-spacing: 0.3px;
  font-weight: lighter;
  color: #ffffff;
  align-items: center;
  border-radius: 10px;
  margin-top: 6px;
  margin-bottom: 5px;
  background: #6cc349;
  padding: 10px;
  width: 95%;
  box-shadow: 0 5px 0 #3c8527;
}

@media (max-width: 768px) {
  .all-server-ip {
    margin: 0 auto;
    max-width: 350px;
    padding: 0;
    width: 100%;
  }
  .server-box {
    gap: 0;
  }
  .text-server-ip {
    font-size: 25px;
    padding: 20px 20px 13px 20px;
  }
  .box-ip {
    flex-direction: column;
    padding: 0 20px 18px;
    gap: 20px;
  }
  .server-java-bedrock {
    width: 86%;
    font-size: 90px;
  }
  .ip {
    font-size: 15px;
    width: 90%;
  }

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

  .crates-box {
    width: 94%;
  }

  .px89 {
    display: none;
  }
}

/* =========================
      6. STORE GRID
      ========================= */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  padding: 2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  padding: 2em;
  max-width: 1200px;
  margin: 0 auto;
}
.store-item {
  padding: 2em 1em;
  border-radius: 10px;
  font-size: 1.2em;
  color: white;
  transition: transform 0.3s ease, background 0.3s ease;
  padding: 2em 1em;
  border-radius: 20px;
  font-size: 1.2em;
  color: white;
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}
.store-item img {
  width: 100px;
  height: auto;
  margin-bottom: 1em;
}
.store-item:hover {
  transform: scale(1.05);
  background: #222 !important;
}
.store-grid-custom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "banner  banner"
    "ranks   crates"
    ".       gems"
    "giftcards giftcards";
  gap: 1em;
  padding: 2em;
  max-width: 800px;
  margin: 0 auto;
}
.gems {
  background: #8dc63f;
}

/* =========================
      7. PLAYER/DISCORD STATS
      ========================= */
.players-box {
  margin: 0 auto;
  display: flex;
  gap: 1em;
  align-items: center;
  cursor: pointer;
  color: #ffffff;
}
.players-info {
  display: flex;
  font-family: "Montserrat", sans-serif;
  flex-direction: column;
  text-align: right;
}
.players-online {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.player-count {
  font-size: 17px;
  letter-spacing: 1px;
  font-weight: 400;
  background: #ffde31;
  color: #b30130;
  padding: 5px 13px;
  border-radius: 6px;
  background-color: #ffe400;
  color: #a3002c;
  padding: 0.25em 0.6em;
  border-radius: 6px;
  font-size: 0.75em;
}
.player-count-text,
.player-count-text-flex {
  font-family: "Minecrafter", sans-serif;
  font-weight: lighter;
  font-size: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-count-text-flex {
  flex-direction: row-reverse;
}
.text-flex-end {
  display: flex;
  align-items: flex-end;
}
.players-ip-discord {
  font-size: 1.1em;
  position: relative;
  display: inline-block;
}
.default-text,
.hover-text {
  display: inline-block;
}
.default-text {
  transition: opacity 0.2s ease;
}
.hover-text {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.players-ip-discord:hover .default-text {
  opacity: 0;
}
.players-ip-discord:hover .hover-text {
  opacity: 1;
}
.players-icon {
  font-size: 32px;
  color: white;
  width: 80px;
  height: 80px;
  display: flex;
  background: #00000038;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border: 2px solid #ff386d;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
}
.play-button-img {
  width: 50px;
  height: auto;
  margin-left: 12px;
  vertical-align: middle;
}
.circle-button {
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  flex-shrink: 0;
}
.stat-content {
  text-align: left;
}
.play-title {
  font-family: "Press Start 2P", cursive;
  color: white;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.play-now-text {
  font-size: 0.75em;
  line-height: 1;
}
.copy-ip {
  font-size: 0.7em;
  line-height: 1;
  margin-left: 0.4em;
}
.stair-border {
  background: repeating-linear-gradient(
    to right,
    #e6fbff 0px,
    #e6fbff 40px,
    transparent 40px,
    transparent 60px
  );
  height: 20px;
  width: 100%;
}
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85em;
  line-height: 1.6;
}
.stat-title,
.stat-sub {
  font-family: "Press Start 2P", cursive;
  font-size: 0.85em;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}
.stat-title.red {
  color: #f14c4c;
}
.icon-circle {
  background-color: #f14c4c;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-top: 0.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2em;
}
.discord-box {
  display: flex;
  align-items: start;
  gap: 1em;
  color: white;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  color: white;
  text-align: center;
}
.discord-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
}
.discord-users {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85em;
  font-weight: 500;
}
.discord-link {
  font-family: "Press Start 2P", cursive;
  font-size: 0.75em;
  text-decoration: none;
  position: relative;
  color: white;
  margin-right: 130px;
}
.discord-icon {
  width: 70px;
  height: 70px;
  transform: scale(1.2);
  transform-origin: center;
}

/* =========================
      8. FOOTER & SOCIAL
      ========================= */
.footer {
  background-color: #0d1b1e;
  color: #ffffff;
}
.footer-box {
  padding: 60px 0;
  display: flex;
  justify-content: space-around;
}
.footer-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 60px;
  box-sizing: border-box;
}
.footer-left {
  font-family: system-ui;
  font-weight: 400;
  font-style: normal;
}
.footer-left p {
  margin: 4px 0;
  font-size: 15px;
  text-align: left;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-icon {
  width: 50px;
  height: 50px;
  background: #1a2b30;
  color: #b9d8e4;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease;
  text-decoration: none;
}
.social-icon:hover {
  background: #2d3f44;
  color: white;
}
.social-icon img {
  width: 32px;
  height: 32px;
  background-color: #1a2b30;
  padding: 10px;
  border-radius: 10px;
  transition: 0.3s ease;
}
.social-icon img:hover {
  background-color: #2d3f44;
  filter: brightness(1.2);
}
.social-icon i {
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
a.social-icon {
  text-decoration: none;
}
.text-IQ {
  color: #ffffff;
  text-decoration: none;
}
.text-IQ:hover {
  color: #fac400;
  text-decoration: underline;
}
.KingTayy-Text {
  color: #ffffff;
  text-decoration: none;
}
.KingTayy-Text:hover {
  color: #ffffff;
  text-decoration: underline;
}

.text-link {
  font-weight: 600;
  color: #4700f0;
}

.text-link:hover {
  text-decoration: none;
}

/* =========================
      9. CHAT BOX
      ========================= */
#mazbrain-chat {
  width: 460px;
  height: 700px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-family: "Segoe UI", sans-serif;
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  overflow: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-family: "Segoe UI", sans-serif;
  background-color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
}
#mazbrain-chat-header {
  background: linear-gradient(to bottom, #d50000, #b71c1c);
  color: white;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.chat-title {
  font-weight: bold;
  letter-spacing: 0.4px;
}
.chat-options {
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}
#chat-log {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}
#chat-input-wrapper {
  display: flex;
  align-items: center;
  border-top: 1px solid #eee;
  background: #fafafa;
  padding: 10px;
}
#chat-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  background: #fff;
}
#chat-send {
  background-color: #d50000;
  border: none;
  margin-left: 8px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#chat-send:hover {
  background-color: #b71c1c;
}
#mazbrain-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #d50000;
  color: white;
  font-size: 26px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9999;
  animation: floaty 2s ease-in-out infinite;
}
#mazbrain-toggle-btn:hover {
  animation: popBounce 0.4s ease;
  box-shadow: 0 0 20px #ff0000;
}
@keyframes floaty {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes floatButton {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.chat-msg {
  margin: 6px 0;
  padding: 10px 14px;
  max-width: 80%;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  clear: both;
  word-wrap: break-word;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  margin: 8px;
}
.chat-msg.bot {
  color: #333;
  float: left;
  border-top-left-radius: 0;
  flex-direction: row;
}
.chat-msg.user {
  color: #fff;
  float: right;
  border-top-right-radius: 0;
  justify-content: flex-end;
  flex-direction: row-reverse;
}
.chat-msg.user .chat-bubble {
  background: #d50000;
  color: white;
  border-bottom-right-radius: 0;
  margin-left: auto;
}
.chat-msg.bot .chat-bubble {
  border-bottom-left-radius: 0;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
}
.chat-bubble {
  background: #f4f4f4;
  color: #111;
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 85%;
  width: fit-content;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  text-align: left;
}
#chat-menu {
  position: absolute;
  top: 45px;
  right: 10px;
  background: black;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  z-index: 999;
  width: 130px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#chat-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#chat-menu li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
#chat-menu li:hover {
  background-color: #f0f0f0;
}
.hidden {
  display: none;
}
#lang-select {
  background: white;
  color: #b20000;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-left: auto;
  margin-right: 10px;
}
#lang-select:focus {
  outline: none;
}
.dots::after {
  content: "";
  display: inline-block;
  animation: typing-dots 1.2s infinite steps(3);
  width: 1em;
  overflow: hidden;
  vertical-align: bottom;
}
@keyframes typing-dots {
  0% {
    content: ".";
  }
  33% {
    content: "..";
  }
  66% {
    content: "...";
  }
}

/* =========================
      10. OVERLAYS & MISC
      ========================= */
.text-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: "Press Start 2P", cursive;
  color: white;
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.4em 1em;
  border-radius: 10px;
}

/* =========================
      11. MEDIA QUERIES
      ========================= */
@media (min-width: 768px) {
  .rom {
    width: 600px;
  }
  .grid-box {
    gap: 1.8em;
    display: flex;
  }
  .crate-text {
    width: 750px;
  }
  .days-hours-minutes {
    font-size: 30px;
  }
  .image-viewranks {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 1150px;
  }
  .image-viewranks img {
    width: 55%;
  }
  .team-section {
    align-items: center;
  }
  .text-viewrank-eco {
    height: 198px;
  }

  .stackedpackage {
    grid-template-columns: repeat(5, 1fr);
  }

  .vote-note {
    width: 300px;
  }

  .gridpackage__name-vote {
    width: 715px;
  }

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

  .stackedpackage-vote {
    height: 280px;
  }

  .PC-display-none {
    display: none;
  }
}
@media (max-width: 768px) {
  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-box {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }
  .box-gems-a {
    display: flex;
  }
  .grid-box {
    gap: 1.8em;
    display: grid;
  }
  .row {
    width: auto;
  }
  .crate-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .card {
    height: 152px;
  }
  .below {
    height: auto;
  }
  .image-viewranks {
    width: 302px;
    height: 90px;
  }
  .image-viewranks img {
    width: 100%;
  }
  .team-section {
    align-items: flex-start;
  }
  .crate-title {
    font-size: 45px;
    letter-spacing: 1px;
    font-weight: lighter;
    text-align: center;
  }
  .hero {
    margin-top: 51px;
  }
  .days-hours-minutes {
    font-size: 28px;
  }
  .logo-img {
    margin: 20px 0;
    max-width: 250px;
  }
  .box-ranks-a {
    display: flex;
    flex-direction: column;
  }
  .full-box-image {
    height: 100%;
    width: auto;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5em;
    padding: 1.5em 0;
  }
  .crate-banner {
    width: 302px;
    margin: 50px 0;
    flex-direction: column;
    gap: 1em;
    padding: 1.5em;
  }
  .crate-timer {
    justify-content: center;
  }
  .grid-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
  }
  .box.ranks {
    box-shadow: 0 8px 0 #02789c;
  }
  .box.ranks,
  .box.crates,
  .box.gems {
    width: 100%;
    max-width: 350px;
    height: 200px;
  }
  .players-info,
  .discord-info {
    display: none;
  }
  .players-icon-img {
    display: none;
  }
  .discord-link {
    margin-right: 0;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1em;
    background-color: #b20030;
    border-radius: 12px;
    padding: 1em;
    width: 160px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li:last-child {
    margin-bottom: 0;
  }
  .crate-timer {
    margin: 8px 0 15px;
    gap: 0.8em;
  }
  .crate-timer .timer-box,
  .crate-timer .timer-separator {
    margin: 0;
  }
  .claim-button {
    margin: 1em auto 0 auto;
    display: inline-block;
  }
  .players-box {
    display: none !important;
  }
  .hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1em;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2em;
  }
  .footer-right {
    justify-content: center;
    gap: 1em;
    margin-top: 1em;
  }
  .box.viewranks {
    width: 100%;
    max-width: 350px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5em;
    box-sizing: border-box;
    border-radius: 20px;
    overflow: hidden;
    min-height: 200px;
  }
  .box.viewranks {
    max-width: 350px;
    height: auto;
    padding: 1.5em;
  }
  .box.viewranks img.full-box-image {
    width: 100%;
    max-width: 15000px;
  }
  .box-vote {
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .vote-note {
    width: 265px;
  }
  .gridpackage__name-vote {
    width: auto;
  }
  .stackedpackage-vote {
    height: auto;
  }
  .vote-button-room {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 1008px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 600px) {
  #mazbrain-chat {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  #mazbrain-toggle-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }
  #chat-input {
    font-size: 14px;
  }
  .chat-bubble {
    font-size: 14px;
    padding: 10px 12px;
  }
  .chat-avatar {
    width: 30px;
    height: 30px;
  }
  #lang-select {
    font-size: 11px;
    padding: 4px;
  }
  #chat-log {
    padding: 8px;
  }
  .chat-msg {
    margin: 6px;
  }
}

/* =========================
      12. message alert
      ========================= */
.card-message {
  width: 330px;
  height: 80px;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 10px 15px;
  background-color: #ffffff;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  position: fixed;
  bottom: 20px;
  left: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 15px;
  z-index: 9999;
}
.card-message.show {
  transform: translateY(0);
  opacity: 1;
}

/* ====== CSS ====== */
.wave {
  position: absolute;
  transform: rotate(90deg);
  left: -31.3px;
  top: 32px;
  width: 80px;
  fill: #04e4003a;
}
.icon-container {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #04e40048;
  border-radius: 50%;
  margin-left: 8px;
}
.icon {
  width: 17px;
  height: 17px;
  color: #269b24;
}
.message-text-container {
  font-family: system-ui;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-grow: 1;
}
.message-text,
.sub-text {
  margin: 0;
  cursor: default;
}
.message-text {
  color: #269b24;
  font-size: 17px;
  font-weight: 700;
}
.sub-text {
  font-size: 14px;
  color: #555;
}
.cross-icon {
  width: 18px;
  height: 18px;
  color: #555;
  cursor: pointer;
}

/* =========================
      PAGE STORE ***********
      ========================= */

/* Body */

.body-page-store {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blockhero-nav-body {
  display: flex;
  flex-direction: column;
  gap: 1.8em;
  margin: 50px 0;
  gap: 50px;
  align-items: center;
}

/* Home */

.blockhero-btn {
  width: 1135px;
  font-family: "Press Start 2P", cursive;
  background-color: #c7e4ec;
  padding: 24px;
  color: #111;
  text-decoration: none;
  border-radius: 16px;
  box-shadow: 0 6px 0 #a2cbd2;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  flex: 1 1 auto;
  justify-content: space-between;
}

.blockhero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #a2cbd2;
  background-color: #cde4e9;
}

.home-wrapper {
  display: flex;
  align-items: center;
  gap: 25px;
}

.text-change-server {
  color: rgb(255, 255, 255);
  flex-direction: column;
  align-items: center;
  border-bottom: 4px solid rgb(49, 129, 52);
  padding: 24px;
  background: rgb(78, 187, 82);
  text-decoration: none;
  gap: 5px;
  border-radius: 20px;
  font-family: Minecrafter, sans-serif;
  color: #ffffff;
  line-height: 1;
  font-size: 22px;
  display: block;
  text-shadow: rgb(49, 129, 52) 2px 3px 0px;
  letter-spacing: 1px;
  font-weight: lighter;
}

.text-change-server:hover {
  background: rgb(78 187 82 / 93%);
}

.background-home-icon-wrapper {
  color: #507177;
  background: #bddae5;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.home-icon-wrapper {
  font-size: 30px;
}

.home-text-store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.p-home-store {
  font-family: "Minecraftia", sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.h1-home-store {
  line-height: 1;
  font-weight: 400;
  font-size: 26px;
}

/* Rank */
.page-view {
  width: 1170px;
  border: 5px solid #b1d0d6;
  background: #c6e3e9;
  border-radius: 14px;
}

.page-title {
  background: #b1d0d6 !important;
  padding: 28px 30px;
  margin-bottom: -5px;
  position: relative;
  z-index: 5;
  font-size: 30px;
  line-height: 1;
  font-family: "Minecrafter", sans-serif;
  display: flex;
  align-items: center;
  color: black;
}

.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 30px;
  padding: 40px;
}

.package-panel {
  border-radius: 15px;
  border: 3px solid #b1d0d6;
  background: white;
  margin-bottom: 0px;
}

.panel-body {
  position: relative;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.image-page-rank {
  max-width: 100px;
  margin: 0 auto;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.item-Rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.selling-price-rank {
  border-radius: 7px;
  margin-top: -5px;
  color: #48a94b;
  font-size: 15px;
  font-family: "Minecraftia", sans-serif;
}

.btn-a {
  width: 100%;
}
.text-buy-rank {
  gap: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 20px;
  font-family: "Minecrafter", sans-serif;
  letter-spacing: 0.3px;
  font-weight: lighter;
  color: #ffffff;
  align-items: center;
  border-radius: 10px;
  margin-top: 6px;
  margin-bottom: 5px;
  background: #6cc349;
  padding: 10px;
  /* width: 95%; */
  /* width: 100%; */
  box-shadow: 0 5px 0 #3c8527;
}
/* /Rank */

@media (max-width: 768px) {
  .blockhero-nav-body {
    display: flex;
    align-items: center;
  }
  .blockhero-btn {
    display: none;
    width: 302px;
  }
  .page-view {
    width: 341px;
  }
  .packages {
    grid-template-columns: repeat(1, minmax(0px, 1fr));
  }
}

/* /home */

.text-buy {
  gap: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 20px;
  font-family: "Minecrafter", sans-serif;
  letter-spacing: 0.3px;
  font-weight: lighter;
  color: #ffffff;
  align-items: center;
  border-radius: 10px;
  margin-top: 6px;
  margin-bottom: 5px;
  background: #6cc349;
  padding: 10px;
  /* width: 95%; */
  /* width: 100%; */
  box-shadow: 0 5px 0 #3c8527;
}

/* =========================
      PAGE STORE  MCoins ***********
      ========================= */

.packages-mcoins {
  display: flex;
  gap: 30px;
  padding: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.special-width {
  width: 500px;
}

.box-special-width {
  width: 337px;
}

.panel-body-mcoins {
  border-radius: 15px;
  border: 3px solid #b1d0d6;
  background: white;
  margin-bottom: 0px;
}

.selling-price-mcoins {
  border-radius: 7px;
  margin-top: -5px;
  color: #48a94b;
  font-size: 15px;
  font-family: "Minecraftia", sans-serif;
}

.image-page-mcoins {
  max-width: 150px;
  margin: 0 auto;
}

.text-buy-mcoins {
  gap: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 20px;
  font-family: "Minecrafter", sans-serif;
  letter-spacing: 0.3px;
  font-weight: lighter;
  color: #ffffff;
  align-items: center;
  border-radius: 10px;
  margin-top: 6px;
  margin-bottom: 5px;
  background: #6cc349;
  padding: 10px;
  /* width: 95%; */
  /* width: 100%; */
  box-shadow: 0 5px 0 #3c8527;
}

/* =========================
   MODAL FORM (rankFormModal) CSS
   ========================= */

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Modal content box */
.modal-content {
  background: #1e1e1e;
  color: white;
  padding: 30px;
  margin: 80px auto;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease-in-out;
}

/* Modal close button */
.close,
.modal-content .close {
  position: absolute;
  top: 1em;
  right: 1.2em;
  font-size: 1.2em;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

/* Modal logo image */
.mazer-logo-glow {
  display: block;
  margin: 0 auto 1em auto;
  max-width: 220px;
  height: auto;
}

/* Modal form styles */
#rankForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

#rankForm label {
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  color: #222;
  margin-bottom: 4px;
  font-weight: 500;
}

#rankForm input[type="text"],
#rankForm select,
#rankForm input[type="file"] {
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #b6d8e3;
  background: #2a2a2a;
  margin-bottom: 8px;
  outline: none;
  transition: border 0.2s;
}

#rankForm input[type="text"]:focus,
#rankForm select:focus {
  border: 1.5px solid #3bb6e3;
  background: #f0faff;
}

#rankForm input[type="file"] {
  padding: 6px 0;
  background: none;
  border: none;
}

#rankForm button[type="submit"] {
  background-color: #ff3d5a;
  color: white;
  padding: 12px 0;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  font-family: "Press Start 2P", cursive;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

#rankForm button[type="submit"]:hover {
  background-color: #e32f4a;
}

#rankForm a[download] img {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 520px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
}

#successMsg,
#errorMsg {
  margin-top: 10px;
  font-size: 1em;
  text-align: center;
  display: none;
}

#successMsg {
  color: green;
}

#errorMsg {
  color: red;
}

/* Modal warning message */
.modal-warning {
  color: red;
  font-size: 0.8em;
  margin-bottom: 1em;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 20px;
    max-width: 99vw;
  }
  #rankForm a[download] img {
    max-width: 100%;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Viewrank */
.packages-viewrank {
  display: flex;
  padding: 40px;
  gap: 35px;
  flex-wrap: wrap;
  justify-content: center;
}

.viewrank {
  width: 300px;
  /* height: 320px; */
}

.text-view {
  gap: 15px;
  display: flex;
  flex-direction: row;
  font-size: 20px;
  font-family: "Minecrafter", sans-serif;
  letter-spacing: 0.3px;
  font-weight: lighter;
  color: #ffffff;
  align-items: center;
  border-radius: 10px;
  margin-top: 6px;
  margin-bottom: 5px;
  background: #6cc349;
  padding: 10px;
  box-shadow: 0 5px 0 #3c8527;
  justify-content: center;
}

@media (max-width: 768px) {
  .viewrank {
    width: 260px;
  }
  .packages-viewrank {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .text-viewrank-eco {
    height: auto;
  }
}

.box-text-smp {
  font-size: 13px;
  font-family: "Minecraftia", sans-serif;
}

.img-viewrank-smp {
  box-shadow: 3px 3px 0 #555;
  border: 3px solid rgba(0, 0, 0, 0.2);
  margin-top: 15px;
  width: 98%;
}

/* Crates */

.switch-server-1 {
  color: #ffffff;
  border: 5px solid #b1d0d6;
  background: #c6e3e9;
  padding: 25px;
  border-radius: 15px;
}

.packages-stacked {
  max-width: 1182px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.gridpackage__name {
  background: #b1d0d6;
  padding: 28px;
  margin-bottom: -5px;
  position: relative;
  z-index: 5;
  font-size: 26px;
  line-height: 1;
  font-family: "Minecrafter", sans-serif;
  display: flex;
  align-items: center;
  color: black;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.stackedpackage {
  display: grid;
  gap: 15px;
  grid-auto-rows: 1fr;
  border: 5px solid #b1d0d6 !important;
  background: #c6e3e9 !important;
  padding: 25px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.stackedpackage-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: background 0.15s;
  cursor: pointer;
  color: unset;
  text-decoration: none !important;
  background: white;
  border-radius: 12px;
  border: 3px solid #b1d0d6;
  min-height: 200px;
  padding: 0 20px;
  justify-content: center;
}

.stackedpackage-cell-img-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  color: unset;
  min-height: 200px;
  padding: 0 20px;
}

.stackedpackage-cell-img {
  width: 170px;
  height: 170px;
}

.stackedpackage__amount {
  font-family: "Minecrafter", sans-serif;
  font-size: 33px;
  color: black;
}

.stackedpackage__price {
  border-radius: 7px;
  margin-top: -5px;
  color: #48a94b;
  font-size: 15px;
  font-family: "Minecraftia", sans-serif;
}

.stackedpackage-btn {
  width: 100%;
}

.stackedpackage__btn {
  gap: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 20px;
  font-family: "Minecrafter", sans-serif;
  letter-spacing: 0.3px;
  font-weight: lighter;
  color: #ffffff;
  align-items: center;
  border-radius: 7px;
  margin-top: 6px;
  margin-bottom: 5px;
  background: #6cc349;
  padding: 10px;
  /* width: 95%; */
  /* width: 100%; */
  box-shadow: 0 5px 0 #3c8527;
}

.package-tag {
  display: block;
  background: #0c9ef3;
  position: absolute;
  top: -15px;
  padding: 5px 11px;
  font-size: 18px;
  color: white;
  border-bottom: 3px solid #00000045 !important;
  border-radius: 7px;
}

/* vote */

.box-vote {
  display: flex;
  gap: 25px;
}

.vote-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: #ffffff;
  border: 5px solid #b1d0d6 !important;
  background: #c6e3e9 !important;
  padding: 25px;
  border-radius: 15px;
}

.switch-server {
  border-bottom: 4px solid #318134;
  padding: 24px;
  background: #4ebb52;
  display: flex;
  text-decoration: none;
  gap: 5px;
  color: #ffffff;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
}

.switch-server h1 .button-title {
  font-family: "Minecrafter", sans-serif;
  line-height: 1;
  font-size: 22px;
  display: block;
  text-shadow: 2px 3px 0px #318134;
  letter-spacing: 1px;
  font-weight: lighter;
}

.switch-server p {
  color: #267429;
  font-size: 14px;
}

.reward {
  border: 2px solid #b1d0d6;
  background: white;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Press Start 2P", cursive;
  font-size: 11px;
  color: #111;
  flex-direction: row;
}

.reward i {
  background: #1997f0;
  color: white;
  padding: 8px;
  border-radius: 50%;
}

.reward-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reward p {
  border-radius: 7px;
  font-size: 13px;
  font-family: "Minecraftia", sans-serif;
}

.vote-note {
  background: #b1d0d6;
  padding: 12px;
  border-radius: 7px;
  font-size: 13px;
  font-family: "Minecraftia", sans-serif;
  color: #2c3e50;
}

.vote-note p {
  font-size: 11px;
}

.gridpackage__name-vote {
  background: #b1d0d6;
  padding: 28px;
  margin-bottom: -5px;
  position: relative;
  z-index: 5;
  font-size: 26px;
  line-height: 1;
  font-family: "Minecrafter", sans-serif;
  display: flex;
  align-items: center;
  color: black;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.stackedpackage-vote {
  color: #ffffff;
  border: 5px solid #b1d0d6 !important;
  background: #c6e3e9 !important;
  padding: 25px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.vote-button-room {
  display: grid;
  gap: 24px;
}

.vote-button {
  box-shadow: 0 6px 0 #086db3;
  padding: 24px;
  background: #09f;
  display: flex;
  text-decoration: none;
  gap: 10px;
  color: #ffffff;
  flex-direction: column;
  align-items: center;
}

.vote-button:hover {
  background: #0088e8;
}

.vote-button h1 {
  letter-spacing: 1px;
  font-weight: lighter;
  font-size: 28px;
}

.vote-button p {
  border-radius: 7px;
  margin-top: -5px;
  font-size: 13px;
  font-family: "Minecraftia", sans-serif;
}

/* download page */

.java-bedrock-download {
  display: flex;
  gap: 40px;
  flex-direction: column;
}

.title-download-room {
  width: auto;
  background: #b1d0d6;
  padding: 28px;
  margin-bottom: -5px;
  position: relative;
  z-index: 5;
  font-size: 26px;
  line-height: 1;
  font-family: "Minecrafter", sans-serif;
  display: flex;
  align-items: center;
  color: black;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.download-room {
  display: flex;
  gap: 25px;
  border: 5px solid #b1d0d6;
  background: #c6e3e9;
  padding: 25px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  justify-content: center;
}

.box-download {
  border-radius: 14px;
  padding: 24px;
  width: 200px;
  background: white;
}

.download-img img {
  border-radius: 10px;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.title-description {
  display: flex;
  padding-top: 15px;
  gap: 10px;
  flex-direction: column;
}

.title-download {
  font-size: 25px;
}

.description-download {
  font-weight: 900;
  font-family: "Minecraftia", sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.description-download a {
  width: 50%;
  background: #6cc349;
  padding: 3px;
  box-shadow: 0 5px 0 #3c8527;
  border-radius: 10px;
  color: #ffffffff;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 768px) {
  .java-bedrock-download {
    max-width: 350px;
  }

  .download-room {
    flex-direction: column;
    align-items: center;
  }
}

.server-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  margin: 0 16px;
  background-color: #ffffff;
  box-shadow: 6px 2px 15px #111;
  padding: 25px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close-button {
  color: #2c3e50;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover {
  color: #3f464d;
}

.modal-text {
  display: flex;
  justify-content: space-between;
  color: #000000;
  margin-bottom: 30px;
  border-bottom: 1px dashed #e5e5e5;
  padding-bottom: 15px;
}

.modal-text p {
  font-size: 24px;
}

.server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.server-button {
  flex: 1 1 150px;
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 20px;
  font-family: "Minecrafter", sans-serif;
  letter-spacing: 0.3px;
  font-weight: lighter;
  color: #ffffff;
  align-items: center;
  border-radius: 7px;
  margin-bottom: 5px;
  background: #6cc349;
  padding: 10px;
  box-shadow: 0 5px 0 #3c8527;
}

.modal-overlay {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

#turnstile-container {
  margin-top: 15px;
  margin-bottom: 10px;
  display: flex;
  min-height: 65px;
  justify-content: center;
}

.submit-btn:disabled {
  background: #95a5a6;
  color: #ecf0f1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#rankPurchaseModal .modal-content {
  max-width: 500px;
  max-height: 78vh;
  overflow-y: auto;
}

.rank-modal-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--bg-tertiary);
  position: relative;
}

.rank-modal-header .logo {
  max-width: 150px;
  height: auto;
}

.modal-close-btn {
  color: var(--text-secondary);
  position: absolute;
  top: 0;
  right: 0;
  transition: background-color 0.2s;
}

.rank-modal-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#rank-form-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: system-ui;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 18px;
}

.form-group .input-field,
.form-group .select-field {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group .input-field:focus,
.form-group .select-field:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.3);
}

.form-group .select-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b0b3b8' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.form-group .error-message {
  color: var(--error-red);
  font-size: 12px;
  font-family: system-ui;
  display: none;
}

.form-group.error .input-field,
.form-group.error .select-field {
  border-color: var(--error-red);
}
.form-group.error .error-message {
  display: block;
}

.payment-section {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background-color: var(--bg-tertiary);
  padding: 20px;
  border-radius: 8px;
}

.payment-section p {
  font-size: 20px;
  color: black;
}

.payment-section .qr-code {
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid var(--border-color);
}
.payment-section .total-price {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  font-family: system-ui;
}

.payment-section .total-price span {
  font-size: 16px;
  color: var(--text-secondary);
}

.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.upload-area.drag-over {
  border-color: var(--accent-pink);
  background-color: rgba(232, 67, 147, 0.1);
}
.upload-area i {
  font-size: 36px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.upload-area p {
  font-family: system-ui;
  margin: 0;
  color: var(--text-secondary);
}
.upload-area p strong {
  color: var(--accent-pink);
  font-weight: 600;
}
#file-input {
  display: none;
}
#file-preview {
  margin-top: 15px;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  padding: 10px;
  border-radius: 8px;
}
#preview-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}
#file-info {
  flex-grow: 1;
  text-align: left;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: black;
  font-family: system-ui;
}
#remove-file-btn {
  background: none;
  border: none;
  color: var(--error-red);
  cursor: pointer;
  font-size: 18px;
}

.submit-btn {
  margin-top: 10px;
  width: 100%;
  padding: 15px;
  background: linear-gradient(
    90deg,
    var(--accent-green),
    var(--accent-green-dark)
  );
  border: none;
  border-radius: 8px;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.submit-btn:hover {
  box-shadow: 0 4px 20px rgba(85, 239, 196, 0.3);
  transform: translateY(-2px);
}
.submit-btn:disabled {
  background: #555;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.submit-btn .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border-top-color: #111;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- UPDATED: Direct Pay Button Styling --- */
.direct-pay-container {
  font-family: system-ui;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.direct-pay-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.direct-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px; /* Adjusted padding */
  background: rgba(0, 174, 239, 0.1); /* Light transparent background */
  color: #00aeef; /* Blue text */
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #00aeef; /* Blue border */
  cursor: pointer;
  width: 80%;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.direct-pay-btn.visible {
  visibility: visible;
  opacity: 1;
}

.direct-pay-btn:hover {
  background-color: rgba(0, 174, 239, 0.2); /* Slightly darker on hover */
  transform: translateY(-1px);
}

.direct-pay-btn .bank-logo {
  height: 24px; /* Set logo height */
  width: 24px; /* Set logo width */
  border-radius: 50%; /* Make it a circle */
  object-fit: cover;
}

#rankPurchaseForm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#thankYouModal .modal-content {
  max-width: 400px;
  text-align: center;
  padding: 40px;
}
.thank-you-icon {
  width: 80px;
  height: 80px;
  background-color: #00d49a;
  color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 40px;
  animation: popIn 0.5s ease-out forwards;
}
@keyframes popIn {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

#thankYouModal h2 {
  font-size: 24px;
  font-family: system-ui;
  font-weight: 700;
  margin-bottom: 10px;
  color: black;
}

#thankYouModal p {
  font-family: system-ui;
  color: #111;
  margin-bottom: 30px;
  line-height: 1.6;
}
.close-thank-you-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--accent-pink);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.close-thank-you-btn:hover {
  background-color: #d84383;
}

#form-submission-error {
  font-family: system-ui;
  text-align: center;
  margin-bottom: 15px;
  background-color: rgba(214, 48, 49, 0.1);
  color: #000;
  padding: 10px;
  border-radius: 8px;
}
