@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');

/**
 * Apex MU Inspired Gaming Portal Stylesheet
 * 100% Responsive, Zero-Overflow, Clean Visual Hierarchy
 */

:root {
  --ax-bg: #04070d;
  --ax-bg-side: #070b13;
  --ax-panel: #0a1018;
  --ax-panel-2: #0c131d;
  --ax-card: #0e1622;
  --ax-card-2: #121c2b;
  --ax-card-hover: #162438;
  --ax-line: #16202f;
  --ax-line-2: #1d2a3c;
  --ax-line-glow: rgba(47, 107, 255, 0.3);

  --ax-text: #e6edf7;
  --ax-text-2: #9fb0c6;
  --ax-text-3: #6b7c93;

  --ax-blue: #2f6bff;
  --ax-blue-glow: rgba(47, 107, 255, 0.4);
  --ax-sky: #38a8f0;
  --ax-cyan: #22d3ee;
  --ax-green: #22c55e;
  --ax-green-glow: rgba(34, 197, 94, 0.4);
  --ax-gold: #f59e0b;
  --ax-gold-2: #fbbf24;
  --ax-gold-glow: rgba(245, 158, 11, 0.35);
  --ax-red: #ef4444;
  --ax-violet: #8b5cf6;
  --ax-indigo: #5865f2;

  --sidebar-w: 270px;
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body, button, input, select, textarea {
  font-family: var(--font-main);
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--ax-bg);
  color: var(--ax-text);
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--ax-bg-side);
}
::-webkit-scrollbar-thumb {
  background: var(--ax-line-2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ax-blue);
}

/* ==========================================================================
   LAYOUT STRUCTURE (Zero Overflow)
   ========================================================================== */

.app-layout {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--ax-bg-side);
  border-right: 1px solid var(--ax-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1rem;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ax-line);
}

.brand-logo-img {
  max-width: 175px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.35));
  transition: transform 0.3s ease;
}
.brand-logo-img:hover {
  transform: scale(1.03);
}

.brand-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.6rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--ax-gold-2);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
}

/* Sidebar Dedicated Account Box */
.sidebar-account-box {
  background: var(--ax-card);
  border: 1px solid var(--ax-line-2);
  border-radius: 10px;
  padding: 0.85rem;
}

.sidebar-acc-guest {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: center;
}
.sidebar-acc-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ax-gold-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sidebar-acc-desc {
  font-size: 0.72rem;
  color: var(--ax-text-3);
  line-height: 1.35;
}
.sidebar-acc-btns {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.sidebar-acc-user {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-username {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}
.sidebar-gcoin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ax-text-2);
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
.sidebar-acc-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

/* Nav Menu */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item a, .nav-item button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  color: var(--ax-text-2);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item a:hover, .nav-item button:hover {
  color: #fff;
  background-color: var(--ax-card);
  transform: translateX(3px);
}

.nav-item.active a {
  background: var(--ax-blue);
  color: #fff;
  box-shadow: 0 4px 15px var(--ax-blue-glow);
}

.nav-icon {
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.nav-heading {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ax-text-3);
  font-weight: 700;
  margin: 0.65rem 0 0.25rem 0.5rem;
}

/* Sidebar Big CTA */
.btn-play-game-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.85rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--ax-green-glow);
  transition: all 0.25s ease;
}
.btn-play-game-big:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.sidebar-footer {
  margin-top: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ax-line);
  font-size: 0.68rem;
  color: var(--ax-text-3);
  text-align: center;
}

/* Overlay for mobile drawer */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 95;
}
.sidebar-overlay.active {
  display: block;
}

