:root {
  --bg-dark: #0f1117;
  --bg-card: #181b24;
  --bg-card-hover: #222634;
  --accent: #00d2ff;
  --accent-secondary: #3a7bd5;
  --gold: #facc15;
  --gold-glow: rgba(250, 204, 21, 0.25);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 210, 255, 0.4);
  --success: #10b981;
  --danger: #ef4444;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NAVBAR & MOBILE OVERFLOW FIX
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(15, 17, 23, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: 0.2s;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.logo-accent {
  color: var(--accent);
}

.ip-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.25s ease;
  max-width: 220px;
}

.ip-widget:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.ip-widget span#ipText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* ==========================================================================
   GLOBAL AUTH WIDGET, USER PILL & WALLET BADGES
   ========================================================================== */
.auth-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#loggedOutView, #loggedInView {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.wallet-badge {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: transform 0.2s;
}

.logout-btn:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.sidebar-overlay.show, .sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 210;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.sidebar.open, .sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent);
}

/* ==========================================================================
   MAIN CONTENT & HERO LAYOUT
   ========================================================================== */
.content-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px 80px;
  box-sizing: border-box;
}

.hero-banner-container {
  position: relative;
  background: url('banner.png') center center / cover no-repeat;
  border-radius: 20px;
  overflow: hidden;
  padding: 70px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(15, 17, 23, 0.75) 0%, rgba(15, 17, 23, 0.95) 100%);
  z-index: 1;
}

.hero-banner-container .hero {
  position: relative;
  z-index: 2;
  padding: 0;
}

.hero {
  text-align: center;
  padding: 40px 0 20px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(0, 210, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  word-break: break-word;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #000;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

/* ==========================================================================
   STATS CARDS (HOME)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: 0.25s;
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card.clickable:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.6rem;
  color: var(--accent);
  background: rgba(0, 210, 255, 0.1);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.pulse-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* ==========================================================================
   GALLERY & SERVER HIGHLIGHTS
   ========================================================================== */
.section-block {
  margin-top: 60px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
}

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

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  cursor: pointer;
  background: var(--bg-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3) 70%, transparent);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  display: flex;
  align-items: center;
}

.gallery-label i {
  color: var(--accent);
  margin-right: 8px;
}

/* ==========================================================================
   FULLSCREEN LIGHTBOX MODAL
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}

.lightbox-overlay.active {
  display: grid;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-caption {
  margin-top: 14px;
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   STORE TOP CATEGORY CARDS (shop.html)
   ========================================================================== */
.page-header {
  text-align: center;
  margin-bottom: 36px;
}

.page-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.page-header p {
  color: var(--text-muted);
}

.shop-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.shop-tab {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.shop-tab:hover {
  border-color: var(--accent);
  color: #fff;
}

.shop-tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.store-nav-grid, .store-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}

.store-nav-card, .store-category-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s ease;
  position: relative;
}

.store-nav-card:hover, .store-category-box:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.store-nav-card.featured-border {
  border-color: rgba(250, 204, 21, 0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(35, 30, 15, 0.6));
}

.store-nav-card.featured-border:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 25px var(--gold-glow);
}

.store-nav-icon, .cat-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(58, 123, 213, 0.2));
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.store-nav-info, .cat-info {
  flex: 1;
}

.store-nav-info h3, .cat-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.store-nav-info p, .cat-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.nav-arrow, .cat-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  opacity: 0.5;
  transition: 0.2s;
  margin-left: auto;
}

.store-nav-card:hover .nav-arrow, .store-category-box:hover .cat-arrow {
  color: var(--accent);
  opacity: 1;
  transform: translateX(4px);
}

/* ==========================================================================
   RANKS SHOWCASE & STORE PACKAGES GRID (Fixed Text/Command Wrapping)
   ========================================================================== */
.store-grid, .ranks-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.rank-card, .rank-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.rank-card:hover, .rank-card-box:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.rank-card.featured-rank {
  border-color: rgba(250, 204, 21, 0.4);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
}

