* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: 240 12% 8%;
  --foreground: 0 0% 98%;
  --primary: 280 75% 60%;
  --primary-glow: 280 85% 70%;
  --accent: 170 70% 55%;
  --accent-glow: 170 80% 65%;
  --secondary: 45 95% 60%;
  --secondary-glow: 45 100% 70%;
  --card: 240 10% 12%;
  --card-foreground: 0 0% 98%;
  --muted: 240 6% 20%;
  --muted-foreground: 240 5% 65%;
  --border: 240 8% 25%;
  --ring: 280 75% 60%;
  --success: 142 76% 36%;
  --warning: 38 92% 50%;
  --destructive: 0 84% 60%;
  --radius: 1.5rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.home {
 position: relative;
}

.servers-link {
	text-decoration: none; 
	color: inherit;
}
.server {
    display: none;
}
#server-selected-text {
    display: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.logo-text-main {
  font-size: 1.125rem;
  font-weight: bold;
}

.logo-text-sub {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1rem;
}


.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-mobile-btn { display: none; }
}

.nav-btn-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.nav-btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-btn-primary {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
}
.hero-btn-glass {
  color: hsl(var(--foreground));
}

.nav-btn-primary:hover {
  opacity: 0.9;
}

.nav-btn:active {
  transform: scale(0.95);
}

/* Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 16rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 40;
  padding: 1.5rem;
  padding-top: 6rem;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100vh;
  min-height: 48em;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../img/background.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0; /* важен порядок */
}