/* --- MAIN WRAPPER (Strict Width Clamping) --- */
.main-wrapper {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  max-width: calc(100% - var(--sidebar-w));
  min-width: 0;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- TOP HEADER BAR --- */
.top-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 16, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ax-line);
  padding: 0.65rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: var(--ax-card);
  border: 1px solid var(--ax-line-2);
  color: #fff;
  font-size: 1.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.online-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.online-dot {
  width: 8px;
  height: 8px;
  background-color: var(--ax-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ax-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.clock-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--ax-text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.server-select-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ax-line-2);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  color: var(--ax-text-2);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* User Widget in Header */
.user-widget {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
  background: var(--ax-panel);
  border: 1px solid var(--ax-line-2);
  border-radius: 8px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.vip-badge {
  background: linear-gradient(135deg, var(--ax-gold), #b45309);
  color: #fff;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

.gcoin-val {
  color: var(--ax-gold-2);
  font-weight: 800;
  font-family: monospace;
  font-size: 0.88rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  font-family: var(--font-main) !important;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.32rem 0.7rem;
  font-size: 0.76rem;
}

.btn-xs {
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
}

.btn-primary {
  background: var(--ax-blue);
  color: #fff;
  box-shadow: 0 4px 15px var(--ax-blue-glow);
}
.btn-primary:hover {
  background: #2558d4;
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--ax-gold), #d97706);
  color: #0b0f19;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--ax-gold-glow);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--ax-gold-2), var(--ax-gold));
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--ax-gold);
  color: var(--ax-gold-2);
}
.btn-outline-gold:hover {
  background: var(--ax-gold);
  color: #000;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ax-line-2);
  color: var(--ax-text);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ax-text-3);
  color: #fff;
}

/* ==========================================================================
   MAIN CONTENT SECTIONS
   ========================================================================== */

.content-body {
  padding: 1.5rem 1.75rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* --- 1. GIFTCODE NOTIFICATION STRIP --- */
.giftcode-strip {
  background: linear-gradient(90deg, rgba(14, 22, 34, 0.95), rgba(20, 30, 48, 0.95));
  border: 1px solid var(--ax-line-2);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.giftcode-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exclusive-tag {
  padding: 0.2rem 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--ax-red);
  color: #fca5a5;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.giftcode-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}
.giftcode-desc {
  font-size: 0.76rem;
  color: var(--ax-text-2);
}

.giftcode-center {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--ax-gold);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.giftcode-code {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ax-gold-2);
  letter-spacing: 0.08em;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--ax-text-2);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}
.btn-copy:hover {
  color: #fff;
}

/* --- 2. HERO BANNER --- */
.hero-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ax-line);
  background: #090e17 url('images/apex/hero.webp') no-repeat right center / cover;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #070b12 0%, rgba(7, 11, 18, 0.92) 50%, rgba(7, 11, 18, 0.35) 100%);
  pointer-events: none;
}

.hero-info {
  position: relative;
  z-index: 2;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid var(--ax-gold);
  color: var(--ax-gold-2);
}
.badge-green {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid var(--ax-green);
  color: #86efac;
}
.badge-cyan {
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid var(--ax-cyan);
  color: #a5f3fc;
}

.hero-headline {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffd469 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--ax-text-2);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* Floating Server Stats in Hero */
.hero-stats-card {
  position: relative;
  z-index: 2;
  background: rgba(14, 22, 34, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stats-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ax-line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.stats-meta {
  display: flex;
  flex-direction: column;
}
.stats-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--ax-text-3);
  font-weight: 700;
}
.stats-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}