.rank-knight { border-top: 4px solid #a0aec0; }
.rank-hydra { border-top: 4px solid #38bdf8; }
.rank-emperor { border-top: 4px solid #eab308; }
.rank-phoenix { border-top: 4px solid #f97316; }

.rank-card-header {
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.rank-icon-wrapper {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.rank-card h3, .rank-card-box h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 6px;
}

.rank-price, .rank-card-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

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

.coin-reward-badge {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: var(--gold);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}

.rank-perks, .rank-perk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
  flex: 1;
}

.rank-perks li, .rank-perk-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
  word-break: break-word;
}

.rank-perks li i, .rank-perk-list li i {
  color: var(--success);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.rank-perks li code, .rank-perk-list li code {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: monospace;
  white-space: normal;
  display: inline-block;
  margin: 1px 0;
}

.btn-rank, .rank-buy-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #000;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
  display: block;
  border: none;
  cursor: pointer;
}

.btn-rank:hover, .rank-buy-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

/* ==========================================================================
   SPAWNER CATEGORIES & CARDS (SPAWNERS.HTML)
   ========================================================================== */
.spawner-category-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.spawner-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.spawner-cat-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.spawner-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.spawner-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.spawner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.spawner-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.spawner-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-buy-mini {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #000;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-buy-mini:hover {
  opacity: 0.9;
  transform: scale(1.04);
}

.spawner-notices-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.notice-box {
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
}

.notice-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-box p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.warning-notice {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.warning-notice h4 {
  color: var(--danger);
}

.info-notice {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.25);
}

.info-notice h4 {
  color: var(--accent);
}

/* ==========================================================================
   CHECKOUT / PAYMENTS PAGE
   ========================================================================== */
.checkout-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.checkout-header {
  text-align: center;
  margin-bottom: 30px;
}

.checkout-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.bkash-payment-box {
  background: rgba(226, 19, 110, 0.08);
  border: 1px solid rgba(226, 19, 110, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.bkash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.bkash-badge-tag {
  color: #e2136e;
  font-weight: 700;
  font-size: 0.9rem;
}

.price-summary-tag {
  font-weight: 700;
  color: var(--text-main);
}

.price-summary-tag span {
  color: var(--success);
}

.bkash-phone-display {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  margin: 6px 0;
}

.bkash-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.confirm-purchase-btn {
  width: 100%;
  background: var(--success);
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.confirm-purchase-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px;
  text-align: center;
}

.success-icon {
  font-size: 3.5rem;
  color: var(--success);
  margin-bottom: 12px;
}

.success-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.order-receipt {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-around;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 12px;
}

.order-receipt span { color: var(--text-muted); }
.order-receipt strong { color: var(--text-main); }

.discord-action-box {
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 12px;
  padding: 20px;
}

.discord-action-box p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 14px 0;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.discord-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================
   CHAMPIONS TOP #1 GRID (LEADERBOARD)
   ========================================================================== */
.top-champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.champ-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.champ-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.champ-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.icon-playtime { color: #38bdf8; }
.icon-money { color: #10b981; }
.icon-kills { color: #ef4444; }
.icon-deaths { color: #a855f7; }

.champ-category {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.champ-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.champ-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.champ-val {
  font-size: 1.25rem;
  font-weight: 800;
}

.val-blue { color: #38bdf8; }
.val-green { color: #10b981; }
.val-red { color: #ef4444; }
.val-purple { color: #c084fc; }

/* ==========================================================================
   LEADERBOARD TABLE & TABS
   ========================================================================== */
.leaderboard-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.lb-btn {
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lb-btn.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.leaderboard-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th, .leaderboard-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table th {
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clickable-row {
  cursor: pointer;
  transition: background 0.15s;
}

.clickable-row:hover {
  background: var(--bg-card-hover);
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.player-cell img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.player-title {
  color: #fff;
  font-size: 0.95rem;
}

.rank-num { font-weight: 700; color: var(--text-muted); }
.rank-medal { font-weight: 800; font-size: 0.9rem; }
.rank-medal.gold { color: #facc15; }
.rank-medal.silver { color: #e2e8f0; }
.rank-medal.bronze { color: #d97706; }

/* ==========================================================================
   HAVENCRAFT-STYLE FULL PLAYER PROFILE MODAL
   ========================================================================== */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 500;
  padding: 16px;
}

.profile-modal-overlay.active {
  display: grid;
}

.profile-modal-card {
  background: #11131c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
}

.profile-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 26px;
}

.profile-3d-skin {
  height: 150px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
}

.profile-hero-meta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 4px;
}

.profile-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.profile-tags {
  display: flex;
  gap: 8px;
}

.profile-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.tag-member { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.p-stat-box {
  background: #090a0f;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.p-icon { font-size: 1.4rem; }
.text-cyan { color: #38bdf8; }
.text-purple { color: #c084fc; }
.text-red { color: #ef4444; }
.text-gold { color: #facc15; }
.text-green { color: #10b981; }

.p-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.p-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.p-stat-ratio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.p-ratio-box {
  background: #090a0f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.r-label { color: var(--text-muted); font-weight: 700; font-size: 0.75rem; }
.r-val { font-weight: 800; color: #fff; }

/* ==========================================================================
   EVENTS & ABOUT
   ========================================================================== */
.event-subtitle {
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}

.event-card.active-border {
  border-color: var(--accent);
}

.event-card.clickable {
  cursor: pointer;
  transition: 0.2s;
}

.event-card.clickable:hover {
  background: var(--bg-card-hover);
}

.event-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.event-status.live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.event-status.ended {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.event-meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.about-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ==========================================================================
   STAFF CARDS
   ========================================================================== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-holder {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.mc-avatar {
  height: 130px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.5));
}

.staff-role {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.role-owner { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.role-admin { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.role-mod { background: rgba(149, 165, 166, 0.2); color: #bdc3c7; }
.role-officer { background: rgba(255, 182, 193, 0.2); color: #ffb6c1; }

.staff-name { font-size: 1.2rem; margin-bottom: 8px; }
.staff-bio { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.staff-links { display: flex; gap: 12px; }
.staff-links a { color: var(--text-muted); font-size: 1.1rem; }
.staff-links a:hover { color: var(--accent); }

/* ==========================================================================
   ONLINE PLAYERS & AUTH MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 1500;
  padding: 20px;
}

.modal-backdrop.active, .modal-backdrop[style*="display: flex"] {
  display: grid !important;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal.auth-card {
  max-width: 420px;
  padding: 24px;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-list-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-dark);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.player-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-info-left img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

/* RANK BADGES */
.player-rank-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.player-rank-badge[data-rank="Owner"] {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

.player-rank-badge[data-rank="Admin"] {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.4);
}

.player-rank-badge[data-rank="Moderator"] {
  background: rgba(189, 195, 199, 0.2);
  color: #ecf0f1;
  border: 1px solid rgba(189, 195, 199, 0.4);
}

.player-rank-badge[data-rank="Officer"] {
  background: rgba(255, 182, 193, 0.2);
  color: #ffb6c1;
  border: 1px solid rgba(255, 182, 193, 0.4);
}

.player-rank-badge[data-rank="VIP"] {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.4);
}

.player-rank-badge[data-rank="Member"] {
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

/* TOAST NOTIFICATION */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.auth-switch-text {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-switch-text a {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.full-width {
  width: 100%;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS OVERRIDES & COMPLETE SCREEN OVERFLOW FIX
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100% !important;
  }

  /* Compact Navbar */
  .navbar {
    padding: 10px 14px;
    gap: 8px;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-logo-img {
    width: 30px;
    height: 30px;
  }

  .ip-widget {
    max-width: 130px;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .user-pill {
    padding: 4px 8px;
    gap: 5px;
    font-size: 0.75rem;
  }

  .wallet-badge {
    padding: 2px 6px;
    font-size: 0.7rem;
  }

  /* Hero Section */
  .hero-banner-container {
    padding: 35px 15px;
    border-radius: 14px;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .hero-desc {
    font-size: 0.9rem;
    padding: 0 8px;
  }

  /* Player Profile Modal Fixes */
  .profile-modal-card {
    padding: 24px 16px;
    max-width: 92vw;
    margin: auto;
  }

  .profile-hero {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .profile-3d-skin {
    height: 110px;
  }

  .profile-hero-meta h2 {
    font-size: 1.5rem;
    word-break: break-word;
  }

  .profile-tags {
    justify-content: center;
  }

  .profile-stats-grid,
  .p-stat-ratio-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Leaderboard Table Adjustments */
  .leaderboard-table th, 
  .leaderboard-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .player-cell img {
    width: 22px;
    height: 22px;
  }

  .player-title {
    font-size: 0.85rem;
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* All Multi-Column Grids Become 1-Column on Mobile */
  .store-nav-grid, 
  .store-categories-grid, 
  .store-grid, 
  .ranks-showcase-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .top-champions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .champ-card {
    padding: 14px 10px;
  }

  .champ-avatar {
    width: 42px;
    height: 42px;
  }

  .champ-name {
    font-size: 0.9rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .champ-val {
    font-size: 1.05rem;
  }
}
