@font-face {
  font-family: minecraft;
  src: url(font/minecraft.ttf);
}

*{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: minecraft;
  background: linear-gradient(
    to bottom,
    #87CEEB 0%,
    #5AA9E6 40%,
    #6BBF59 75%,
    #4E8C3F 100%
  );
  min-height: 100vh;
}

header{
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(5px);
  font-size: clamp(22px, 5vw, 48px);
}

header img{
  height: clamp(64px, 8vw, 96px);
  margin-left: 16px;
}

header p{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: white;
}

.rank{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 20px;
  padding: 20px;
}

.box{
  background: rgba(255,255,255,0.9);
  border: 3px solid #333;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.box img{
  height: 100px;
}

.box h1{
  margin: 10px 0;
}

.price{
  color: #777;
  font-size: 20px;
}

.desc{
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.5;
}

.buttons{
  display: flex;
  gap: 10px;
}

.buttons button{
  flex: 1;
  border: none;
  padding: 12px;
  font-family: minecraft;
  cursor: pointer;
}

.details{
  background: #4A90E2;
  color: white;
}

.purchase{
  background: #4CAF50;
  color: white;
}

#vip h1{color:#FFD331;}
#mvp h1{color:#64FF4D;}
#ansam h1{color:tomato;}
#custom h1{color:#A6A6A1;}
#key h1{color:#D600FF;}

.buttons button{
  border: 2px solid #222;
  box-shadow: inset 0 -4px rgba(0,0,0,0.2);
}

.buttons button:active{
  transform: translateY(2px);
}

.box{
  transition: 0.3s;
}

.box:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.box img{
  animation: float 2s ease-in-out infinite;
}

@keyframes float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-8px);}
}

.box{
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
}

.box{
  position: relative;
}

.badge{
  position: absolute;
  top: -10px;
  right: -10px;
  background: gold;
  color: black;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  background: url("picture/clouds.png");
  opacity: 0.15;
  pointer-events: none;
}

footer{
  margin-top: 3em;
  padding: 20px;
  text-align: center;
  background: rgba(0,0,0,0.4);
  color: white;
  border-top: 3px solid #4CAF50;
}

footer p{
  margin: 8px 0;
}

.server-info{
  margin: 2em 1em;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(255,255,255,0.85);
  border: 3px solid #333;
  border-radius: 12px;

  backdrop-filter: blur(5px);
}

.server-text h2{
  margin: 0 0 10px 0;
  color: #4CAF50;
}

.server-text p{
  margin: 5px 0;
}

.telegram-btn{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 20px;
  background: #229ED9;
  color: white;
  text-decoration: none;
  border-radius: 8px;

  transition: 0.3s;
}

.telegram-btn:hover{
  transform: scale(1.05);
}

.telegram-btn img{
  height: 28px;
}

@media (max-width: 768px){
  .server-info{
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

.ip-row{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ip-row button{
  font-family: minecraft;
  border: none;
  padding: 8px 12px;
  background: #4CAF50;
  color: white;
  cursor: pointer;
  border-radius: 6px;
}

.rank{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 20px;

  align-items: start;
}
.box{
  align-self: start;
}

.rank-details{
  max-height: 0;
  overflow: hidden;

  transition: max-height 0.3s ease;

  margin-top: 10px;
  text-align: left;

  color: #555;
  font-size: 14px;
}

.rank-details.show{
  max-height: 300px;
}

.support{
  margin: 3em 1em;
  padding: 20px;

  background: rgba(255,255,255,0.85);
  border: 3px solid #333;
  border-radius: 12px;

  backdrop-filter: blur(5px);
}

.support h2{
  text-align: center;
  color: #4CAF50;
  margin-bottom: 20px;
}

.support-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 15px;
}

.support-card{
  background: rgba(255,255,255,0.7);
  border: 2px solid #333;
  border-radius: 10px;

  padding: 20px;
  text-align: center;

  font-size: 24px;

  transition: 0.3s;
}

.support-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.support-card p{
  margin-top: 10px;
  font-size: 14px;
}

.stats{
  margin: 3em 1em;

  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 15px;
}

.stat-card{
  background: rgba(255,255,255,0.85);
  border: 3px solid #333;
  border-radius: 12px;

  padding: 20px;
  text-align: center;

  backdrop-filter: blur(5px);

  transition: 0.3s;
}

.stat-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.stat-card h2{
  margin: 0;
  color: #4CAF50;
  font-size: 24px;
}

.stat-card p{
  margin-top: 10px;
  color: #555;
}

.contact-admin{
  margin: 3em 1em;
  padding: 30px;

  text-align: center;

  background: rgba(255,255,255,0.85);
  border: 3px solid #333;
  border-radius: 12px;

  backdrop-filter: blur(5px);
}

.contact-admin h2{
  margin-top: 0;
  color: #4CAF50;
}

.contact-admin p{
  color: #555;
  margin-bottom: 20px;
}

.contact-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 24px;

  background: #229ED9;
  color: white;
  text-decoration: none;

  border-radius: 10px;
  border: 2px solid #333;

  transition: 0.3s;
}

.contact-btn:hover{
  transform: scale(1.05);
}

.contact-btn img{
  height: 32px;
}

.faq{
  margin: 3em 1em;
  padding: 20px;

  background: rgba(255,255,255,0.85);
  border: 3px solid #333;
  border-radius: 12px;

  backdrop-filter: blur(5px);
}

.faq h2{
  text-align: center;
  color: #4CAF50;
}

.faq details{
  margin: 10px 0;
  padding: 15px;

  background: rgba(255,255,255,0.7);
  border: 2px solid #333;
  border-radius: 8px;
}

.faq summary{
  cursor: pointer;
  font-weight: bold;
}

.faq p{
  margin-top: 10px;
  color: #555;
}