:root {
  --bg-dark: #0f111a;
  --bg-card: #181b28;
  --bg-secondary: #22273b;
  --primary-color: #2ecc71;
  --primary-hover: #27ae60;
  --vip-color: #f1c40f;
  --mvp-color: #00cec9;
  --mvp-plus-color: #e74c3c;
  --text-main: #f5f6fa;
  --text-muted: #a4b0be;
  --border-color: #2f3640;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  image-rendering: pixelated;
}

.server-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary-color);
}

/* PLAYER LOGIN BAR */
.player-auth-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.player-auth-box img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #fff;
  image-rendering: pixelated;
}

.player-auth-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  width: 140px;
}

.guest-badge {
  font-size: 0.75rem;
  background: #576574;
  padding: 2px 8px;
  border-radius: 12px;
}

.online-badge {
  font-size: 0.75rem;
  background: var(--primary-color);
  color: #000;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
}

/* NAVIGATION TABS */
.nav-tabs {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  padding: 0 16px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* MAIN CONTENT */
.main-content {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 16px;
  flex: 1;
  width: 100%;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.hero-banner {
  text-align: center;
  margin-bottom: 28px;
}

.hero-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: #fff;
}

.hero-banner p {
  color: var(--text-muted);
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
}

.copy-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.btn-copy {
  background: #34495e;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
}

.btn-copy:hover {
  background: #2c3e50;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 14px;
}

.discord-btn {
  background: #5865f2;
  color: #fff;
}

/* STORE GRID */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}

.rank-card:hover {
  transform: translateY(-4px);
}

.rank-card.highlight {
  border-color: var(--mvp-color);
}

.rank-card.ultimate {
  border-color: var(--mvp-plus-color);
}

.rank-tag {
  display: inline-block;
  align-self: center;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.rank-tag.vip { background: rgba(241, 196, 15, 0.2); color: var(--vip-color); border: 1px solid var(--vip-color); }
.rank-tag.mvp { background: rgba(0, 206, 201, 0.2); color: var(--mvp-color); border: 1px solid var(--mvp-color); }
.rank-tag.mvp-plus { background: rgba(231, 76, 60, 0.2); color: var(--mvp-plus-color); border: 1px solid var(--mvp-plus-color); }

.rank-price {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}

.rank-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rank-perks {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
  flex: 1;
  font-size: 0.85rem;
}

.rank-perks li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.rank-perks i {
  color: var(--primary-color);
  margin-right: 6px;
}

.btn-buy {
  background: var(--primary-color);
  color: #000;
  font-weight: bold;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-buy:hover {
  background: var(--primary-hover);
}

/* PAYMENT / BANK */
.alert-box {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
  color: #ff7675;
  padding: 16px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert-box i {
  font-size: 1.4rem;
  margin-top: 2px;
}

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

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.qr-img {
  max-width: 250px;
  width: 100%;
  border-radius: 12px;
  margin: 14px 0;
  border: 3px solid #0056b3;
}

.subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.copy-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-inline button {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

.transfer-memo-box {
  background: var(--bg-secondary);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.memo-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #11141f;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
}

#transferMemo {
  font-weight: 800;
  color: var(--vip-color);
}

.card-card-box {
  background: #1e272e;
  padding: 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.command-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 8px;
}

.command-box code {
  color: var(--primary-color);
  font-weight: bold;
}

/* MEDIA SECTION */
.media-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.media-card.highlight {
  border-color: #e67e22;
}

.media-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #f39c12;
  display: flex;
  align-items: center;
  gap: 8px;
}

.perk-list, .bullet-list {
  list-style: none;
}

.perk-list li, .bullet-list li {
  margin-bottom: 10px;
  line-height: 1.5;
  color: #dfe4ea;
  font-size: 0.95rem;
}

.bullet-list li::before {
  content: "• ";
  color: var(--primary-color);
  font-weight: bold;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.register-box ol {
  padding-left: 20px;
  color: #dfe4ea;
  line-height: 1.7;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  color: #747d8c;
  font-size: 0.8rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }
  .player-auth-box {
    justify-content: center;
  }
  .player-auth-box input {
    width: 100%;
  }
}