/* --- 3. LIVE COMBAT TICKER (Zero-Blowout Overflow Hidden) --- */
.ticker-strip {
  background: var(--ax-panel);
  border: 1px solid var(--ax-line);
  border-radius: 10px;
  padding: 0.55rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.ticker-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ax-red);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-tag-dot {
  width: 7px;
  height: 7px;
  background-color: var(--ax-red);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.ticker-item {
  font-size: 0.8rem;
  color: var(--ax-text-2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.ticker-item strong {
  color: #fff;
}
.ticker-item .gold-item {
  color: var(--ax-gold-2);
  font-weight: 700;
}

/* --- 4. QUICK ACCESS GRID --- */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--ax-blue);
  border-radius: 2px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.quick-card {
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  padding: 1.15rem 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.quick-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s;
}

.quick-card:hover {
  background: var(--ax-card-hover);
  border-color: var(--ax-line-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.quick-card:hover::after {
  background: var(--ax-blue);
}

.quick-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
}

.quick-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.quick-desc {
  font-size: 0.76rem;
  color: var(--ax-text-3);
  line-height: 1.35;
}

/* --- 5. WEBSHOP SECTION --- */
.shop-section {
  background: var(--ax-panel);
  border: 1px solid var(--ax-line);
  border-radius: 14px;
  padding: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.shop-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--ax-line);
  padding-bottom: 0.85rem;
}

.tab-btn {
  padding: 0.45rem 0.9rem;
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  color: var(--ax-text-2);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover {
  color: #fff;
  border-color: var(--ax-line-2);
}
.tab-btn.active {
  background: var(--ax-blue);
  border-color: var(--ax-blue);
  color: #fff;
  box-shadow: 0 4px 15px var(--ax-blue-glow);
}

.shop-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.15rem;
  width: 100%;
}

.shop-card {
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  border-radius: 10px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}
.shop-card:hover {
  border-color: var(--ax-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}

.item-img-wrap {
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}
.item-img-wrap span {
  font-size: 3rem;
  transition: transform 0.3s;
}
.shop-card:hover .item-img-wrap span {
  transform: scale(1.08);
}

.item-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
}

.item-props {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.prop-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--ax-cyan);
}

.item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ax-line);
}

.item-price {
  font-size: 1rem;
  font-weight: 900;
  color: var(--ax-gold-2);
  font-family: monospace;
}

/* --- 6. 3-COLUMN INTEL GRID --- */
.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.intel-panel {
  background: var(--ax-panel);
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.75rem;
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.news-item:hover {
  background: var(--ax-card-hover);
  border-color: var(--ax-blue);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
}
.tag-update { background: rgba(56, 168, 240, 0.2); color: var(--ax-sky); }
.tag-event { background: rgba(245, 158, 11, 0.2); color: var(--ax-gold); }
.tag-notice { background: rgba(239, 68, 68, 0.2); color: var(--ax-red); }

.news-date {
  font-size: 0.68rem;
  color: var(--ax-text-3);
}

.news-headline {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

/* Patch Notes Timeline */
.patch-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  padding-left: 1.25rem;
}
.patch-timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 4px;
  width: 2px;
  background: var(--ax-line-2);
}

.patch-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.patch-node::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ax-green);
  box-shadow: 0 0 6px var(--ax-green);
}

.patch-date {
  font-size: 0.68rem;
  color: var(--ax-text-3);
}
.patch-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

/* Why Choose Cards */
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem;
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  border-radius: 6px;
}
.why-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.why-text h4 {
  font-size: 0.84rem;
  color: #fff;
  margin-bottom: 0.1rem;
}
.why-text p {
  font-size: 0.72rem;
  color: var(--ax-text-2);
}

/* --- 7. EVENT TIMERS & RANKINGS GRID --- */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

.events-panel, .rankings-panel {
  background: var(--ax-panel);
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.event-timer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  min-width: 0;
  max-width: 100%;
}

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

.event-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(40, 30, 20, 0.9) 0%, rgba(15, 12, 10, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-timer-card:hover .event-icon-box {
  border-color: var(--ax-gold);
  box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.2), 0 0 12px rgba(245, 158, 11, 0.35);
  transform: scale(1.05);
}

.event-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  user-select: none;
  pointer-events: none;
}

.event-meta h4 {
  font-size: 0.84rem;
  color: #fff;
}
.event-meta span {
  font-size: 0.72rem;
  color: var(--ax-text-3);
}

.event-countdown {
  text-align: right;
}
.event-timer-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ax-gold-2);
  font-family: monospace;
}
.event-status {
  font-size: 0.68rem;
  color: var(--ax-green);
  text-transform: uppercase;
}

/* Rankings Table */
.rank-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  white-space: nowrap;
}

.rank-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ax-text-3);
  border-bottom: 1px solid var(--ax-line);
}

.rank-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- 8. VIETQR RECHARGE BOX --- */
.recharge-panel {
  background: var(--ax-panel);
  border: 1px solid var(--ax-line);
  border-radius: 14px;
  padding: 1.5rem;
  width: 100%;
}

