/* ========== Vazir Font ========== */
@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========== Farsi / RTL global helpers ========== */
.farsi {
  font-family: "Vazir", "Tahoma", sans-serif;
  direction: rtl;
}

/* ========== Iran-flag wave glow for HurtZone title ========== */
@keyframes iranWaveGlow {
  0% {
    text-shadow:
      0 0 4px rgba(0, 200, 83, 0.35),
      0 0 10px rgba(0, 200, 83, 0.15);
    color: #00c853;
    -webkit-text-stroke: 1px rgba(0, 200, 83, 0.45);
    filter: drop-shadow(0 0 6px rgba(0, 200, 83, 0.15));
  }
  33% {
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.4),
      0 0 10px rgba(255, 255, 255, 0.15);
    color: #ffffff;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
  }
  66% {
    text-shadow:
      0 0 4px rgba(218, 41, 28, 0.35),
      0 0 10px rgba(218, 41, 28, 0.15);
    color: #da291c;
    -webkit-text-stroke: 1px rgba(218, 41, 28, 0.45);
    filter: drop-shadow(0 0 6px rgba(218, 41, 28, 0.15));
  }
  100% {
    text-shadow:
      0 0 4px rgba(0, 200, 83, 0.35),
      0 0 10px rgba(0, 200, 83, 0.15);
    color: #00c853;
    -webkit-text-stroke: 1px rgba(0, 200, 83, 0.45);
    filter: drop-shadow(0 0 6px rgba(0, 200, 83, 0.15));
  }
}

.hz-letter {
  display: inline-block;
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation:
    iranWaveGlow 3s ease-in-out infinite,
    letterFloat 3s ease-in-out infinite;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  position: relative;
  color: #00c853;
  -webkit-text-stroke: 1px rgba(0, 200, 83, 0.45);
  paint-order: stroke fill;
  filter: drop-shadow(0 0 6px rgba(0, 200, 83, 0.15));
}
.hz-letter:nth-child(1) {
  animation-delay: 0s;
}
.hz-letter:nth-child(2) {
  animation-delay: 0.18s;
}
.hz-letter:nth-child(3) {
  animation-delay: 0.36s;
}
.hz-letter:nth-child(4) {
  animation-delay: 0.54s;
}
.hz-letter:nth-child(5) {
  animation-delay: 0.72s;
}
.hz-letter:nth-child(6) {
  animation-delay: 0.9s;
}
.hz-letter:nth-child(7) {
  animation-delay: 1.08s;
}
.hz-letter:nth-child(8) {
  animation-delay: 1.26s;
}

.hz-title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.hz-title-row::after {
  content: "";
  position: absolute;
  inset: -20px -30px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 200, 83, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 35%,
    rgba(218, 41, 28, 0.04) 65%,
    transparent 100%
  );
  z-index: -1;
  border-radius: 20px;
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

/* ========== Farsi center nav links ========== */
.farsi-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2.5rem;
  margin: 2rem auto 3rem;
  max-width: 700px;
  direction: rtl;
}