.hero-gradient {
  position: absolute;
  inset: 0;
  /* Используем современный синтаксис hsl(var(...) / alpha) */
  background: linear-gradient(180deg,
    hsl(var(--background) / 0.95) 0%,
    hsl(var(--background) / 0.85) 30%,
    hsl(var(--background) / 0.75) 50%,
    hsl(var(--background) / 1) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 6rem;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s 0.2s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s 0.3s ease-out both;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 0.8s 0.4s ease-out both;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
  animation: fadeIn 0.8s 0.5s ease-out both;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  border: none;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  overflow: hidden;
}

.hero-btn-primary {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  color: hsl(var(--foreground));
}

.hero-btn:hover {
  transform: scale(1.05);
}

.hero-btn:active {
  transform: scale(0.95);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  animation: fadeIn 0.8s 0.6s ease-out both;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: bold;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.hero-decorative {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  pointer-events: none;
}

.hero-decorative-1 {
  top: 25%;
  left: 10%;
  width: 8rem;
  height: 8rem;
  background: hsl(var(--primary));
}

.hero-decorative-2 {
  bottom: 25%;
  right: 10%;
  width: 10rem;
  height: 10rem;
  background: hsl(var(--accent));
}

/* Sections */
section {
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 1;
  transform: translateY(20px);
  transition: all 0.6s;
  animation: fadeIn 0.8s 0.5s ease-out both;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

/* Server Selector */
.servers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
}

.server-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
  opacity: 1;
  transform: translateY(20px);
  z-index: 1;
}

.server-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.server-card:hover {
  transform: translateY(-8px);
}

.server-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.server-card:hover .server-card-bg {
  opacity: 0.1;
}

.server-card-content {
  position: relative;
  z-index: 10;
}

.server-icon {
  min-width: 4rem;
  min-height: 4rem;
  max-width: 4rem;
  max-height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.server-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.server-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.server-action {
  color: hsl(var(--accent));
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.server-action span:last-child {
  transition: transform 0.3s;
}

.server-card:hover .server-action span:last-child {
  transform: translateX(4px);
}

/* Selected Server */
.server-selected {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.3s ease-out;
  z-index: 1;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.server-selected-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.server-selected-content {
  position: relative;
  z-index: 10;
}

.server-selected-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.server-selected-title {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.server-selected-desc {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: hsl(var(--muted));
  border: none;
  border-radius: 0.75rem;
  color: inherit;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  background: hsl(var(--muted)) / 0.8;
  transform: scale(1.02);
}

.btn-back:active {
  transform: scale(0.98);
}

/* Server Stats & Purchases Grid */
.stats-purchases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .stats-purchases-grid {
    grid-template-columns: 1.7fr 1fr;
  }
}

/* Stats Section */
.stats-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.online-status {
  padding: 2rem;
  border-radius: 1.5rem;
  z-index: 1;
}

.online-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.online-title {
  font-size: 1.875rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.online-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 20px;
}

.online-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.online-btn-primary {
  background: linear-gradient(90deg, hsl(var(--success)), rgb(5,150,105));
  color: white;
  width: 90%;
}

.online-btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.online-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  width: 3rem;
  height: 3rem;
  padding: 0;
  justify-content: center;
}

.online-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.online-btn:active {
  transform: scale(0.95);
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: hsl(var(--success));
  /*animation: pulse 2s infinite;*/
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.online-count {
  text-align: right;
}

.online-count-value {
  font-size: 1.875rem;
  font-weight: bold;
}

.online-count-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 0.75rem;
  background: hsl(var(--muted));
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  border-radius: 9999px;
  transition: width 1s ease-out;
}

/* Privileges */
.privileges-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-header h3 {
  font-size: 1.875rem;
  font-weight: bold;
}

.privileges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.privilege-card {
  padding: 1rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1;
}

.privilege-card:hover {
  transform: scale(1.05) translateY(-5px);
}

.privilege-name {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.privilege-price {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
#snow {
  position: absolute;
  left: 0;
  top: 0;
  min-height: 100%;
  z-index: 0;
}
/* Cases & Other */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.item-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1;
}

.item-card:hover {
  transform: scale(1.05);
}

.item-icon {
  min-width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
}

.item-name {
  font-size: 1.25rem;
  font-weight: bold;
}

.item-price {
  color: hsl(var(--muted-foreground));
}

/* Coins */
.coins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.coin-card {
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.coin-card:hover {
  transform: scale(1.05) translateY(-5px);
}

.coin-amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: hsl(var(--secondary));
  margin-bottom: 0.5rem;
}

.coin-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.coin-price {
  color: hsl(var(--accent));
  font-weight: 600;
  margin-top: 0.5rem;
}

#onlineSection {
  position: relative;
  z-index: 1;
}
#purchasesSection {
  position: relative;
  z-index: 1;
}


/* Purchases List */
.purchases-section {
  padding: 2rem;
  border-radius: 1.5rem;
  z-index: 1;
}

.purchases-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.purchases-list {
  max-height: none;
  overflow-y: visible;
}

.purchase-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
  border-radius: 0.75rem;
  animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.purchase-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.purchase-item:last-child {
  border-bottom: none;
}

.purchase-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.purchase-avatar {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  display: flex;
  align-items: center;
  justify-content: center;
}

.purchase-player {
  font-weight: 600;
  text-overflow: ellipsis;
  max-width: 53px;
  white-space: nowrap;
  overflow: hidden;
}

.purchase-action {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.purchase-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-right: 5px;
}
.purchase-time-time {
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;  
  z-index: 1;
  position: relative;
}

.footer-section h3 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-links button {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links button:hover {
  color: hsl(var(--foreground));
}

.footer-ip {
  padding: 0.75rem;
  border-radius: 0.75rem;
  text-align: center;
  margin-top: 1rem;
}

.footer-ip-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.footer-ip-value {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: hsl(var(--accent));
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
  .servers-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Modal Base */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.modal-overlay.active {
  display: flex;
  animation: fadeInOverlay 0.2s ease-out forwards;
}
.modal-overlay.show {
  display: flex;
  animation: fadeInOverlay 0.2s ease-out forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  max-width: 32rem;
  width: 100%;
  border-radius: 1.5rem;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.2s ease-out;
  margin: 2rem 0;
}

.modal-overlay.active .modal {
  animation: scaleInModal 0.3s ease-out forwards;
}
.modal-overlay.show .modal {
  animation: scaleInModal 0.3s ease-out forwards;
}
@keyframes scaleInModal {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.modal-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-content {
  margin-bottom: 1.5rem;
}

.modal-text {
  font-weight: bolder;
  margin-bottom: 1rem;
  text-align: center;
  font-size: larger;
}

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.modal-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.modal-link-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-link-title {
  font-weight: 600;
}

.modal-link-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* How To Play Modal */
.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-step {
  display: flex;
  gap: 1rem;
}

.modal-step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.modal-step-content {
  flex: 1;
  padding: 1rem;
  border-radius: 1rem;
}

.modal-step-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-step-desc {
  color: hsl(var(--muted-foreground));
}

.modal-divider {
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-server-ip {
  text-align: center;
}

.modal-server-ip-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.modal-server-ip-box {
  padding: 1rem;
  border-radius: 1rem;
}

.modal-server-ip-value {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  margin-bottom: 0.5rem;
}

.modal-server-ip-note {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.modal-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  border: none;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  color: inherit;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1.5rem;
}

.modal-btn:hover {
  transform: scale(1.02);
}

.modal-btn:active {
  transform: scale(0.98);
}

/* Purchase Modal */
.purchase-modal .modal {
  max-width: 36rem;
}

.privilege-info {
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.privilege-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.privilege-info-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.privilege-info-duration {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.privilege-info-price {
  font-size: 1.875rem;
  font-weight: bold;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: hsl(var(--muted));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: inherit;
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--accent));
}

.form-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.form-checkbox-group {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.form-checkbox {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: hsl(var(--accent));
}

.form-checkbox-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.purchase-details {
  padding: 1rem;
  border-radius: 1rem;
  margin-top: 1rem;
}

.purchase-details h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.purchase-details ul {
  list-style: none;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.purchase-details li {
  margin-bottom: 0.5rem;
}

.purchase-note {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-top: 1rem;
}

/* Rules Page */
.rules-page {
  min-height: 100vh;
}

/* Payment Page */
.payment-page {
  min-height: 100vh;
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.payment-header {
  margin-bottom: 2rem;
}

.payment-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.payment-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.payment-method-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.payment-method-card:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.payment-method-card.selected {
  border-color: hsl(var(--accent));
  background: hsla(var(--accent), 0.1);
}

.payment-method-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.payment-method-name {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 5px;
}

.payment-details {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-details h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.payment-details-list {
  list-style: none;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.payment-details-list li {
  margin-bottom: 0.5rem;
}

.payment-details-total {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rules-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s; 
  z-index: 1;
  position: relative;
}

.rules-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rules-hero {
  text-align: center;  
  margin-bottom: 2rem;
  animation: fadeIn 0.8s 0.5s ease-out both;
}

.rules-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.rules-hero p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.rule-card {
  padding: 2rem;
  border-radius: 1.5rem;
  transition: all 0.2s;
}

.rule-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rule-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rule-icon {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}

.rule-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.rule-items {
  list-style: none;
}

.rule-items li {
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.rule-bullet {
  color: hsl(var(--accent));
}

.rules-warning {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 2px solid hsla(var(--destructive), 0.3);
  margin-top: 1.5rem;
}

.rules-warning h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: hsl(var(--destructive));
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rules-warning p {
  color: rgba(255, 255, 255, 0.8);
}

/* Utility */
.hidden {
  display: none !important;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--muted));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground));
}

/* Responsive */
@media (max-width: 768px) {
  .privilege-name {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  }
  .privilege-info-price {
  font-size: 1rem;
  font-weight: bold;
  }
  .privilege-info-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
  }

  .purchases-list {
    max-height: none;
	overflow-y: visible;
  }
}

@media (max-width: 360px) {
.stats-purchases-grid {
  display: block;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.servers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
  margin-bottom: 10px;
}
}
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem; 
  z-index: 1;
  position: relative;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.2s;
}

.accordion-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  cursor: pointer;
  user-select: none;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
}

.accordion-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.accordion-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.accordion-chevron {
  transition: transform 1s;
  flex-shrink: 0;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 9999px;
  transition: max-height 1s ease-in;
}

.accordion-body {
  padding: 0 2rem 1.5rem 2rem;
}