.denom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.denom-card {
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  padding: 0.85rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
/* --- 8. VIETQR RECHARGE BOX (Clean & Responsive) --- */
.recharge-panel {
  background: var(--ax-panel);
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.denom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.denom-card {
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  padding: 0.85rem 0.65rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.denom-card:hover {
  border-color: var(--ax-gold);
}
.denom-card.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--ax-gold);
  box-shadow: 0 0 15px var(--ax-gold-glow);
}

.denom-vnd {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.15rem;
}
.denom-bonus {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ax-green);
}

.qr-box-wrap {
  display: flex;
  gap: 1.5rem;
  background: var(--ax-card);
  border: 1px solid var(--ax-line-2);
  border-radius: 12px;
  padding: 1.5rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.qr-code-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

#qrCodeContainer {
  background: #ffffff !important;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 174px;
  height: 174px;
  box-sizing: border-box;
}
#qrCodeContainer canvas {
  display: none !important;
}
#qrCodeContainer img {
  display: block !important;
  width: 150px !important;
  height: 150px !important;
  border-radius: 4px;
}

.qr-badge {
  font-size: 0.72rem;
  color: var(--ax-text-3);
  text-align: center;
}

.qr-instructions {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.deposit-amount-highlight {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ax-gold-2);
  line-height: 1.2;
}

.syntax-copy-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.qr-syntax {
  padding: 0.4rem 0.85rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed var(--ax-gold);
  color: var(--ax-gold-2);
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 6px;
  word-break: break-all;
}

.bank-info-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.btn-test-deposit {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  margin-top: 0.25rem;
}

/* ==========================================================================
   MODALS & TOAST
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-box {
  background: var(--ax-panel);
  border: 1px solid var(--ax-line-2);
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1.15rem;
  background: transparent;
  border: none;
  color: var(--ax-text-3);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.modal-sub {
  font-size: 0.8rem;
  color: var(--ax-text-2);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ax-text-2);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--ax-card);
  border: 1px solid var(--ax-line-2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--ax-blue);
  box-shadow: 0 0 8px var(--ax-blue-glow);
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ax-card);
  border: 1px solid var(--ax-gold);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  animation: slideToast 0.3s ease;
}

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

/* ==========================================================================
   RESPONSIVE QUERIES (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
  }
  .top-header {
    padding: 0.65rem 1rem;
  }
  .clock-pill, .server-select-pill {
    display: none;
  }
  .content-body {
    padding: 1rem;
    gap: 1.25rem;
  }
  .hero-banner {
    padding: 1.75rem 1.25rem;
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-headline {
    font-size: 1.5rem;
  }
  .hero-stats-card {
    width: 100%;
  }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intel-grid {
    grid-template-columns: 1fr;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-header {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .header-left {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .clock-pill, .server-select-pill, .online-pill {
    display: none;
  }
  .header-right {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .user-widget {
    gap: 0.35rem;
    flex-wrap: nowrap;
  }
  .user-widget .btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.76rem;
    gap: 0.25rem;
  }
  .content-body {
    padding: 0.85rem 0.65rem 3rem;
  }
  .giftcode-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
  }
  .giftcode-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .giftcode-title {
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .giftcode-desc {
    font-size: 0.7rem;
  }
  .giftcode-center {
    width: 100%;
    justify-content: space-between;
  }
  .hero-banner {
    padding: 1.5rem 1rem;
    background-position: center right;
  }
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 0.82rem;
  }
  .hero-tags {
    gap: 0.35rem;
  }
  .hero-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.45rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .qr-box-wrap {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.15rem 0.85rem;
    gap: 1.15rem;
  }
  .qr-code-frame {
    margin: 0 auto;
  }
  .syntax-copy-box {
    justify-content: center;
  }
  .denom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .user-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.45rem;
    gap: 0.3rem;
  }
  .event-timer-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .event-countdown {
    align-self: flex-end;
  }
  .rank-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rank-table {
    min-width: 380px;
  }
}

@media (max-width: 380px) {
  .user-widget .btn {
    padding: 0.24rem 0.38rem;
    font-size: 0.68rem;
  }
  .online-pill {
    padding: 0.2rem 0.35rem;
    font-size: 0.68rem;
  }
}