.farsi-nav-link {
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #cde4e1;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  transition:
    background 0.25s ease,
    color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.farsi-nav-link:hover {
  background: rgba(200, 200, 200, 0.12);
  color: #ffffff;
}

.farsi-nav-link i {
  font-size: 1.1rem;
  color: #9cc9c4;
  transition: color 0.25s ease;
}

.farsi-nav-link:hover i {
  color: #ffffff;
}

/* ========== Farsi nav inside header ========== */
.nav-container .farsi-nav {
  margin: 0;
  gap: 0.5rem 0.8rem;
  max-width: none;
}

.nav-container .farsi-nav-link {
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
}

/* Hide header nav on mobile, show mobile menu instead */
@media (max-width: 1024px) {
  .nav-container .farsi-nav {
    display: none;
  }
  .login-wrapper {
    order: 2;
  }
  .mobile-menu-btn {
    order: 3;
  }
}

@media (min-width: 1025px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* ========== Login button & panel ========== */
.login-wrapper {
  position: relative;
}

.login-btn {
  font-family: "Vazir", "Tahoma", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: linear-gradient(
    135deg,
    rgba(20, 79, 72, 0.6),
    rgba(14, 55, 50, 0.7)
  );
  color: #cde4e1;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  direction: rtl;
}

.login-btn:hover {
  border-color: rgba(0, 200, 83, 0.5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.15);
  transform: translateY(-1px);
}

.login-btn i {
  font-size: 1.1rem;
  color: #5eead4;
  transition: all 0.3s ease;
}

.login-btn:hover i {
  color: #fff;
}

.login-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 300px;
  background: linear-gradient(135deg, #0e3732 0%, #0a2a26 100%);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  direction: rtl;
  font-family: "Vazir", "Tahoma", sans-serif;
}

.login-panel.active {
  display: block;
  animation: panelSlideIn 0.25s ease-out;
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-panel h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.login-panel .form-group {
  margin-bottom: 0.85rem;
}

.login-panel label {
  display: block;
  color: #9cc9c4;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.login-panel input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(10, 42, 38, 0.8);
  color: #cde4e1;
  font-size: 0.9rem;
  font-family: "Vazir", "Tahoma", sans-serif;
  direction: ltr;
  text-align: left;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.login-panel input:focus {
  outline: none;
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.1);
}

.login-panel input::placeholder {
  color: rgba(156, 201, 196, 0.4);
}

.login-submit-btn {
  width: 100%;
  padding: 0.65rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.25rem;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #00a844, #008f3a);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
  transform: translateY(-1px);
}

.login-forgot {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  color: #5eead4;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-forgot:hover {
  color: #fff;
}

.login-launcher-note {
  text-align: center;
  margin-top: 0.6rem;
  color: rgba(156, 201, 196, 0.55);
  font-size: 0.72rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hz-letter {
    font-size: 4rem;
  }
  .farsi-nav {
    gap: 0.8rem 1.2rem;
  }
  .farsi-nav-link {
    font-size: 1.05rem;
    padding: 0.55rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .hz-letter {
    font-size: 2.8rem;
  }
  .farsi-nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
}

/* ========== Page section headers ========== */
.page-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.page-hero .page-icon {
  font-size: 3rem;
  color: #5eead4;
  margin-bottom: 1rem;
  display: block;
}
.page-hero h1 {
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.page-hero p {
  font-family: "Vazir", "Tahoma", sans-serif;
  color: #9cc9c4;
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ========== User menu (after login) ========== */
.user-menu-wrapper {
  position: relative;
}
.user-menu-btn {
  font-family: "Vazir", "Tahoma", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(14, 55, 50, 0.6);
  color: #cde4e1;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  direction: rtl;
}
.user-menu-btn:hover {
  border-color: rgba(0, 200, 83, 0.4);
  color: #fff;
}
.user-menu-btn img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.user-menu-btn i {
  font-size: 1.15rem;
  color: #5eead4;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: linear-gradient(135deg, #0e3732, #0a2a26);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  direction: rtl;
  font-family: "Vazir", "Tahoma", sans-serif;
}
.user-dropdown.active {
  display: block;
  animation: panelSlideIn 0.2s ease-out;
}
.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1.1rem;
  color: #cde4e1;
  font-size: 0.88rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s ease;
}
.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(200, 200, 200, 0.1);
  color: #fff;
}
.user-dropdown .separator {
  height: 1px;
  background: rgba(94, 234, 212, 0.12);
  margin: 0.3rem 0;
}
.user-dropdown i {
  font-size: 1rem;
  color: #5eead4;
  width: 1.2rem;
  text-align: center;
}
.user-dropdown .logout-btn {
  color: #f87171;
}
.user-dropdown .logout-btn i {
  color: #f87171;
}

/* ========== FAQ Page ========== */
.faq-search-wrapper {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}
.faq-search-wrapper input {
  width: 100%;
  padding: 0.75rem 1.1rem 0.75rem 2.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(10, 42, 38, 0.7);
  color: #cde4e1;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.95rem;
  direction: rtl;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}
.faq-search-wrapper input:focus {
  outline: none;
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.1);
}
.faq-search-wrapper input::placeholder {
  color: rgba(156, 201, 196, 0.5);
}
.faq-search-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5eead4;
  font-size: 1.1rem;
  pointer-events: none;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-card {
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-card:hover {
  border-color: rgba(94, 234, 212, 0.25);
}
.faq-card.open {
  border-color: rgba(0, 200, 83, 0.3);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: "Vazir", "Tahoma", sans-serif;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  direction: rtl;
  background: none;
  border: none;
  width: 100%;
  text-align: right;
  transition: background 0.2s ease;
  gap: 1rem;
}
.faq-question:hover {
  background: rgba(200, 200, 200, 0.06);
}
.faq-question .faq-arrow {
  color: #5eead4;
  font-size: 1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-card.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.25rem;
}
.faq-answer > * {
  overflow: hidden;
}
.faq-card.open .faq-answer {
  grid-template-rows: 1fr;
  padding: 0 1.25rem 1.25rem;
}
.faq-answer-text {
  font-family: "Vazir", "Tahoma", sans-serif;
  color: #9cc9c4;
  font-size: 0.92rem;
  line-height: 1.8;
  direction: rtl;
}
.faq-answer-img {
  margin-top: 1rem;
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(94, 234, 212, 0.15);
}

.faq-not-found {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.faq-not-found p {
  font-family: "Vazir", "Tahoma", sans-serif;
  color: #9cc9c4;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.faq-not-found a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.faq-not-found a:hover {
  background: linear-gradient(135deg, #00a844, #008f3a);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
  transform: translateY(-1px);
}

/* ========== Support Page ========== */
.support-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-card {
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  direction: rtl;
  font-family: "Vazir", "Tahoma", sans-serif;
}
.support-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.support-card h2 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.support-card p {
  color: #9cc9c4;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ts-address-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  border-radius: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(94, 234, 212, 0.1),
    rgba(0, 200, 83, 0.08)
  );
  border: 1px solid rgba(94, 234, 212, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}
.ts-address-box:hover {
  border-color: rgba(0, 200, 83, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.15);
}
.ts-address-box .ts-addr {
  color: #5eead4;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Consolas", "Courier New", monospace;
  letter-spacing: 0.03em;
  direction: ltr;
}
.ts-address-box .ts-copy {
  color: #9cc9c4;
  font-size: 0.85rem;
}
.ts-address-box i {
  color: #5eead4;
  font-size: 1.2rem;
  transition:
    color 0.2s,
    transform 0.25s;
}
.ts-address-box .copy-tooltip {
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%) scale(0.7);
  background: #00c853;
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ts-address-box .copy-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #00c853;
}
.ts-address-box.copied .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.ts-address-box.copied i {
  transform: scale(1.3);
  color: #00c853;
}
.ts-address-box .copy-bling {
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  pointer-events: none;
  opacity: 0;
}
.ts-address-box.copied .copy-bling {
  animation: copy-bling-burst 0.6s ease-out;
}
.ts-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
  background: rgba(0, 200, 83, 0.15);
  color: #5eead4;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Ticket form */
.ticket-section {
  max-width: 800px;
  margin: 2.5rem auto 0;
  direction: rtl;
  font-family: "Vazir", "Tahoma", sans-serif;
}
.ticket-section h2 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}
.ticket-form {
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.ticket-form .form-group {
  margin-bottom: 1rem;
}
.ticket-form label {
  display: block;
  color: #9cc9c4;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.ticket-form input,
.ticket-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(10, 42, 38, 0.7);
  color: #cde4e1;
  font-size: 0.9rem;
  font-family: "Vazir", "Tahoma", sans-serif;
  direction: rtl;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
.ticket-form textarea {
  min-height: 120px;
  resize: vertical;
}
.ticket-form input:focus,
.ticket-form textarea:focus {
  outline: none;
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.1);
}
.ticket-form .submit-btn {
  padding: 0.65rem 2rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ticket-form .submit-btn:hover {
  background: linear-gradient(135deg, #00a844, #008f3a);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
  transform: translateY(-1px);
}
.ticket-form .submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Ticket list */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-radius: 0.5rem;
  background: rgba(14, 55, 50, 0.4);
  border: 1px solid rgba(94, 234, 212, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
  gap: 1rem;
}
.ticket-item:hover {
  border-color: rgba(94, 234, 212, 0.25);
  background: rgba(14, 55, 50, 0.6);
}
.ticket-item .ticket-subject {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}
.ticket-item .ticket-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.ticket-status {
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.ticket-status.open {
  background: rgba(0, 200, 83, 0.15);
  color: #5eead4;
}
.ticket-status.answered {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
.ticket-status.closed {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.ticket-date {
  color: #6b8c88;
  font-size: 0.78rem;
  direction: ltr;
}

/* Ticket detail view */
.ticket-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #5eead4;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  cursor: pointer;
  text-decoration: none;
  font-family: "Vazir", "Tahoma", sans-serif;
  transition: color 0.2s ease;
}
.ticket-detail-back:hover {
  color: #fff;
}

.ticket-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
  padding-left: 0.5rem;
}
.ticket-msg {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.7;
}
.ticket-msg.user {
  background: rgba(14, 55, 50, 0.6);
  border: 1px solid rgba(94, 234, 212, 0.12);
  align-self: flex-end;
}
.ticket-msg.admin {
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.2);
  align-self: flex-start;
}
.ticket-msg .msg-sender {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #5eead4;
}
.ticket-msg .msg-text {
  color: #cde4e1;
}
.ticket-msg .msg-time {
  font-size: 0.72rem;
  color: #6b8c88;
  margin-top: 0.3rem;
  direction: ltr;
  text-align: left;
}

.ticket-reply-form {
  display: flex;
  gap: 0.5rem;
}
.ticket-reply-form textarea {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(10, 42, 38, 0.7);
  color: #cde4e1;
  font-size: 0.88rem;
  font-family: "Vazir", "Tahoma", sans-serif;
  direction: rtl;
  resize: none;
  min-height: 44px;
  box-sizing: border-box;
}
.ticket-reply-form textarea:focus {
  outline: none;
  border-color: rgba(0, 200, 83, 0.5);
}
.ticket-reply-form button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.ticket-reply-form button:hover {
  background: linear-gradient(135deg, #00a844, #008f3a);
}

.login-required-msg {
  text-align: center;
  padding: 2rem;
  color: #9cc9c4;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.95rem;
}
.login-required-msg a {
  color: #5eead4;
  text-decoration: none;
  cursor: pointer;
}

/* ========== Leaderboard Table ========== */
.lb-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}
.lb-search {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  position: relative;
}
.lb-search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(10, 42, 38, 0.7);
  color: #cde4e1;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.9rem;
  direction: rtl;
  box-sizing: border-box;
}
.lb-search input:focus {
  outline: none;
  border-color: rgba(0, 200, 83, 0.5);
}
.lb-search .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5eead4;
  pointer-events: none;
}

.lb-table-wrap {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(94, 234, 212, 0.12);
}
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.88rem;
}
.lb-table thead {
  background: rgba(14, 55, 50, 0.6);
}
.lb-table th {
  padding: 0.75rem 0.8rem;
  color: #5eead4;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid rgba(94, 234, 212, 0.15);
}
.lb-table th:hover {
  color: #fff;
}
.lb-table th.sorted {
  color: #00c853;
}
.lb-table th .sort-arrow {
  margin-right: 0.25rem;
  font-size: 0.7rem;
}
.lb-table tbody tr {
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(94, 234, 212, 0.06);
}
.lb-table tbody tr:hover {
  background: rgba(94, 234, 212, 0.05);
}
.lb-table td {
  padding: 0.65rem 0.8rem;
  text-align: center;
  color: #cde4e1;
  white-space: nowrap;
}
.lb-table .rank-cell {
  font-weight: 700;
  color: #5eead4;
  font-size: 0.95rem;
}
.lb-table .rank-cell.gold {
  color: #fbbf24;
}
.lb-table .rank-cell.silver {
  color: #d1d5db;
}
.lb-table .rank-cell.bronze {
  color: #d97706;
}

.lb-table .player-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  direction: ltr;
}
.lb-table .player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.lb-table .player-name {
  font-weight: 600;
  color: #fff;
}
.lb-table .player-steamid {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: monospace;
  cursor: pointer;
  transition: color 0.2s;
}
.lb-table .player-steamid:hover {
  color: #5eead4;
}
.lb-table .player-steamid.copied {
  color: #4ade80;
  animation: steamid-blink 0.3s ease 2;
}
@keyframes steamid-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.lb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: "Vazir", "Tahoma", sans-serif;
}
.lb-pagination button {
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(14, 55, 50, 0.5);
  color: #cde4e1;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.lb-pagination button:hover:not(:disabled) {
  border-color: rgba(0, 200, 83, 0.4);
  color: #fff;
}
.lb-pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.lb-pagination .page-info {
  color: #9cc9c4;
  font-size: 0.85rem;
}

.lb-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #9cc9c4;
  font-family: "Vazir", "Tahoma", sans-serif;
}

/* ========== Admin Panel ========== */
.admin-container {
  max-width: 900px;
  margin: 0 auto;
  direction: rtl;
  font-family: "Vazir", "Tahoma", sans-serif;
}
.admin-section {
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-section h2 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-section h2 i {
  color: #5eead4;
}

.admin-faq-form .form-group {
  margin-bottom: 1rem;
}
.admin-faq-form label {
  display: block;
  color: #9cc9c4;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.admin-faq-form input,
.admin-faq-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(10, 42, 38, 0.7);
  color: #cde4e1;
  font-size: 0.9rem;
  font-family: "Vazir", "Tahoma", sans-serif;
  direction: rtl;
  box-sizing: border-box;
}
.admin-faq-form textarea {
  min-height: 100px;
  resize: vertical;
}
.admin-faq-form input:focus,
.admin-faq-form textarea:focus {
  outline: none;
  border-color: rgba(0, 200, 83, 0.5);
}

.admin-faq-form .image-upload-area {
  border: 2px dashed rgba(94, 234, 212, 0.2);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.admin-faq-form .image-upload-area:hover {
  border-color: rgba(0, 200, 83, 0.4);
  background: rgba(0, 200, 83, 0.03);
}
.admin-faq-form .image-upload-area i {
  font-size: 2rem;
  color: #5eead4;
  display: block;
  margin-bottom: 0.5rem;
}
.admin-faq-form .image-upload-area span {
  color: #9cc9c4;
  font-size: 0.85rem;
}
.admin-faq-form .image-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-faq-form .image-preview {
  margin-top: 0.75rem;
  max-width: 200px;
  border-radius: 0.4rem;
  border: 1px solid rgba(94, 234, 212, 0.15);
}

.admin-faq-form .btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.admin-faq-form .btn-save {
  padding: 0.6rem 1.8rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.admin-faq-form .btn-save:hover {
  background: linear-gradient(135deg, #00a844, #008f3a);
}
.admin-faq-form .btn-cancel {
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 0.5rem;
  background: none;
  color: #9cc9c4;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-faq-form .btn-cancel:hover {
  border-color: rgba(200, 200, 200, 0.3);
  color: #fff;
}

.admin-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-faq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(10, 42, 38, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.08);
  gap: 1rem;
}
.admin-faq-item .faq-q-text {
  flex: 1;
  color: #cde4e1;
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-faq-item .faq-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.admin-faq-item .faq-actions button {
  padding: 0.35rem 0.6rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(94, 234, 212, 0.15);
  background: none;
  color: #9cc9c4;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}
.admin-faq-item .faq-actions button:hover {
  border-color: rgba(0, 200, 83, 0.4);
  color: #fff;
}
.admin-faq-item .faq-actions .delete-btn:hover {
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}

/* ========== Toast notifications ========== */
.toast {
  position: fixed;
  top: 7rem;
  right: 1.25rem;
  transform: translateX(40px);
  padding: 0.75rem 1.5rem;
  border-radius: 0.65rem;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  transition:
    opacity 0.35s,
    transform 0.35s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast.success {
  background: rgba(16, 185, 129, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #fff;
}
.toast.error {
  background: rgba(239, 68, 68, 0.92);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fff;
}

/* ========== Cookie Consent Banner ========== */
#cookieConsent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  animation: cookieSlideUp 0.4s ease-out;
}
#cookieConsent.cookie-hide {
  animation: cookieSlideDown 0.4s ease-in forwards;
}
.cookie-banner {
  background: rgba(8, 32, 28, 0.97);
  border-top: 1px solid rgba(45, 212, 168, 0.25);
  backdrop-filter: blur(16px);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}
.cookie-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.cookie-content p {
  margin: 0;
  font-size: 0.85rem;
  color: #b0d4cc;
  line-height: 1.6;
  font-family: "Vazir", sans-serif;
  direction: rtl;
}
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: "Vazir", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.cookie-accept {
  background: linear-gradient(135deg, #2dd4a8, #0f9b7a);
  color: #021a15;
}
.cookie-accept:hover {
  background: linear-gradient(135deg, #3de6b8, #12b08a);
  transform: translateY(-1px);
}
.cookie-reject {
  background: rgba(45, 212, 168, 0.1);
  color: #8cc5b8;
  border: 1px solid rgba(45, 212, 168, 0.2);
}
.cookie-reject:hover {
  background: rgba(45, 212, 168, 0.18);
  color: #a8ddd0;
}
@keyframes cookieSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes cookieSlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .cookie-content {
    flex-direction: column;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ========== Enter Page (Login / کشو) ========== */
.enter-container {
  position: relative;
  width: 820px;
  max-width: 95vw;
  min-height: 520px;
  background: rgba(10, 42, 38, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.enter-form-panel {
  width: 50%;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  direction: rtl;
  font-family: "Vazir", "Tahoma", sans-serif;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.enter-form-panel h1 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.enter-form-panel h1 i {
  color: #5eead4;
}
.enter-subtitle {
  color: #9cc9c4;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.enter-form {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.enter-field {
  position: relative;
}
.enter-field i {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5eead4;
  font-size: 1.05rem;
  font-weight: 700;
  pointer-events: none;
}
.enter-field input {
  width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(14, 55, 50, 0.7);
  color: #cde4e1;
  font-size: 0.92rem;
  font-family: "Vazir", "Tahoma", sans-serif;
  direction: rtl;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
.enter-field input:focus {
  outline: none;
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.1);
}
.enter-field input::placeholder {
  color: rgba(156, 201, 196, 0.45);
}

.enter-error {
  color: #f87171;
  font-size: 0.82rem;
  text-align: center;
  display: none;
}

.enter-submit {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.enter-submit i {
  font-size: 1.1rem;
  font-weight: 700;
}
.enter-submit:hover {
  background: linear-gradient(135deg, #00a844, #008f3a);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
  transform: translateY(-1px);
}
.enter-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.enter-footer-links {
  margin-top: 1rem;
  text-align: center;
}
.enter-footer-links a {
  color: #5eead4;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}
.enter-footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* Global hyperlink style — teal, no underline */
a {
  color: #5eead4;
  text-decoration: none;
}
a:hover {
  color: #fff;
  text-decoration: none;
}

/* Sliding overlay (door / کشو) — smooth spring transition */
.enter-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  z-index: 10;
  overflow: hidden;
  transition:
    left 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 0 1.25rem 1.25rem 0;
  will-change: left;
}
.enter-container.register-active .enter-overlay {
  left: 0;
  border-radius: 1.25rem 0 0 1.25rem;
}

.enter-overlay-inner {
  position: relative;
  width: 200%;
  height: 100%;
  display: flex;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.enter-container.register-active .enter-overlay-inner {
  transform: translateX(-50%);
}

/* Panels fade+scale during slide */
.enter-login-panel,
.enter-register-panel {
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.enter-container.register-active .enter-login-panel {
  opacity: 0.3;
  transform: scale(0.95);
  pointer-events: none;
}
.enter-container:not(.register-active) .enter-register-panel {
  opacity: 0.3;
  transform: scale(0.95);
  pointer-events: none;
}
.enter-container.register-active .enter-register-panel {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.enter-container:not(.register-active) .enter-login-panel {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Overlay panel content fades in after slide */
.overlay-panel {
  transition: opacity 0.4s ease 0.25s;
}
.enter-container.register-active .overlay-right-panel {
  opacity: 0;
}
.enter-container.register-active .overlay-left-panel {
  opacity: 1;
}
.enter-container:not(.register-active) .overlay-right-panel {
  opacity: 1;
}
.enter-container:not(.register-active) .overlay-left-panel {
  opacity: 0;
}

.overlay-panel {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  direction: rtl;
  font-family: "Vazir", "Tahoma", sans-serif;
  background: linear-gradient(135deg, #0a3d35 0%, #072a24 50%, #0a3d35 100%);
  border: 1px solid rgba(94, 234, 212, 0.1);
}

.overlay-logo {
  margin-bottom: 1.5rem;
}
.overlay-logo img {
  width: 80px;
  height: 80px;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.overlay-panel h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.overlay-panel p {
  color: #9cc9c4;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 260px;
}

.overlay-btn {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(94, 234, 212, 0.4);
  background: transparent;
  color: #5eead4;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.overlay-btn i {
  font-size: 1.1rem;
  font-weight: 700;
}
.overlay-btn:hover {
  background: rgba(94, 234, 212, 0.1);
  border-color: rgba(0, 200, 83, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

/* Register steps */
.register-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1.5rem;
}
.reg-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.reg-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reg-step-text {
  display: flex;
  flex-direction: column;
}
.reg-step-text strong {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.reg-step-text span {
  color: #9cc9c4;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Enter page – z-index for panels */
.enter-login-panel {
  position: relative;
  z-index: 5;
}
.enter-register-panel {
  position: relative;
  z-index: 5;
}

/* ── Enter page header: logo + username ── */
.enter-header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.enter-user-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #5eead4;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 2rem;
  white-space: nowrap;
}

/* Explore text under login/register buttons */
.enter-explore-text {
  color: #6b8c88;
  font-size: 0.78rem;
  text-align: center;
  margin-top: 0.75rem;
  font-family: "Vazir", "Tahoma", sans-serif;
  line-height: 1.6;
}

.enter-logo-link {
  position: relative;
}
.enter-logo-link img {
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}
.enter-logo-link:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(0, 200, 83, 0.35));
}

.enter-logo-tooltip {
  position: absolute;
  bottom: -2.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10, 42, 38, 0.95);
  color: #5eead4;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 50;
}
.enter-logo-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: rgba(10, 42, 38, 0.95);
}
.enter-logo-link:hover .enter-logo-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile: stack vertically */
@media (max-width: 700px) {
  .enter-container {
    flex-direction: column;
    min-height: auto;
    width: 95vw;
  }
  .enter-form-panel {
    width: 100%;
    padding: 2rem 1.5rem;
  }
  .enter-overlay {
    position: relative;
    width: 100%;
    left: 0 !important;
    height: auto;
    order: -1;
    border-radius: 1.25rem 1.25rem 0 0 !important;
  }
  .enter-overlay-inner {
    width: 100%;
    transform: none !important;
    flex-direction: column;
  }
  .overlay-panel {
    width: 100%;
    height: auto;
    padding: 1.5rem 1rem;
  }
  .enter-container.register-active .overlay-left-panel {
    display: none;
  }
  .enter-container:not(.register-active) .overlay-right-panel {
    display: flex;
  }
  .enter-container:not(.register-active) .overlay-left-panel {
    display: none;
  }
  .enter-container.register-active .overlay-right-panel {
    display: none;
  }
  .enter-container.register-active .overlay-left-panel {
    display: flex;
  }
  .enter-container:not(.register-active) .enter-register-panel {
    display: none;
  }
  .enter-container.register-active .enter-login-panel {
    display: none;
  }
  .enter-container.register-active .enter-register-panel {
    display: flex;
  }
}

/* ========== Downloads Page ========== */
.dl-buttons {
  display: flex;
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.dl-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 280px;
  max-width: 340px;
}
.dl-btn-primary {
  background: linear-gradient(
    135deg,
    rgba(0, 200, 83, 0.15),
    rgba(0, 168, 68, 0.1)
  );
  border: 1px solid rgba(0, 200, 83, 0.35);
}
.dl-btn-primary:hover {
  border-color: rgba(0, 200, 83, 0.6);
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.2);
  transform: translateY(-2px);
}
.dl-btn-secondary {
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.2);
}
.dl-btn-secondary:hover {
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 4px 20px rgba(94, 234, 212, 0.1);
  transform: translateY(-2px);
}
.dl-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: rgba(94, 234, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-btn-icon i {
  font-size: 1.5rem;
  color: #5eead4;
}
.dl-btn-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dl-btn-info strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.dl-btn-info span {
  color: #9cc9c4;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.dl-btn-arrow {
  color: #5eead4;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Safety section */
.dl-safety {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  background: rgba(14, 55, 50, 0.4);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}
.dl-safety-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.dl-safety-header i {
  font-size: 1.8rem;
  color: #00c853;
}
.dl-safety-header h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.dl-safety > p {
  color: #9cc9c4;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.dl-security-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dl-security-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #9cc9c4;
  font-size: 0.88rem;
  line-height: 1.7;
  font-family: "Vazir", "Tahoma", sans-serif;
}
.dl-security-list li i {
  color: #00c853;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.dl-safety-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  background: rgba(0, 200, 83, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
}
.safety-badge i {
  color: #00c853;
  font-size: 0.9rem;
}
.safety-badge span {
  color: #5eead4;
}

.dl-safety-screenshots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.dl-safety-screenshots img {
  max-width: 300px;
  border-radius: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.15);
}

/* Step by step guide */
.dl-guide {
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.dl-guide > h2 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.dl-guide > h2 i {
  color: #5eead4;
}

.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.dl-steps::before {
  content: "";
  position: absolute;
  right: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 200, 83, 0.4) 15%,
    rgba(94, 234, 212, 0.25) 85%,
    transparent
  );
}

.dl-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  position: relative;
}
.dl-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 12px rgba(0, 200, 83, 0.3);
}
.dl-step-content {
  flex: 1;
  padding-top: 0.35rem;
}
.dl-step-content h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.dl-step-content p {
  color: #9cc9c4;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.dl-step-content p:last-child {
  margin-bottom: 0;
}
.dl-step-content code {
  background: rgba(94, 234, 212, 0.1);
  color: #5eead4;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  direction: ltr;
  display: inline-block;
}
.dl-step-content a {
  color: #5eead4;
  text-decoration: none;
}
.dl-step-content a:hover {
  color: #fff;
}

.dl-code-box {
  background: rgba(10, 42, 38, 0.8);
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  margin: 0.5rem 0;
  direction: ltr;
  text-align: left;
}
.dl-code-box code {
  background: none;
  padding: 0;
  font-size: 0.88rem;
}

.dl-tip {
  color: #f0c040 !important;
  font-size: 0.85rem !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.dl-tip i {
  color: #f0c040;
  flex-shrink: 0;
}

.dl-checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dl-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cde4e1;
  font-size: 0.88rem;
}
.dl-checklist li i {
  color: #00c853;
  font-size: 0.9rem;
}

/* Downloads FAQ mini */
.dl-faq {
  max-width: 700px;
  margin: 0 auto 2rem;
}
.dl-faq > h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.dl-faq > h2 i {
  color: #5eead4;
}

.dl-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .dl-faq-grid {
    grid-template-columns: 1fr;
  }
}
.dl-faq-item {
  background: rgba(14, 55, 50, 0.4);
  border: 1px solid rgba(94, 234, 212, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.dl-faq-item h4 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.dl-faq-item p {
  color: #9cc9c4;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
.dl-faq-item a {
  color: #5eead4;
  text-decoration: none;
}
.dl-faq-item a:hover {
  color: #fff;
}
.dl-faq-item code {
  background: rgba(94, 234, 212, 0.1);
  color: #5eead4;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  font-size: 0.82rem;
  direction: ltr;
}

/* ========== Store Page ========== */
.store-server-tabs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.store-server-tab {
  padding: 0.65rem 1.3rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background: rgba(14, 55, 50, 0.4);
  color: #9cc9c4;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
}
.store-server-tab .tab-name {
  font-weight: 700;
  color: #fff;
}
.store-server-tab .tab-info {
  font-size: 0.75rem;
  color: #6b8c88;
}
.store-server-tab .tab-soon {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(248, 113, 113, 0.9);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 1rem;
  font-weight: 700;
}
.store-server-tab:hover:not(:disabled) {
  border-color: rgba(0, 200, 83, 0.4);
  color: #fff;
}
.store-server-tab.active {
  border-color: rgba(0, 200, 83, 0.5);
  background: rgba(0, 200, 83, 0.1);
  color: #fff;
}
.store-server-tab.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Rank cards grid */
.store-ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.rank-card {
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  direction: rtl;
  font-family: "Vazir", "Tahoma", sans-serif;
}
.rank-card:hover {
  border-color: var(--rank-color, rgba(94, 234, 212, 0.4));
  transform: translateY(-4px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.3),
    0 0 20px color-mix(in srgb, var(--rank-color, #5eead4) 20%, transparent);
}

.rank-popular {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  z-index: 2;
}

.rank-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(10, 42, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.rank-card:hover .rank-card-img img {
  transform: scale(1.05);
}

.rank-card-body {
  padding: 1.25rem;
}
.rank-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.rank-card-tagline {
  display: block;
  color: #6b8c88;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.rank-card-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.rank-card-highlights li {
  color: #9cc9c4;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.rank-card-highlights li i {
  color: #00c853;
  font-size: 0.85rem;
}
.rank-card-highlights li.more {
  color: #5eead4;
  font-size: 0.78rem;
  font-weight: 600;
}

.rank-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(94, 234, 212, 0.08);
}
.rank-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  direction: ltr;
}
.rank-card-btn {
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.rank-card-btn:hover {
  background: linear-gradient(135deg, #00a844, #008f3a);
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

/* Rank detail modal */
.rank-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.rank-modal {
  background: linear-gradient(135deg, #0e3732, #0a2a26);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 1.25rem;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  direction: rtl;
  font-family: "Vazir", "Tahoma", sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.rank-modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  color: #9cc9c4;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1;
}
.rank-modal-close:hover {
  color: #fff;
}

.rank-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.rank-modal-header img {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 1px solid rgba(94, 234, 212, 0.2);
}
.rank-modal-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}
.rank-modal-tagline {
  color: #6b8c88;
  font-size: 0.85rem;
}
.rank-modal-desc {
  color: #9cc9c4;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.rank-modal-perks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.perk-group h4 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.perk-group h4 i {
  color: #5eead4;
  font-size: 0.85rem;
}
.perk-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.perk-group ul li {
  color: #9cc9c4;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.perk-group ul li i {
  color: #00c853;
  font-size: 0.8rem;
}

.rank-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(94, 234, 212, 0.12);
}
.rank-modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  direction: ltr;
}
.rank-modal-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.rank-modal-buy:hover {
  background: linear-gradient(135deg, #00a844, #008f3a);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
  transform: translateY(-1px);
}

/* ========== Checkout Page ========== */
.checkout-wrapper {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.checkout-card {
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
}
.checkout-card h2 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkout-card h2 i {
  color: #5eead4;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(94, 234, 212, 0.08);
  margin-bottom: 1rem;
}
.checkout-item-img img {
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid rgba(94, 234, 212, 0.15);
}
.checkout-item-info {
  flex: 1;
}
.checkout-item-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.checkout-server {
  display: block;
  color: #5eead4;
  font-size: 0.82rem;
  font-weight: 600;
}
.checkout-tagline {
  display: block;
  color: #6b8c88;
  font-size: 0.78rem;
}
.checkout-item-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  direction: ltr;
}

.checkout-perks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.checkout-perk {
  color: #9cc9c4;
  font-size: 0.82rem;
  line-height: 1.5;
}
.checkout-perk strong {
  color: #5eead4;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(94, 234, 212, 0.12);
}
.checkout-total-row span {
  color: #9cc9c4;
  font-size: 0.95rem;
  font-weight: 600;
}
.checkout-total-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00c853 !important;
  direction: ltr;
}

.checkout-player {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.checkout-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkout-info-row .label {
  color: #9cc9c4;
  font-size: 0.88rem;
}
.checkout-info-row .value {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  direction: ltr;
}

.checkout-notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.checkout-notes li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9cc9c4;
  font-size: 0.88rem;
}
.checkout-notes li i {
  color: #00c853;
  font-size: 0.9rem;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #5eead4;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.checkout-back:hover {
  color: #fff;
}
.checkout-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2.5rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.checkout-pay-btn:hover {
  background: linear-gradient(135deg, #00a844, #008f3a);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
  transform: translateY(-1px);
}
.checkout-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.checkout-success {
  text-align: center;
  padding: 3rem 1rem;
}
.checkout-success .success-icon {
  font-size: 4rem;
  color: #00c853;
  margin-bottom: 1rem;
}
.checkout-success h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.checkout-success p {
  color: #9cc9c4;
  font-size: 1rem;
}

/* ========== Original styles below ========== */
.profile-totals-row-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  padding: 0 1rem 0.5rem 1rem;
  margin: 2rem 0;
}

.profile-totals-column {
  background: #0e3732cc;
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
}

.profile-totals-head {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.profile-totals-subtitle {
  font-size: 1rem;
  color: #a0a6b8;
  margin-bottom: 1.5rem;
}

.profile-totals-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-totals-row {
  display: flex;
  align-items: center;
  background: rgba(14, 55, 50, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  gap: 0.85rem;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.08);
}

.profile-totals-icon {
  width: 44px;
  height: 44px;
  background: rgba(94, 234, 212, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9cc9c4;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.profile-totals-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-totals-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: #eef5f3;
  margin-bottom: 0.15rem;
}

.profile-totals-caption {
  font-size: 0.92rem;
  color: #6e8f8a;
  line-height: 1.2;
}

.profile-totals-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-left: auto;
  text-align: right;
  min-width: 90px;
}

@media (max-width: 900px) {
  .profile-totals-row-group {
    flex-direction: column;
    gap: 2.5rem;
  }
}
.profile-server-metric-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  margin: 0.5rem 0 0.5rem 0;
}

.profile-server-metric-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  background: rgba(8, 24, 21, 0.97);
  border: 1.5px solid rgba(94, 234, 212, 0.28);
  border-radius: 1.35rem;
  box-shadow:
    0 18px 45px rgba(4, 17, 15, 0.38),
    0 0 18px rgba(94, 234, 212, 0.1);
  min-width: 320px;
  min-height: 340px;
  padding: 2.2rem 2rem 2.2rem 2rem;
  position: relative;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.profile-server-metric-card:hover {
  box-shadow:
    0 28px 65px rgba(4, 17, 15, 0.48),
    0 0 28px rgba(94, 234, 212, 0.18);
  border-color: rgba(94, 234, 212, 0.45);
}

.profile-server-metric-header {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #e1f6f0;
  margin-bottom: 2.1rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(94, 234, 212, 0.08);
}

@media (max-width: 900px) {
  .profile-server-metric-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .profile-server-metric-card {
    min-width: 0;
    padding: 1.2rem 1rem 1.2rem 1rem;
  }
  .profile-server-metric-header {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }
}
.profile-server-metrics-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  margin: 2rem 0 2.5rem 0;
}

.profile-metric-header {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 700;
  color: #e1f6f0;
  margin: 1.2rem 0 2.2rem 0;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .profile-server-metrics-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .profile-metric-header {
    font-size: 1.5rem;
    margin: 1rem 0 1.5rem 0;
  }
}

.profile-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 18, 0.82);
  border-radius: 1.25rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  box-shadow: 0 18px 35px rgba(4, 17, 15, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 10;
}

.profile-card-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-card-overlay .spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
  margin-top: 0.75rem;
}

.profile-card-overlay .profile-loading-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: #cde4e1;
  text-align: center;
  margin-top: -0.75rem;
}

body,
body
  *:not(input):not(textarea):not([contenteditable="true"]):not(
    [contenteditable=""]
  ):not([tabindex="0"]) {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  outline: none !important;
  caret-color: transparent !important;
}

input,
textarea,
[contenteditable="true"],
[contenteditable=""] {
  user-select: text;
  -webkit-user-select: text;
  caret-color: auto;
}
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(205, 228, 225, 0.4) rgba(0, 0, 0, 0.1);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4a8c5a, #2d5a3d);
  border-radius: 6px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5aa76a, #3d6a4d);
  border: 2px solid rgba(205, 228, 225, 0.2);
}

*::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #000000;
  background-image:
    linear-gradient(rgba(20, 79, 72, 0.6), rgba(0, 0, 0, 0.7)),
    url("../images/back-cqCR5fXU.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* NOTE: backdrop-filter is applied via body::before below.
     Applying it directly on <body> creates a new containing block
     for position:fixed descendants (e.g. the purchase modal),
     which breaks viewport-centered overlays. */
  color: #cde4e1;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  --hz-header-progress: 0;
  --hz-header-bg-alpha-top: 0;
  --hz-header-bg-alpha-bottom: 0;
  --hz-header-border-alpha: 0;
  --hz-header-shadow-alpha: 0;
  --hz-header-blur: 0px;
  --hz-header-float-y: 0px;
  --hz-header-sticky-top: 0px;
  --hz-nav-bg-alpha-top: 0;
  --hz-nav-bg-alpha-bottom: 0;
  --hz-nav-border-alpha: 0;
  --hz-nav-radius: 0px;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(94, 234, 212, var(--hz-header-border-alpha));
  position: relative;
  top: auto;
  z-index: 9200;
  background: linear-gradient(
    180deg,
    rgba(7, 23, 21, var(--hz-header-bg-alpha-top)) 0%,
    rgba(7, 23, 21, var(--hz-header-bg-alpha-bottom)) 100%
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, var(--hz-header-shadow-alpha));
  backdrop-filter: blur(var(--hz-header-blur));
  -webkit-backdrop-filter: blur(var(--hz-header-blur));
  transition:
    border-color 0.2s ease,
    background 0.2s linear,
    box-shadow 0.2s linear,
    backdrop-filter 0.2s linear,
    -webkit-backdrop-filter 0.2s linear;
}

.header.hz-header-fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--hz-header-sticky-top);
}

.header.header-scrolled {
  /* State class kept for compatibility; visual progression comes from CSS vars. */
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

#hzTopAdMount {
  position: relative;
  width: 100%;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  text-decoration: none;
}

.logo img {
  height: 2.5rem;
  width: 2.5rem;
  margin-right: 0.65rem;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #cde4e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  gap: 0.75rem;
}

.nav-link:hover,
.nav-link.active {
  color: #e5f1ef;
  background-color: rgba(156, 201, 196, 0.1);
  transform: translateY(-1px);
}

.nav-link svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  color: #9cc9c4;
}

.nav-link i {
  font-size: 1.3rem;
  color: #9cc9c4;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
}

.nav-link:hover i {
  color: #e5f1ef;
  transform: scale(1.1);
}

.player-name-link {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.player-name-link:hover {
  color: #3b82f6;
  transform: translateX(2px);
  text-decoration: none;
}

.player-name-link:before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.3s ease;
}

.player-name-link:hover:before {
  width: 100%;
}

.simple-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 300px;
  margin: 0 2rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.simple-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(156, 201, 196, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem 3rem 0.75rem 1rem;
  color: #cde4e1;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.simple-search-input::placeholder {
  color: rgba(205, 228, 225, 0.5);
}

.simple-search-input:focus {
  background: rgba(0, 0, 0, 0.5);
  border-color: #9cc9c4;
  box-shadow: 0 0 0 2px rgba(156, 201, 196, 0.2);
}

.clear-btn-simple {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(205, 228, 225, 0.5);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  padding: 0;
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}

.clear-btn-simple:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
  .simple-search {
    max-width: 200px;
    margin: 0 1rem;
  }

  .simple-search-input {
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

.loading-spinner-enhanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 3rem;
  background: rgba(20, 79, 72, 0.6);
  backdrop-filter: none;
  border: 1px solid rgba(156, 201, 196, 0.2);
  border-radius: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.loading-spinner-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(156, 201, 196, 0.15),
    transparent
  );
  animation: shimmer-loading 2s infinite;
}

@keyframes shimmer-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.loading-animation {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
}

.loading-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loading-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: spin-rings 2s linear infinite;
}

.ring-1 {
  width: 80px;
  height: 80px;
  border-top-color: #9cc9c4;
  border-right-color: #9cc9c4;
  animation-duration: 2s;
  top: -40px;
  left: -40px;
}

.ring-2 {
  width: 60px;
  height: 60px;
  border-bottom-color: #cde4e1;
  border-left-color: #cde4e1;
  animation-duration: 1.5s;
  animation-direction: reverse;
  top: -30px;
  left: -30px;
}

.ring-3 {
  width: 40px;
  height: 40px;
  border-top-color: #e5f1ef;
  border-right-color: #e5f1ef;
  animation-duration: 1s;
  top: -20px;
  left: -20px;
}

@keyframes spin-rings {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 8px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9cc9c4, #cde4e1);
  animation: pulse-dots 1.5s ease-in-out infinite;
}

.dot-1 {
  animation-delay: 0s;
}

.dot-2 {
  animation-delay: 0.2s;
}

.dot-3 {
  animation-delay: 0.4s;
}

@keyframes pulse-dots {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ═══════ Global 3-circle Loader ═══════ */
.hz-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2rem 1rem;
}
.hz-loader .hz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5eead4;
  animation: hzBounce 1.4s ease-in-out infinite both;
}
.hz-loader .hz-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.hz-loader .hz-dot:nth-child(2) {
  animation-delay: -0.16s;
}
.hz-loader .hz-dot:nth-child(3) {
  animation-delay: 0s;
}
@keyframes hzBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
/* Compact variant for table cells / inline */
.hz-loader.hz-loader-sm {
  padding: 1rem 0.5rem;
  gap: 6px;
}
/* 3-circle rotating loader */
.hz-circles-loader {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 3rem auto;
}
.hz-circles-loader .hz-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: hzSpin 1.5s linear infinite;
}
.hz-circle.hz-c1 {
  border-top-color: #5eead4;
  animation-duration: 1.5s;
}
.hz-circle.hz-c2 {
  width: 65%;
  height: 65%;
  top: 17.5%;
  left: 17.5%;
  border-right-color: rgba(255, 255, 255, 0.5);
  animation-duration: 2s;
  animation-direction: reverse;
}
.hz-circle.hz-c3 {
  width: 35%;
  height: 35%;
  top: 32.5%;
  left: 32.5%;
  border-bottom-color: #ef4444;
  animation-duration: 1s;
}
@keyframes hzSpin {
  to {
    transform: rotate(360deg);
  }
}

.hz-loader.hz-loader-sm .hz-dot {
  width: 7px;
  height: 7px;
}

.loading-text {
  text-align: center;
  z-index: 2;
  position: relative;
}

.loading-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #e5f1ef, #cde4e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-text p {
  color: #9ca3af;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  animation: fade-text 2s ease-in-out infinite;
}

@keyframes fade-text {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(156, 201, 196, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #9cc9c4, #cde4e1, #e5f1ef);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: progress-bar 2s ease-in-out infinite;
}

@keyframes progress-bar {
  0% {
    width: 0%;
    background-position: 200% 0;
  }
  50% {
    width: 70%;
    background-position: 0% 0;
  }
  100% {
    width: 100%;
    background-position: -200% 0;
  }
}

.search-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.search-btn.loading i {
  animation: spin-search 1s linear infinite;
}

@keyframes spin-search {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.search-btn.loading span::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 8px;
  animation: loading-dots-btn 1.5s ease-in-out infinite;
}

@keyframes loading-dots-btn {
  0%,
  60%,
  100% {
    transform: scale(0);
    opacity: 0;
  }
  30% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .loading-spinner-enhanced {
    min-height: 300px;
    padding: 2rem 1rem;
    border-radius: 1.5rem;
  }

  .loading-animation {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
  }

  .ring-1 {
    width: 70px;
    height: 70px;
    top: -35px;
    left: -35px;
  }

  .ring-2 {
    width: 50px;
    height: 50px;
    top: -25px;
    left: -25px;
  }

  .ring-3 {
    width: 30px;
    height: 30px;
    top: -15px;
    left: -15px;
  }

  .loading-text h3 {
    font-size: 1.25rem;
  }

  .loading-text p {
    font-size: 0.9rem;
  }

  .loading-progress {
    width: 150px;
  }
}

.header-sortable {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.header-sortable:hover {
  background: rgba(156, 201, 196, 0.1);
  color: #e5f1ef;
  transform: translateY(-1px);
}

.header-sortable .sort-icon {
  font-size: 0.75rem;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.header-sortable:hover .sort-icon {
  opacity: 1;
}

.header-sortable.active {
  background: rgba(156, 201, 196, 0.2);
  color: #e5f1ef;
}

.header-sortable.active .sort-icon {
  opacity: 1;
  color: #9cc9c4;
}

.header-sortable.sort-asc .sort-icon {
  transform: rotate(180deg);
}

.header-sortable.sort-desc .sort-icon {
  transform: rotate(0deg);
}

.mobile-menu-btn {
  display: block;
  color: #cde4e1;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.mobile-menu {
  display: none;
  background: rgba(14, 55, 50, 0.95);
  backdrop-filter: none;
  padding: 1rem;
  margin-top: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.mobile-menu .nav-link:hover {
  background-color: rgba(156, 201, 196, 0.1);
}

.mobile-menu .nav-link i {
  font-size: 1.2rem;
  color: #9cc9c4;
  min-width: 1.2rem;
}

.main-content {
  flex: 1;
  padding: 3rem 0;
}

.hero {
  text-align: center;
  padding: 6rem 0 8rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: bold;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: #cde4e1;
  max-width: 48rem;
  margin: 0 auto 1rem;
}

.hero .description {
  font-size: 1rem;
  color: #9cc9c4;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

.features {
  margin: 6rem 0;
}

.features h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  gap: 2.5rem;
}

@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: linear-gradient(
    135deg,
    rgba(20, 79, 72, 0.7),
    rgba(14, 55, 50, 0.8)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(20, 79, 72, 0.4);
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.2rem;
  text-align: center;
}

.feature-card p {
  color: #9cc9c4;
  line-height: 1.7;
  font-size: 1rem;
  text-align: center;
  flex-grow: 1;
}

.store-section {
  background: #0e3732cc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 120, 109, 0.4);
  color: #5ad5c7;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.store-title {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
}

.store-description {
  font-size: 1.125rem;
  color: rgba(205, 228, 225, 0.8);
  text-align: center;
  margin-bottom: 2.5rem;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.perk-card {
  background: linear-gradient(
    135deg,
    rgba(20, 79, 72, 0.7),
    rgba(14, 55, 50, 0.8)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.3s;
}

.perk-card:hover {
  transform: translateY(-2px);
}

.perk-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.perk-card p {
  font-size: 0.875rem;
  color: #9cc9c4;
}

.cta-section {
  text-align: center;
  margin-top: 2rem;
}

.browse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #29a092, #33c9b7);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(51, 201, 183, 0.25);
}

.browse-btn:hover {
  transform: scale(1.02);
}

.ranks-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
}

.ranks-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
}

.server-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.server-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.server-btn.active {
  background: linear-gradient(to right, #29a092, #33c9b7);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(51, 201, 183, 0.25);
}

.server-btn:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #9cc9c4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.1);
}

.ranks-grid {
  display: grid;
  gap: 1.5rem;
}

.rank-card {
  background: linear-gradient(
    135deg,
    rgba(79, 209, 199, 0.15),
    rgba(45, 90, 61, 0.25)
  );
  border: 1px solid rgba(79, 209, 199, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.rank-card.coming-soon {
  cursor: not-allowed;
}

.rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rank-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.rank-badge {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rank-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.view-kits-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.view-kits-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rank-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.perks-list {
  margin-bottom: 1rem;
}

.perks-list h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(90, 213, 199, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.perks-list ul {
  list-style: none;
}

.perks-list li {
  font-size: 0.875rem;
  color: #9cc9c4;
  margin-bottom: 0.375rem;
}

.kit-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.kit-image {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.kit-placeholder {
  border-radius: 0.375rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #9cc9c4;
}

.buy-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #29a092, #33c9b7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(51, 201, 183, 0.25);
  margin-top: auto;
}

.buy-btn:hover {
  transform: scale(1.02);
}

.buy-btn:disabled {
  background: #1e786d;
  cursor: wait;
  opacity: 0.8;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer {
  text-align: center;
  padding: 2rem 0;
  color: #9cc9c4;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .logo img {
    height: 4rem;
    width: 4rem;
  }

  .hero h1 {
    font-size: 5rem;
  }
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .logo img {
    height: 5rem;
    width: 5rem;
  }

  .hero h1 {
    font-size: 7rem;
  }

  .store-title {
    font-size: 3rem;
  }
}

.profile-dropdown {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(20, 79, 72, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  color: #cde4e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-btn:hover {
  background: rgba(20, 79, 72, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.username {
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  color: #9cc9c4;
  transition: transform 0.2s ease;
}

.profile-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.profile-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  background: rgba(14, 55, 50, 0.95);
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 280px;
  margin-top: 0.5rem;
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.dropdown-user-info h4 {
  margin: 0;
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

.dropdown-user-info p {
  margin: 0.25rem 0 0 0;
  color: #9cc9c4;
  font-size: 0.75rem;
  font-family: "Courier New", monospace;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: #cde4e1;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(41, 160, 146, 0.1);
  color: white;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: #9cc9c4;
}

.dropdown-item:hover svg {
  color: #29a092;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.dropdown-item.admin-item {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1) 0%,
    rgba(245, 158, 11, 0.05) 100%
  );
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  font-weight: 600;
}

.dropdown-item.admin-item:hover {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.2) 0%,
    rgba(245, 158, 11, 0.1) 100%
  );
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  transform: translateX(2px);
}

.dropdown-item.admin-item svg {
  color: #f59e0b;
}

.dropdown-item.admin-item:hover svg {
  color: #fbbf24;
  transform: scale(1.1);
}

.mobile-profile-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(20, 79, 72, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: #cde4e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-profile-btn:hover {
  background: rgba(20, 79, 72, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-dropdown-menu {
  background: rgba(14, 55, 50, 0.95);
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease-out;
}

@media (max-width: 1024px) {
  .profile-dropdown-menu {
    right: -1rem;
    min-width: 260px;
  }

  .username {
    max-width: 100px;
  }
}

.signing-out {
  animation: signOutTransform 0.6s ease-in-out forwards;
}

.steam-btn-enter {
  animation: steamBtnEnter 0.6s ease-out forwards;
}

.mobile-auth-enter {
  animation: mobileAuthEnter 0.6s ease-out forwards;
}

@keyframes signOutTransform {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0px);
  }
  25% {
    transform: scale(1.05) rotate(2deg);
    filter: blur(0.5px);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95) rotate(-1deg);
    filter: blur(1px);
  }
  75% {
    opacity: 0.3;
    transform: scale(0.8) rotate(1deg);
    filter: blur(2px);
  }
  100% {
    opacity: 0;
    transform: scale(0.6) rotate(0deg);
    filter: blur(3px);
  }
}

@keyframes steamBtnEnter {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(-10px);
  }
  25% {
    opacity: 0.3;
    transform: scale(0.8) translateY(-5px) rotate(-1deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05) translateY(2px) rotate(1deg);
    box-shadow: 0 0 15px rgba(41, 160, 146, 0.4);
  }
  75% {
    opacity: 0.9;
    transform: scale(0.98) translateY(-1px) rotate(-0.5deg);
    box-shadow: 0 0 20px rgba(41, 160, 146, 0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
    box-shadow: 0 0 10px rgba(41, 160, 146, 0.2);
  }
}

@keyframes mobileAuthEnter {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(-15px);
  }
  30% {
    opacity: 0.4;
    transform: scale(0.9) translateY(-8px);
  }
  60% {
    opacity: 0.8;
    transform: scale(1.02) translateY(3px);
  }
  80% {
    opacity: 0.95;
    transform: scale(0.99) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hidden {
  display: none !important;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.server-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.server-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.region-buttons {
  display: flex;
  gap: 0.5rem;
  background: rgba(14, 55, 50, 0.5);
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sort-options {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.region-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #9cc9c4;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 60px;
}

.region-btn i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.region-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.region-btn.active {
  background: linear-gradient(to right, #29a092, #33c9b7);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(51, 201, 183, 0.25);
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(14, 55, 50, 0.5);
  color: #9cc9c4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
  justify-content: center;
}

.sort-btn svg {
  width: 1rem;
  height: 1rem;
}

.sort-btn i {
  font-size: 0.9rem;
}

.sort-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.sort-btn.active {
  background: linear-gradient(to right, #29a092, #33c9b7);
  color: white;
  border-color: #33c9b7;
  box-shadow: 0 2px 4px rgba(51, 201, 183, 0.25);
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.server-card {
  background: linear-gradient(
    135deg,
    rgba(79, 209, 199, 0.15),
    rgba(45, 90, 61, 0.25)
  );
  border: 1px solid rgba(79, 209, 199, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s;
  backdrop-filter: none;
}

.server-card:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 201, 183, 0.3);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.server-name-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.server-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}

.server-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem 0;
}

.server-region {
  font-size: 0.875rem;
  color: #9cc9c4;
}

.server-status {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.server-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.stat-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #33c9b7;
}

.stat-label {
  font-size: 0.75rem;
  color: #9cc9c4;
  font-weight: 600;
}

.stat-value {
  font-size: 0.875rem;
  color: white;
  font-weight: 700;
}

.server-details {
  margin-bottom: 1.5rem;
}

.server-details p {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: #9cc9c4;
}

.server-details strong {
  color: white;
}

.server-actions {
  display: flex;
  gap: 0.75rem;
}

.connect-btn,
.direct-connect-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.connect-btn svg,
.direct-connect-btn svg {
  width: 1rem;
  height: 1rem;
}

.connect-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #9cc9c4;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.connect-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.direct-connect-btn {
  background: linear-gradient(to right, #29a092, #33c9b7);
  color: white;
}

.direct-connect-btn:hover {
  background: linear-gradient(to right, #247a6b, #2bb3a1);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(51, 201, 183, 0.25);
}

@media (max-width: 1200px) {
  .servers-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .servers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .region-buttons {
    flex-wrap: wrap;
    padding: 0.375rem;
  }

  .region-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    min-width: 50px;
  }

  .sort-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .server-card {
    padding: 1.25rem;
  }

  .server-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.875rem;
  }

  .stat-item {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .server-actions {
    flex-direction: column;
  }

  .feature-card {
    padding: 2rem;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .server-controls {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .region-buttons {
    width: 100%;
    justify-content: center;
  }

  .region-btn {
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .sort-options {
    justify-content: center;
    width: 100%;
  }

  .sort-btn {
    padding: 0.5rem 1rem;
  }

  .sort-btn i {
    margin-right: 0.25rem;
  }

  .server-card {
    padding: 1rem;
  }

  .server-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .server-status {
    align-self: flex-end;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.discord-hero {
  text-align: center;
  padding: 2rem 0 4rem 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.discord-hero-content {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.discord-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #5865f2, #7289da);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px -12px rgba(88, 101, 242, 0.35);
}

.discord-logo svg {
  width: 40px;
  height: 40px;
  color: white;
}

.discord-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin: 1rem 0;
  line-height: 1.1;
}

.discord-subtitle {
  font-size: 1.25rem;
  color: #9cc9c4;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.discord-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #33c9b7;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #9cc9c4;
  font-weight: 600;
}

.discord-cta {
  margin: 3rem 0;
}

.discord-join-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #5865f2, #7289da);
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(88, 101, 242, 0.4);
  transition: all 0.3s;
  overflow: hidden;
}

.discord-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(88, 101, 242, 0.5);
}

.discord-join-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.discord-join-btn:hover .btn-glow {
  left: 100%;
}

.discord-note {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #9cc9c4;
}

.discord-features {
  padding: 4rem 0;
}

.features-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 3rem;
}

.discord-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.discord-feature-card {
  background: linear-gradient(
    135deg,
    rgba(20, 79, 72, 0.7),
    rgba(14, 55, 50, 0.8)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.discord-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #33c9b7, #29a092);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.discord-feature-card:hover::before {
  transform: scaleX(1);
}

.discord-feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(51, 201, 183, 0.3);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #33c9b7, #29a092);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.discord-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.discord-feature-card p {
  color: #9cc9c4;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-tags span {
  padding: 0.25rem 0.75rem;
  background: rgba(51, 201, 183, 0.2);
  color: #33c9b7;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.discord-final-cta {
  text-align: center;
  padding: 4rem 0;
  background: rgba(14, 55, 50, 0.3);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: #9cc9c4;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #29a092, #33c9b7);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(51, 201, 183, 0.4);
}

.cta-button svg {
  width: 1rem;
  height: 1rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #9cc9c4;
}

@media (max-width: 1200px) {
  .discord-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .discord-title {
    font-size: 2rem;
  }

  .discord-subtitle {
    font-size: 1rem;
  }

  .discord-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .discord-features-grid {
    grid-template-columns: 1fr;
  }

  .features-heading {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }
}

.appeals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.appeal-process-card,
.required-info-card {
  background: linear-gradient(
    135deg,
    rgba(20, 79, 72, 0.7),
    rgba(14, 55, 50, 0.8)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}

.appeal-process-card:hover,
.required-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 201, 183, 0.3);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #33c9b7;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #33c9b7, #29a092);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.25rem 0;
}

.step-content p {
  font-size: 0.875rem;
  color: #9cc9c4;
  margin: 0;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
}

.info-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #33c9b7;
  flex-shrink: 0;
}

.info-item div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.info-item span {
  font-size: 0.75rem;
  color: #9cc9c4;
}

.guidelines-section {
  background: rgba(14, 55, 50, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 3rem;
}

.guidelines-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.guidelines-header svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #33c9b7;
}

.guidelines-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.guideline-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.guideline-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.guideline-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #33c9b7;
  margin: 0 0 0.5rem 0;
}

.guideline-item p {
  font-size: 0.875rem;
  color: #9cc9c4;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .appeals-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guidelines-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .process-step {
    align-items: center;
  }

  .info-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #29a092, #33c9b7);
  border-radius: 0.75rem;
  font-size: 1.5rem;
  color: white;
}

.stat-info {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #9cc9c4;
  margin-top: 0.25rem;
}

.leaderboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.sort-buttons {
  display: flex;
  gap: 0.5rem;
}

.leaderboard-sort-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(14, 55, 50, 0.5);
  color: #9cc9c4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.leaderboard-sort-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.leaderboard-sort-btn.active {
  background: linear-gradient(to right, #29a092, #33c9b7);
  color: white;
  border-color: #33c9b7;
}

.refresh-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(14, 55, 50, 0.5);
  color: #9cc9c4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.last-updated {
  font-size: 0.875rem;
  color: #9cc9c4;
}

.leaderboard-container {
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #33c9b7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.table-header {
  display: grid;
  grid-template-columns: 80px 1fr 100px 100px 80px 120px 120px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 0.875rem;
  color: #9cc9c4;
}

.table-header > div:not(.header-player):not(.header-rank) {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-body {
  max-height: 600px;
  overflow-y: auto;
}

.player-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 100px 80px 120px 120px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s;
  align-items: center;
}

.player-row > div:not(.player-info):not(.player-rank) {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.player-rank {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: white;
}

.rank-trophy {
  font-size: 1.25rem;
}

.rank-1 {
  color: #ffd700;
}
.rank-2 {
  color: #c0c0c0;
}
.rank-3 {
  color: #cd7f32;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-avatar img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-name {
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
}

.player-clan {
  font-size: 0.75rem;
  color: #9cc9c4;
  font-style: italic;
}

.stat-value {
  font-weight: 600;
  color: white;
}

.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #9cc9c4;
}

.error-message i {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(to right, #29a092, #33c9b7);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(51, 201, 183, 0.25);
}

.pagination-btn:disabled {
  background: rgba(107, 114, 128, 0.5);
  cursor: not-allowed;
  transform: none;
}

.pagination-info {
  font-weight: 600;
  color: white;
}

@media (max-width: 768px) {
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .leaderboard-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .table-header,
  .player-row {
    grid-template-columns: 60px 1fr 80px 60px;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .header-deaths,
  .header-playtime,
  .header-lastseen,
  .player-deaths,
  .player-playtime,
  .player-lastseen {
    display: none;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  opacity: 0.8;
  animation: fadeInOut 3s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.scroll-text {
  font-size: 0.9rem;
  color: rgba(205, 228, 225, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  color: #64b5a6;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

@media (max-width: 768px) {
  .scroll-indicator {
    margin-top: 2rem;
  }

  .scroll-text {
    font-size: 0.8rem;
  }

  .scroll-arrow {
    width: 20px;
    height: 20px;
  }
}

.server-card-new {
  background: linear-gradient(
    135deg,
    rgba(79, 209, 199, 0.15) 0%,
    rgba(45, 90, 61, 0.25) 100%
  );
  border: 1px solid rgba(79, 209, 199, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: none;
}

.server-card-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #64b5a6, #4f9a8a);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.server-card-new:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 209, 199, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.server-card-new:hover::before {
  opacity: 1;
}

.server-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.server-main-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.server-icon-new {
  width: 48px;
  height: 48px;
  background: rgba(100, 181, 166, 0.1);
  border: 2px solid rgba(100, 181, 166, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #64b5a6;
}

.server-name-region {
  flex: 1;
}

.server-name-new {
  font-size: 1.25rem;
  font-weight: 700;
  color: #cde4e1;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.server-region-new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(205, 228, 225, 0.7);
}

.region-flag {
  font-size: 1.1rem;
}

.region-name {
  font-weight: 500;
}

.server-status-new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.3);
}

.server-status-new.online {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.server-status-new.offline {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.server-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(100, 181, 166, 0.1);
}

.stat-icon {
  width: 36px;
  height: 36px;
  background: rgba(100, 181, 166, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #64b5a6;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(205, 228, 225, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.server-info-section {
  margin-bottom: 1.5rem;
}

.server-ip-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid rgba(100, 181, 166, 0.1);
}

.ip-label {
  font-size: 0.9rem;
  color: rgba(205, 228, 225, 0.7);
  font-weight: 500;
}

.ip-value {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64b5a6;
}

.copy-ip-btn {
  background: rgba(100, 181, 166, 0.1);
  border: 1px solid rgba(100, 181, 166, 0.3);
  color: #64b5a6;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.copy-ip-btn:hover {
  background: #64b5a6;
  color: #0f1419;
  transform: scale(1.05);
}

.server-features-new {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag-new {
  background: rgba(100, 181, 166, 0.1);
  color: #64b5a6;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(100, 181, 166, 0.2);
}

.feature-more-btn {
  background: rgba(205, 228, 225, 0.1);
  color: rgba(205, 228, 225, 0.7);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(205, 228, 225, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.feature-more-btn:hover {
  background: rgba(205, 228, 225, 0.2);
  border-color: rgba(205, 228, 225, 0.4);
  transform: scale(1.05);
}

.feature-more-btn.expanded {
  background: rgba(100, 181, 166, 0.2);
  color: rgba(100, 181, 166, 1);
  border-color: rgba(100, 181, 166, 0.4);
}

.hidden-tag {
  display: none;
}

.server-connect-section {
  margin-top: 1.5rem;
}

.connect-btn-new {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.connect-btn-new.online {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.connect-btn-new.online:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.connect-btn-new.online:active {
  transform: translateY(0);
}

.connect-btn-new.offline {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: rgba(255, 255, 255, 0.7);
  cursor: not-allowed;
}

.connect-btn-new i {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .server-card-new {
    padding: 1.25rem;
  }

  .server-card-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .server-main-info {
    gap: 0.75rem;
  }

  .server-icon-new {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .server-name-new {
    font-size: 1.1rem;
  }

  .server-stats-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .stat-box {
    padding: 0.75rem;
  }

  .server-ip-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    text-align: center;
  }

  .connect-btn-new {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}

.hero-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  position: relative;
  padding: 4rem 0;
}

.hurtzone-title {
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 4rem;
  position: relative;
  text-transform: uppercase;
  font-family: "Impact", "Arial Black", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.letter {
  display: inline-block;
  position: relative;
  background: linear-gradient(
    45deg,
    #7fe8d6 0%,
    #64b5a6 25%,
    #a8e6cf 50%,
    #64b5a6 75%,
    #4f9a8a 100%
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    gradientWave 4s ease-in-out infinite,
    letterFloat 3s ease-in-out infinite;
  text-shadow:
    0 0 4px rgba(127, 232, 214, 0.18),
    0 0 8px rgba(100, 181, 166, 0.1),
    0 0 12px rgba(79, 154, 138, 0.07);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  transition: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.letter:hover {
  transform: none;
  animation-play-state: running;
  -webkit-text-stroke: none;
  text-shadow:
    0 0 4px rgba(127, 232, 214, 0.18),
    0 0 8px rgba(100, 181, 166, 0.1),
    0 0 12px rgba(79, 154, 138, 0.07);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.letter:nth-child(1) {
  animation-delay: 0s;
}
.letter:nth-child(2) {
  animation-delay: 0.1s;
}
.letter:nth-child(3) {
  animation-delay: 0.2s;
}
.letter:nth-child(4) {
  animation-delay: 0.3s;
}
.letter:nth-child(5) {
  animation-delay: 0.4s;
}
.letter:nth-child(6) {
  animation-delay: 0.5s;
}
.letter:nth-child(7) {
  animation-delay: 0.6s;
}
.letter:nth-child(8) {
  animation-delay: 0.7s;
}
.letter:nth-child(9) {
  animation-delay: 0.8s;
}
.letter:nth-child(10) {
  animation-delay: 0.9s;
}

.letter:hover {
  transform: scale(1.2) rotateY(20deg);
  animation-play-state: paused;
  -webkit-text-stroke: 0.8px #144f48;
  text-shadow:
    0 0 20px rgba(127, 232, 214, 0.6),
    0 0 40px rgba(100, 181, 166, 0.4),
    0 0 60px rgba(79, 154, 138, 0.2);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

@keyframes gradientWave {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes letterFloat {
  0%,
  100% {
    transform: translateY(0px) rotateX(0deg);
  }
  50% {
    transform: translateY(-10px) rotateX(5deg);
  }
}

.hurtzone-title::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: radial-gradient(
    ellipse at center,
    rgba(127, 232, 214, 0.13) 0%,
    rgba(100, 181, 166, 0.07) 30%,
    transparent 70%
  );
  z-index: -1;
  border-radius: 12px;
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.scroll-indicator-home {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem !important;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator-home:hover {
  transform: translateX(-50%) scale(1.1);
  cursor: pointer;
}

.scroll-text-home {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(127, 232, 214, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-arrow-home {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(127, 232, 214, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 232, 214, 0.1);
  backdrop-filter: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.scroll-arrow-home::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(127, 232, 214, 0.2),
    rgba(100, 181, 166, 0.1)
  );
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.scroll-indicator-home:hover .scroll-arrow-home::before {
  transform: scale(1);
}

.scroll-arrow-home i {
  font-size: 1.5rem;
  color: #7fe8d6;
  z-index: 1;
  animation: arrowBounce 1.5s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-indicator-home:hover .scroll-arrow-home {
  border-color: #7fe8d6;
  background: rgba(127, 232, 214, 0.2);
  box-shadow: 0 0 20px rgba(127, 232, 214, 0.3);
}

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

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(3px);
  }
}

@media (max-width: 1200px) {
  .hurtzone-title {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .hero-new {
    min-height: 70vh;
    padding: 2rem 0;
  }

  .hurtzone-title {
    font-size: 4rem;
    margin-bottom: 3rem;
  }

  .scroll-text-home {
    font-size: 0.9rem;
  }

  .scroll-arrow-home {
    width: 40px;
    height: 40px;
  }

  .scroll-arrow-home i {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hurtzone-title {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
  }

  .letter:hover {
    transform: scale(1.1);
  }
}

.scroll-indicator-discord {
  position: relative;
  margin-top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem !important;
  cursor: pointer;
  transition: all 0.4s ease;
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.scroll-indicator-discord:hover {
  transform: translateX(-50%) scale(1.1);
  cursor: pointer;
}

.scroll-text-discord {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(127, 232, 214, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-arrow-discord {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(127, 232, 214, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 232, 214, 0.1);
  backdrop-filter: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.scroll-arrow-discord::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(127, 232, 214, 0.2),
    rgba(100, 181, 166, 0.1)
  );
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.scroll-indicator-discord:hover .scroll-arrow-discord::before {
  transform: scale(1);
}

.scroll-arrow-discord i {
  font-size: 1.5rem;
  color: #7fe8d6;
  z-index: 1;
  animation: arrowBounce 1.5s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-indicator-discord:hover .scroll-arrow-discord {
  border-color: #7fe8d6;
  background: rgba(127, 232, 214, 0.2);
  box-shadow: 0 0 20px rgba(127, 232, 214, 0.3);
}

.scroll-indicator-home.fade-out,
.scroll-indicator-discord.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
}

.scroll-indicator-home.fade-in,
.scroll-indicator-discord.fade-in {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0px);
}

@media (max-width: 768px) {
  .discord-hero {
    padding: 1rem 0 2rem 0 !important;
  }

  .discord-hero-content {
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .scroll-indicator-discord {
    margin-top: 1.5rem !important;
  }

  .scroll-text-discord {
    font-size: 0.9rem;
  }

  .scroll-arrow-discord {
    width: 40px;
    height: 40px;
  }

  .scroll-arrow-discord i {
    font-size: 1.2rem;
  }
}

.discord-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.discord-stats .stat-box {
  background: rgba(15, 20, 25, 0.8);
  border: 1px solid rgba(100, 181, 166, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: none;
  transition: all 0.3s ease;
  min-width: 150px;
}

.discord-stats .stat-box:hover {
  border-color: rgba(100, 181, 166, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.discord-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #7fe8d6 0%, #64b5a6 50%, #4f9a8a 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShimmer 2s ease-in-out infinite;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue",
    Arial, sans-serif;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.discord-stats .stat-label {
  font-size: 0.9rem;
  color: rgba(205, 228, 225, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes gradientShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.server-notification {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
  pointer-events: auto !important;
}

.copy-tooltip {
  position: absolute;
  background: linear-gradient(
    135deg,
    rgba(20, 79, 72, 0.98),
    rgba(20, 79, 72, 0.95)
  );
  border: 2px solid #10b981;
  color: #e5f1ef;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
  white-space: nowrap;
}

.copy-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #10b981;
}

@media (max-width: 768px) {
  .server-notification {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    max-width: calc(100% - 20px) !important;
  }

  .copy-tooltip {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

.leaderboard-panel-shell {
  position: relative;
  min-height: 560px;
}

.player-panel-shell {
  min-height: 680px;
}

.leaderboard-panel-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(6, 20, 18, 0.92);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 1.75rem;
  box-shadow: 0 45px 80px rgba(4, 17, 15, 0.65);
  z-index: 5;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.leaderboard-panel-loading .spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(94, 234, 212, 0.25);
  border-top-color: #5eead4;
  border-radius: 50%;
  animation: leaderboard-loading-spin 0.9s linear infinite;
}

.leaderboard-panel-loading .loading-copy {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  color: #e6fffb;
}

.leaderboard-panel-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes leaderboard-loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.leaderboard-region-panel {
  background: rgba(14, 55, 50, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.55);
  border-radius: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
  box-shadow:
    0 45px 90px rgba(4, 17, 15, 0.55),
    0 0 30px rgba(94, 234, 212, 0.12);
  backdrop-filter: none;
}

.leaderboard-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.scope-button-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.scope-button {
  min-width: 160px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.55);
  background: #0e3732cc;
  color: #f0fffb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.scope-button:hover {
  border-color: rgba(94, 234, 212, 0.8);
}

.scope-button.active {
  background: #16a38fdd;
  border-color: rgba(228, 255, 251, 0.95);
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.35);
}

.scope-button-highlight {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: rgba(22, 163, 143, 0.18);
  border: 1px solid rgba(228, 255, 251, 0.4);
  box-shadow: none;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, width, height, opacity;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

.scope-button-highlight-ghost {
  display: none;
  border-color: rgba(228, 255, 251, 0.25);
  background: rgba(22, 163, 143, 0.12);
  box-shadow: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease;
  z-index: 0;
}

.region-card-highlight {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(228, 255, 251, 0.35);
  background: rgba(22, 163, 143, 0.08);
  box-shadow: none;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, width, height, opacity;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.region-card-highlight-ghost {
  display: none;
  border-color: rgba(228, 255, 251, 0.2);
  background: rgba(22, 163, 143, 0.1);
  box-shadow: none;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
  z-index: 0;
}

.server-button-highlight {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 1rem;
  border: 1px solid rgba(228, 255, 251, 0.35);
  background: rgba(22, 163, 143, 0.12);
  box-shadow: none;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, width, height, opacity;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

.server-button-highlight-ghost {
  display: none;
  border-color: rgba(228, 255, 251, 0.25);
  background: rgba(22, 163, 143, 0.1);
  box-shadow: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease;
  z-index: 0;
}

.control-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: #bbf7d0;
  margin-top: 1.25rem;
}

.region-card-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  position: relative;
}

.region-card {
  border: 1px solid rgba(94, 234, 212, 0.55);
  border-radius: 1.5rem;
  padding: 1rem 1.25rem;
  background: #0e3732cc;
  color: #e1f6f0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow:
    0 18px 55px rgba(4, 17, 15, 0.4),
    0 0 25px rgba(94, 234, 212, 0.12);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 1;
}
.region-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.8);
  box-shadow:
    0 12px 25px rgba(4, 17, 15, 0.45),
    0 0 12px rgba(94, 234, 212, 0.2);
}

.region-card.has-flag {
  isolation: isolate;
}

.region-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 15% 20%,
    rgba(94, 234, 212, 0.12),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.region-card:hover::before,
.region-card.active::before {
  opacity: 1;
}

.region-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 25, 22, 0.65),
    rgba(11, 55, 49, 0.35)
  );
  z-index: 2;
  pointer-events: none;
  transition: background 0.2s ease;
}

.region-card:hover::after {
  background: linear-gradient(
    135deg,
    rgba(6, 25, 22, 0.7),
    rgba(11, 55, 49, 0.4)
  );
}

.region-card-flag {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 180px;
  height: 180px;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
  transform: rotate(45deg);
  transform-origin: center;
  filter: saturate(1.1) contrast(1.05);
}

@media (max-width: 640px) {
  .region-card-flag {
    top: -15%;
    right: -20%;
    width: 140px;
    height: 140px;
    opacity: 0.7;
  }
}

.region-card-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.region-card-title h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.region-card-title span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #86efac;
}

.region-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.region-card-chip {
  background: rgba(94, 234, 212, 0.14);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.region-card-chip--accent {
  background: rgba(94, 234, 212, 0.2);
  color: #bbf7d0;
}

.region-card:hover {
  border-color: rgba(94, 234, 212, 0.5);
}

.region-card.active {
  border-color: rgba(228, 255, 251, 0.95);
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.35);
}

.region-server-popover {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: -0.5rem;
  transform: translateY(100%);
  background: rgba(3, 9, 6, 0.95);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 1rem;
  padding: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 5;
}

.region-card:hover .region-server-popover,
.region-card.show-popover .region-server-popover {
  opacity: 1;
  transform: translateY(calc(100% - 0.35rem));
  pointer-events: auto;
}

.region-server-popover p {
  margin: 0 0 0.35rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
}

.region-server-popover-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.region-server-item {
  border: none;
  border-radius: 0.75rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e1f6f0;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.region-server-item:hover,
.region-server-item.active {
  background: rgba(94, 234, 212, 0.2);
}

.server-button-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.server-row-hidden {
  display: none;
}

.server-button {
  border: 1px solid rgba(94, 234, 212, 0.55);
  border-radius: 1rem;
  padding: 0.85rem 1.3rem;
  min-width: 160px;
  background: #0e3732cc;
  color: #f3fffb;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 25px rgba(4, 17, 15, 0.35);
  position: relative;
  z-index: 1;
}

.server-button:hover {
  border-color: rgba(94, 234, 212, 0.5);
}

.server-button.active {
  border-color: rgba(228, 255, 251, 0.95);
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.25);
  background: #16a38fdd;
}

.server-button-row {
  min-height: 70px;
}

.server-row-placeholder {
  width: 100%;
  text-align: center;
  padding: 1rem;
  border: 1px dashed rgba(94, 234, 212, 0.4);
  border-radius: 1rem;
  color: #cbfff3;
}

.leaderboard-totals-header {
  margin: 1.5rem 0 1rem;
}

.leaderboard-totals-header h3 {
  margin-top: 0.35rem;
  font-size: 1.5rem;
}

.leaderboard-totals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.leaderboard-totals-column {
  background: #0e3732cc;
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
}

.totals-column-head h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.totals-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.totals-row {
  display: flex;
  align-items: center;
  background: rgba(14, 55, 50, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  gap: 0.85rem;
}

.totals-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(94, 234, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9cc9c4;
  font-size: 1.35rem;
}

.totals-label span {
  display: block;
  font-weight: 600;
  color: #eef5f3;
}

.totals-label small {
  color: #6e8f8a;
  font-size: 0.75rem;
}

.totals-value {
  margin-left: auto;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f8fafc;
}

.selection-updated {
  margin-top: 1.5rem;
  text-align: center;
  color: #9cc9c4;
  font-size: 0.9rem;
}

.player-leaderboard-panel {
  margin-top: 2.5rem;
  background: #0b2f2b;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 40px 70px rgba(4, 17, 15, 0.55);
}

.player-leaderboard-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.player-leaderboard-context {
  flex: 1 1 240px;
}

.player-leaderboard-context h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.player-leaderboard-context p {
  margin: 0.35rem 0 0;
  color: #9cc9c4;
}

.player-leaderboard-search-bar {
  flex: 1 1 220px;
  display: flex;
  justify-content: center;
}

.player-leaderboard-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: rgba(8, 28, 24, 0.85);
  color: #cde4e1;
  min-width: 240px;
  width: min(420px, 100%);
}

.player-leaderboard-actions {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.player-leaderboard-search i {
  color: rgba(205, 228, 225, 0.8);
}

.player-leaderboard-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.player-leaderboard-search input::placeholder {
  color: rgba(205, 228, 225, 0.6);
}

.player-leaderboard-search input:focus {
  outline: none;
  color: #f0fffb;
}

.player-leaderboard-search:focus-within {
  border-color: rgba(94, 234, 212, 0.8);
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.25);
}

.mode-toggle {
  display: flex;
  gap: 0.35rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(4, 17, 15, 0.65);
  border-radius: 999px;
  padding: 0.2rem;
}

.mode-toggle-btn {
  border: none;
  background: transparent;
  color: #e4fffb;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mode-toggle-btn:hover {
  background: rgba(94, 234, 212, 0.12);
}

.mode-toggle-btn.active {
  background: #16a38fde;
  color: #04110f;
}

.player-leaderboard-status {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px dashed rgba(94, 234, 212, 0.3);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #bbf7d0;
}

.player-leaderboard-status.hidden {
  display: none;
}

.player-leaderboard-status[data-state="error"] {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
}

.player-leaderboard-status[data-state="loading"] {
  border-style: solid;
}

.player-leaderboard-status[data-state="error"] .status-spinner,
.player-leaderboard-status[data-state="empty"] .status-spinner,
.player-leaderboard-status[data-state="idle"] .status-spinner {
  display: none;
}

.status-spinner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid rgba(94, 234, 212, 0.25);
  border-top-color: rgba(94, 234, 212, 0.9);
  animation: player-spin 0.8s linear infinite;
}

@keyframes player-spin {
  to {
    transform: rotate(360deg);
  }
}

.player-leaderboard-table-wrapper {
  margin-top: 1.75rem;
  overflow-x: auto;
}

.player-leaderboard-table,
.player-table {
  width: 100%;
  min-width: 1400px;
}

.player-table-row {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(12, 39, 34, 0.85);
  width: 100%;
  position: relative;
  overflow: visible;
}

.player-table-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 1px solid rgba(94, 234, 212, 0.3);
  z-index: 0;
}

.player-table-row > * {
  position: relative;
  z-index: 1;
}

.player-table-row[data-steamid] {
  cursor: pointer;
}

.player-table-row--head {
  background: rgba(14, 55, 50, 0.9);
  border-radius: 1rem 1rem 0 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e4fffb;
  font-size: 0.95rem;
}

.player-cell--rank {
  font-weight: 700;
  color: #bbf7d0;
}

.player-cell--player {
  min-width: 0;
}

.player-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-pill img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(94, 234, 212, 0.25);
}

.player-pill-name {
  font-weight: 600;
  display: block;
  color: #f1fffb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.player-pill-name:hover {
  color: #bbf7d0;
}

.player-pill-meta {
  font-size: 0.8rem;
  color: rgba(203, 255, 243, 0.65);
}

.player-cell--metric {
  justify-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.player-table-row:nth-child(odd):not(.player-table-row--head) {
  background: rgba(14, 50, 44, 0.9);
}

.player-table-row:nth-child(even):not(.player-table-row--head) {
  background: rgba(24, 74, 65, 0.92);
}

.player-table-row:not(.player-table-row--head):hover {
  background: rgba(30, 96, 84, 0.95);
}

.player-cell--sortable {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(203, 255, 243, 0.8);
}

.player-cell--sortable:hover,
.player-cell--sortable.active {
  color: #bbf7d0;
}

.player-leaderboard-table .player-table-row:last-child {
  border-bottom: none;
}

.player-table-pagination {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.player-table-page-info {
  font-weight: 600;
  color: #cde4e1;
}

.player-pagination-btn {
  border: 1px solid rgba(94, 234, 212, 0.4);
  background: rgba(8, 28, 24, 0.85);
  color: #e4fffb;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.player-pagination-btn:hover {
  border-color: rgba(94, 234, 212, 0.7);
}

.player-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(8, 24, 21, 0.85);
  color: #cde4e1;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.profile-back-link:hover {
  border-color: rgba(94, 234, 212, 0.7);
  transform: translateY(-1px);
}

.profile-identity-card {
  background: rgba(11, 47, 43, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.45);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 35px 65px rgba(4, 17, 15, 0.45);
}

.profile-identity-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 260px;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 1rem;
  border: 2px solid rgba(94, 234, 212, 0.45);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity-text h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: 0.3rem;
}

.steamid-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.4);
  padding: 0.35rem 0.9rem;
  background: rgba(6, 20, 18, 0.85);
  color: #bbf7d0;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.steamid-chip:hover {
  border-color: rgba(94, 234, 212, 0.8);
  background: rgba(11, 35, 31, 0.85);
}

.profile-identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  min-width: 240px;
}

.profile-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(94, 234, 212, 0.5);
  background: rgba(12, 39, 34, 0.85);
  color: #e5f1ef;
  text-decoration: none;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.profile-action-btn:hover {
  border-color: rgba(94, 234, 212, 0.8);
  transform: translateY(-1px);
}

.profile-feedback {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(8, 24, 21, 0.85);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  color: #9cc9c4;
}

.profile-feedback--error {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
  background: rgba(69, 10, 10, 0.65);
}

.profile-section {
  position: relative;
  overflow: visible;
  background: transparent;
}

.profile-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 18, 0.82);
  border-radius: inherit;
  border: 1px solid rgba(94, 234, 212, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 10;
}

.profile-loading-overlay .spinner {
  width: 44px;
  height: 44px;
  border-width: 3px;
}

.profile-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-loading-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: #cde4e1;
  text-align: center;
}

.profile-summary-section {
  margin-bottom: 2.5rem;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;

  border-radius: 0;
  overflow: visible;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.profile-summary-card {
  background: rgba(14, 55, 50, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 18px 35px rgba(4, 17, 15, 0.45);
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: rgba(94, 234, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #5eead4;
}

.summary-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #88b5ae;
}

.summary-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.1;
}

.profile-selection-panel {
  background: rgba(8, 28, 24, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 30px 60px rgba(4, 17, 15, 0.55);
  margin-bottom: 2.5rem;
}

.profile-server-panel {
  background: rgba(11, 35, 31, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 30px 60px rgba(4, 17, 15, 0.55);
  margin-bottom: 0;
}

.profile-debug-panel {
  background: rgba(7, 24, 21, 0.9);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 25px 50px rgba(4, 17, 15, 0.45);
  margin-top: 1.5rem;
}

.profile-debug-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.profile-debug-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 260px;
  overflow-y: auto;
}

.profile-debug-row {
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 0.9rem;
  padding: 0.65rem 0.85rem;
  background: rgba(10, 34, 30, 0.85);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.85rem;
}

.profile-debug-row span {
  font-weight: 600;
  color: #bbf7d0;
}

.profile-debug-row small {
  color: #85b9b1;
  font-weight: 500;
}

.debug-hint {
  font-size: 0.8rem;
  color: #94c5be;
  font-weight: 600;
}

.profile-server-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.profile-server-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.profile-server-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.profile-split-card {
  background: rgba(8, 24, 21, 0.9);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 1.25rem;
  padding: 1.25rem;
  min-height: 320px;
}

.split-card-head h4 {
  font-size: 1.1rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.metric-card {
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(12, 39, 34, 0.85);
}

.metric-card--accent {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(22, 163, 143, 0.1);
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94c5be;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.35rem;
  color: #f1fffb;
}

.metric-placeholder {
  border: 1px dashed rgba(94, 234, 212, 0.3);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  color: #8cbcb5;
  font-weight: 600;
}

.profile-server-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.server-pill {
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  padding: 0.25rem 0.85rem;
  font-size: 0.8rem;
  color: #cde4e1;
}

.server-name {
  display: block;
  font-weight: 700;
  color: #f1fffb;
}

.server-meta {
  display: block;
  font-size: 0.85rem;
  color: #8cbcb5;
}

.server-badge {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #bbf7d0;
}

.server-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  text-align: left;
}

.server-button > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.server-button .server-name {
  font-size: 1rem;
}

.server-button .server-meta {
  font-size: 0.8rem;
}

.server-button .server-badge {
  font-size: 0.85rem;
}

.profile-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 18, 0.82);
  border-radius: 1.25rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  box-shadow: 0 18px 35px rgba(4, 17, 15, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 10;
}

.profile-summary-card {
  position: relative;
  background: rgba(14, 55, 50, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 18px 35px rgba(4, 17, 15, 0.45);
}

/* ========== Mobile Auth Section (injected by app.js) ========== */
.mobile-menu-separator {
  height: 1px;
  background: rgba(94, 234, 212, 0.15);
  margin: 0.75rem 0;
}
.mobile-user-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  color: #5eead4;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  direction: rtl;
}
.mobile-user-badge i {
  font-size: 1.3rem;
}
.mobile-login-link {
  color: #5eead4 !important;
  font-weight: 700;
}
.mobile-login-link i {
  color: #5eead4 !important;
}
.mobile-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background: none;
  color: #f87171;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  direction: rtl;
  transition: background 0.2s ease;
}
.mobile-logout-btn:hover {
  background: rgba(248, 113, 113, 0.1);
}
.mobile-logout-btn i {
  font-size: 1.2rem;
  color: #f87171;
  min-width: 1.2rem;
}

/* ========== Downloads Page v2 — card grid ========== */
.dl-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto 3rem;
}
@media (max-width: 900px) {
  .dl-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .dl-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
@property --dl-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes dl-rotate-border {
  to {
    --dl-angle: 360deg;
  }
}
.dl-card {
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 1.1rem;
  padding: 2rem 1.4rem 1.6rem;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  z-index: 1;
  overflow: visible;
  min-height: 400px;
}
.dl-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 1.1rem;
  padding: 2px;
  background: conic-gradient(
    from var(--dl-angle, 0deg),
    #5eead4,
    #00c853,
    #38bdf8,
    #a78bfa,
    #f472b6,
    #fb923c,
    #facc15,
    #5eead4
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}
.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 35px rgba(94, 234, 212, 0.12);
  border-color: transparent;
}
.dl-card:hover::before {
  opacity: 1;
  animation: dl-rotate-border 3s linear infinite;
}
.dl-card.recommended {
  border-color: rgba(0, 200, 83, 0.45);
  background: linear-gradient(
    135deg,
    rgba(0, 200, 83, 0.08),
    rgba(14, 55, 50, 0.5)
  );
}
.dl-card-color-teal {
  border-color: rgba(94, 234, 212, 0.2);
}
.dl-card-color-green {
  border-color: rgba(0, 200, 83, 0.32);
  background: linear-gradient(
    135deg,
    rgba(0, 200, 83, 0.09),
    rgba(14, 55, 50, 0.5)
  );
}
.dl-card-color-orange {
  border-color: rgba(251, 146, 60, 0.35);
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, 0.14),
    rgba(14, 55, 50, 0.52)
  );
}
.dl-card-color-orange .dl-card-icon {
  background: rgba(251, 146, 60, 0.13);
}
.dl-card-color-orange .dl-card-icon i {
  color: #fdba74;
}
.dl-card-color-orange .dl-card-action {
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, 0.2),
    rgba(234, 88, 12, 0.15)
  );
  border-color: rgba(251, 146, 60, 0.4);
  color: #fdba74;
}
.dl-card-color-orange .dl-card-action:hover {
  border-color: rgba(251, 146, 60, 0.8);
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.25);
}
.dl-card-color-blue {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.08),
    rgba(14, 55, 50, 0.52)
  );
}
/* Dynamic hex color via CSS custom properties */
.dl-card-color-dynamic {
  border-color: color-mix(in srgb, var(--card-color) 35%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--card-color) 12%, transparent),
    rgba(14, 55, 50, 0.52)
  );
}
.dl-card-color-dynamic .dl-card-icon {
  background: color-mix(in srgb, var(--card-color) 15%, transparent);
}
.dl-card-color-dynamic .dl-card-icon i {
  color: var(--card-color);
}
.dl-card-color-dynamic .dl-card-action {
  background: color-mix(in srgb, var(--card-color) 18%, transparent);
  border-color: color-mix(in srgb, var(--card-color) 40%, transparent);
  color: var(--card-color);
}
.dl-card-color-dynamic .dl-card-action:hover {
  border-color: color-mix(in srgb, var(--card-color) 80%, transparent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--card-color) 25%, transparent);
  color: #fff;
}
.dl-card-pill {
  position: absolute;
  top: -0.55rem;
  right: 1rem;
  left: auto;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
}
.dl-card-badge {
  position: absolute;
  top: -0.6rem;
  right: 1rem;
  background: linear-gradient(135deg, #00c853, #00a844);
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
}
.dl-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 1.1rem;
  background: rgba(94, 234, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}
.dl-card-icon i {
  font-size: 2rem;
  color: #5eead4;
}
.dl-card h3 {
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}
.dl-card p {
  color: #9cc9c4;
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}
.dl-card-note {
  display: block;
  width: 100%;
  margin-top: 0.15rem;
  color: #f8d9a6;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.72rem;
  line-height: 1.6;
}
.dl-card .dl-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    rgba(0, 200, 83, 0.2),
    rgba(0, 168, 68, 0.15)
  );
  border: 1px solid rgba(0, 200, 83, 0.35);
  color: #5eead4;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}
.dl-card .dl-card-action:hover {
  border-color: rgba(0, 200, 83, 0.7);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.2);
}
.dl-card-size {
  display: block;
  color: #6b8c88;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
  width: 100%;
  text-align: center;
}

/* Download button group with mirrors */
.dl-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: auto;
  gap: 0.5rem;
  padding-top: 0.5rem;
}
.dl-btn-group .dl-card-action {
  margin-top: 0;
  border-radius: 0.5rem;
  width: 100%;
  justify-content: center;
}

.dl-mirrors {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  height: 2rem;
  overflow: hidden;
}
.dl-mirror-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.5rem;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #7faba6;
  text-decoration: none;
  border-radius: 0.4rem;
  border: 1px solid rgba(94, 234, 212, 0.1);
  background: rgba(94, 234, 212, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.dl-mirror-link i {
  font-size: 0.8rem;
  color: #5eead4;
  transition: color 0.2s;
}
.dl-mirror-link:hover {
  background: rgba(0, 200, 83, 0.12);
  border-color: rgba(0, 200, 83, 0.35);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.15);
}
.dl-mirror-link:hover i {
  color: #00c853;
}

/* Download card loading overlay */
.dl-card.dl-loading {
  pointer-events: none;
}
.dl-card-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 30, 28, 0.55);
  border-radius: 1rem;
  backdrop-filter: blur(2px);
  transition: opacity 0.4s ease;
}
.dl-card-loader .hz-circles-loader {
  margin: 0;
  width: 64px;
  height: 64px;
}
.dl-card:not(.dl-loading) .dl-card-loader {
  opacity: 0;
  pointer-events: none;
}

/* Downloads requirements (yellow two columns) */
.dl-req-wrap {
  max-width: 1100px;
  margin: 0 auto 2.2rem;
}
.dl-req-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border-radius: 1rem;
  border: 1px solid rgba(250, 204, 21, 0.25);
  background: rgba(65, 49, 8, 0.25);
}
.dl-req-card {
  background: linear-gradient(
    135deg,
    rgba(250, 204, 21, 0.12),
    rgba(65, 49, 8, 0.45)
  );
  border: 1px solid rgba(250, 204, 21, 0.36);
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 10px 30px rgba(41, 33, 6, 0.35);
  direction: ltr;
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
}
.dl-req-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}
.dl-req-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff8de;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}
.dl-req-head h2 i {
  color: #facc15;
}
.dl-req-badge {
  background: rgba(250, 204, 21, 0.22);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #fde68a;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
.dl-req-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.dl-req-col {
  border: 1px solid rgba(250, 204, 21, 0.24);
  background: rgba(28, 24, 8, 0.45);
  border-radius: 0.75rem;
  padding: 0.9rem;
}
.dl-req-col h3 {
  margin: 0 0 0.6rem;
  color: #fff8de;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}
.dl-req-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.dl-req-col li {
  color: #fef3c7;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.84rem;
  line-height: 1.65;
  position: relative;
  padding-right: 0.95rem;
}
.dl-req-col li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: #facc15;
  font-weight: 800;
}
.dl-req-note {
  margin: 0.85rem 0 0;
  color: #fde68a;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.78rem;
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  unicode-bidi: embed;
}
@media (max-width: 900px) {
  .dl-req-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .dl-req-cols {
    grid-template-columns: 1fr;
  }
}

/* ========== Connect Command Box ========== */
.dl-connect-box {
  max-width: 600px;
  margin: 0 auto 3rem;
  background: rgba(10, 42, 38, 0.7);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  text-align: center;
}
.dl-connect-box h3 {
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.dl-connect-box h3 i {
  color: #5eead4;
}
.dl-connect-box p {
  color: #9cc9c4;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.dl-connect-cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 0.5rem;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  direction: ltr;
}
.dl-connect-cmd:hover {
  border-color: rgba(0, 200, 83, 0.5);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.15);
}
.dl-connect-cmd code {
  color: #5eead4;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Consolas", "Courier New", monospace;
  background: none;
  padding: 0;
}
.dl-connect-cmd .copy-icon {
  color: #9cc9c4;
  font-size: 1rem;
  transition:
    color 0.2s,
    transform 0.25s;
}
.dl-connect-cmd:hover .copy-icon {
  color: #5eead4;
}
/* Copy tooltip */
.dl-connect-cmd .copy-tooltip {
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%) scale(0.7);
  background: #00c853;
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dl-connect-cmd .copy-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #00c853;
}
.dl-connect-cmd.copied .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.dl-connect-cmd.copied .copy-icon {
  transform: scale(1.3);
  color: #00c853;
}
/* Bling burst */
.dl-connect-cmd .copy-bling {
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  pointer-events: none;
  opacity: 0;
}
.dl-connect-cmd.copied .copy-bling {
  animation: copy-bling-burst 0.6s ease-out;
}
@keyframes copy-bling-burst {
  0% {
    opacity: 1;
    box-shadow:
      0 0 0 0 rgba(0, 200, 83, 0.5),
      inset 0 0 15px rgba(0, 200, 83, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(0, 200, 83, 0),
      inset 0 0 20px rgba(0, 200, 83, 0.15);
  }
  100% {
    opacity: 0;
    box-shadow:
      0 0 0 20px rgba(0, 200, 83, 0),
      inset 0 0 0 rgba(0, 200, 83, 0);
  }
}

/* ========== TeamSpeak Promo Section ========== */
.dl-teamspeak {
  max-width: 600px;
  margin: 0 auto 3rem;
  background: linear-gradient(
    135deg,
    rgba(14, 55, 50, 0.6),
    rgba(10, 42, 38, 0.8)
  );
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dl-teamspeak::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(94, 234, 212, 0.08),
    transparent 70%
  );
  pointer-events: none;
}
.dl-teamspeak-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.dl-teamspeak-icon i {
  font-size: 1.8rem;
  color: #5eead4;
}
.dl-teamspeak h3 {
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.dl-teamspeak p {
  color: #9cc9c4;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ========== Launcher Guide Accordion ========== */
.dl-launcher-guide {
  max-width: 800px;
  margin: 0 auto 3rem;
}
.dl-launcher-guide > h2 {
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.dl-launcher-guide > h2 i {
  color: #5eead4;
  font-size: 1.3rem;
}
.guide-section {
  background: rgba(14, 55, 50, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.guide-section:hover {
  border-color: rgba(94, 234, 212, 0.25);
}
.guide-section.open {
  border-color: rgba(0, 200, 83, 0.3);
}
.guide-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  direction: rtl;
}
.guide-section-header:hover {
  background: rgba(200, 200, 200, 0.06);
}
.guide-section-header i.section-icon {
  color: #5eead4;
  font-size: 1.15rem;
  min-width: 1.2rem;
  text-align: center;
}
.guide-section-header span {
  flex: 1;
  color: #fff;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}
.guide-section-header i.chevron {
  color: #5eead4;
  font-size: 1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.guide-section.open .guide-section-header i.chevron {
  transform: rotate(180deg);
}
.guide-section-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.25rem;
}
.guide-section-body > * {
  overflow: hidden;
  min-height: 0;
}
.guide-section.open .guide-section-body {
  grid-template-rows: 1fr;
  padding: 0 1.25rem 1.25rem;
}
.guide-section-content {
  color: #9cc9c4;
  font-family: "Vazir", "Tahoma", sans-serif;
  font-size: 0.88rem;
  line-height: 1.8;
}
.guide-section-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.guide-section-content ul li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.guide-section-content ul li::before {
  content: "•";
  color: #5eead4;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.guide-section-content strong {
  color: #cde4e1;
}
.guide-section-content code {
  background: rgba(94, 234, 212, 0.1);
  color: #5eead4;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  font-size: 0.82rem;
  direction: ltr;
  display: inline-block;
}

/* ========== Downloads Minimal Hero ========== */
.dl-hero-minimal .page-icon {
  display: none !important;
}
.dl-hero-minimal h1 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}
.dl-hero-minimal p {
  color: #9cc9c4;
  font-size: 0.92rem;
  margin: 0;
}

/* Make dl-connect-cmd position relative for tooltip */
.dl-connect-cmd {
  position: relative;
}

/* ========== Global Scroll To Top ========== */
.hz-scroll-top {
  position: fixed;
  right: 1.05rem;
  bottom: 1.05rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 999px;
  background: linear-gradient(
    160deg,
    rgba(15, 68, 61, 0.95),
    rgba(10, 41, 37, 0.98)
  );
  color: #d9f2ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
  z-index: 9000;
}

.hz-scroll-top i {
  font-size: 1.15rem;
}

.hz-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.hz-scroll-top:hover {
  color: #fff;
  border-color: rgba(0, 200, 83, 0.5);
}

/* ========== Site Ads System ========== */
body.hz-has-top-ad {
  padding-top: var(--hz-top-ad-height, 0px);
  transition: padding-top 0.2s ease;
}

.hz-ad-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9300;
}

.hz-ad-slot {
  position: fixed;
  pointer-events: auto;
  background: var(--hz-ad-bg, #ffffff);
  border: 1px solid rgba(9, 24, 21, 0.22);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.hz-ad-slot-top {
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
}

.hz-ad-slot-top-inline {
  position: relative;
  width: 100%;
  left: auto;
  right: auto;
  top: auto;
  z-index: 10;
}

.hz-ad-slot-left {
  left: 0;
  border-radius: 0 14px 14px 0;
}

.hz-ad-slot-right {
  right: 0;
  border-radius: 14px 0 0 14px;
}

.hz-ad-body {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.hz-ad-body img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hz-ad-body.hz-ad-body-full img {
  object-fit: contain;
  object-position: center center;
}

.hz-ad-slot-top-auto {
  height: auto !important;
}

.hz-ad-slot-top-auto .hz-ad-body {
  height: auto;
}

.hz-ad-slot-top-auto .hz-ad-body img {
  height: auto;
  max-height: var(--hz-ad-max-height, 95px);
  width: 100%;
}

.hz-ad-placeholder {
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.hz-ad-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 1.55rem;
  height: 1.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 20, 18, 0.78);
  color: #fff;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.hz-ad-close:hover {
  transform: scale(1.05);
  background: rgba(153, 27, 27, 0.88);
}

@media (max-width: 1200px) {
  .hz-ad-slot-left,
  .hz-ad-slot-right {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hz-scroll-top {
    right: 0.72rem;
    bottom: 0.72rem;
    width: 2.4rem;
    height: 2.4rem;
  }

  .hz-ad-close {
    width: 1.4rem;
    height: 1.4rem;
  }
}
