:root {
  --accent:       #B916FD;
  --accent-dark:  #8f0fc4;
  --accent-glow:  rgba(185,22,253,.28);
  --accent2:      #ec64f8;
  --bg-base:      #080B10;
  --bg-card:      #0E1118;
  --bg-card2:     #1A1224;
  --bg-input:     #1c1430;
  --text-primary: #ffffff;
  --text-muted:   rgba(255,255,255,.45);
  --border:       rgba(255,255,255,.07);
  --radius:       10px;
  --radius-sm:    8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg-base); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; font-size: 15px; }
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

.text-accent { color: var(--accent) !important; }

.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; font-size: 1rem;
  line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; direction: ltr;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle; position: relative; top: -1px;
}
.ms-lg { font-size: 2rem; top: 0; }

/* ── Token Banner ── */
.token-banner {
  background: rgba(185,22,253,.15);
  border-bottom: 1px solid rgba(185,22,253,.3);
  padding: 9px 20px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.token-banner i { color: var(--accent); }
.token-banner code { background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 4px; font-size: .78rem; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,7,16,.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.navbar-left { display: flex; align-items: center; }
.navbar-center { display: flex; justify-content: center; }
.navbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.navbar-name {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem;
  letter-spacing: .01em; white-space: nowrap;
}
.navbar-store-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #1a2a3a; border: 1px solid rgba(60,120,200,.35);
  border-radius: 7px; padding: 6px 14px;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .82rem;
  letter-spacing: .08em; color: #6eb3ff;
  cursor: pointer; user-select: none;
  transition: background .2s, border-color .2s;
}
.navbar-store-badge:hover { background: #1f3248; border-color: rgba(60,120,200,.6); color: #9dd0ff; }
.navbar-store-badge .ms { font-size: .95rem; top: 0; color: #6eb3ff; }
.navbar-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 14px;
  color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: .85rem;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.navbar-user-btn:hover { border-color: rgba(185,22,253,.4); background: rgba(185,22,253,.08); }
.nav-head { width: 20px; height: 20px; border-radius: 3px; image-rendering: pixelated; }
.nav-online-badge { display: flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.nav-online-badge strong { color: var(--text-primary); }
.nav-drop-arrow { font-size: .7rem; color: var(--text-muted); margin-left: 2px; transition: transform .2s; }
.nav-user-wrap { position: relative; }
.nav-user-wrap.open .nav-drop-arrow { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-card2); border: 1px solid rgba(185,22,253,.3);
  border-radius: var(--radius); min-width: 150px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .2s, transform .2s; z-index: 200;
}
.nav-user-wrap.open .nav-drop { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; font-size: .85rem; font-weight: 700;
  color: var(--text-muted); cursor: pointer; transition: background .15s, color .15s;
}
.nav-drop-item:hover { background: rgba(255,255,255,.05); color: var(--text-primary); }
.nav-drop-item.nav-drop-danger { color: #ef4444; }
.nav-drop-item.nav-drop-danger:hover { background: rgba(239,68,68,.08); }
.nav-drop-item i { font-size: .8rem; width: 14px; text-align: center; }
.nav-cart-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted); font-size: .9rem;
  cursor: pointer; transition: all .2s;
}
.nav-cart-btn:hover { border-color: rgba(185,22,253,.4); color: var(--accent); background: rgba(185,22,253,.08); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero-bg-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10,7,16,.82) 0%,
    rgba(10,7,16,.55) 50%,
    rgba(10,7,16,.70) 100%
  ),
  linear-gradient(180deg, rgba(10,7,16,0) 60%, rgba(10,7,16,1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 40px 24px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 32px;
  align-items: center;
}
.hero-brand-card {
  display: flex; flex-direction: column; gap: 12px;
}
.hero-logo-wrapper {
  width: 96px; height: 96px;
  border-radius: 20%;
  overflow: hidden;
  border: 2px solid rgba(185,22,253,.35);
  box-shadow: 0 0 32px var(--accent-glow), 0 0 64px rgba(185,22,253,.15);
}
.hero-logo-avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-title {
  font-family: 'Outfit', sans-serif; font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1;
  text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(185,22,253,.2);
  letter-spacing: -.02em;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-ip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 16px;
  font-size: .9rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: border-color .2s, color .2s;
  user-select: none;
}
.hero-ip:hover { border-color: var(--accent); color: var(--accent); }
.hero-ip i { color: var(--accent); font-size: .8rem; }
.hero-discord-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(88,101,242,.18); border: 1px solid rgba(88,101,242,.35);
  border-radius: var(--radius-sm); padding: 8px 16px;
  font-size: .9rem; font-weight: 600; color: #9aa5ee;
  transition: border-color .2s, background .2s;
}
.hero-discord-btn:hover { background: rgba(88,101,242,.3); border-color: rgba(88,101,242,.6); color: #fff; }

/* Skin viewer */
.hero-skin-wrap { display: flex; justify-content: flex-end; }
.hero-skin-card {
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 180px;
}
.hero-skin-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(185,22,253,.06), transparent);
  border-radius: 0 0 var(--radius) var(--radius);
  pointer-events: none;
}
.hero-skin-name {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .88rem;
  color: var(--text-muted); text-align: center;
}
.hero-skin-canvas { display: block; image-rendering: auto; }
.hero-skin-fallback { max-height: 260px; image-rendering: pixelated; }

/* Player badge */
.player-badge { display: none; }
.player-badge.visible {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 600;
  background: rgba(0,0,0,.3); border-radius: 20px; padding: 2px 8px;
}
.player-badge::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 5px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 46px; display: flex; align-items: center; gap: 28px;
}
.stat-item { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.stat-item strong { color: var(--text-primary); }
.stat-item i { color: var(--accent); }
.stat-item a { color: var(--text-muted); font-weight: 600; transition: color .2s; }
.stat-item a:hover { color: var(--accent); }
.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
}
.online-dot.offline { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

/* ── Main Wrapper ── */
.main-wrapper {
  max-width: 1280px; margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 72px; }
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.sidebar-card-header {
  padding: .75rem 1.1rem .55rem;
  border-bottom: 1px solid var(--border);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.sidebar-card-header .ms { font-size: .9rem; color: var(--accent); top: 0; }
.user-box { display: flex; align-items: center; gap: 12px; padding: 1rem 1.1rem; }
.user-head { width: 52px; height: 52px; border-radius: 8px; image-rendering: pixelated; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; }
.user-sub { font-size: .8rem; margin-top: 3px; }
.user-sub a { color: var(--accent); font-weight: 700; }
.sidebar-nav { list-style: none; padding: .5rem 0; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 11px;
  padding: .65rem 1.1rem; font-size: .92rem; color: var(--text-muted);
  transition: color .18s, background .18s;
}
.sidebar-nav li a:hover { color: var(--text-primary); background: rgba(255,255,255,.04); }
.sidebar-nav li a.active {
  color: var(--accent);
  background: rgba(185,22,253,.13);
  border-left: 2.5px solid var(--accent);
  padding-left: calc(1.1rem - 2.5px);
  font-weight: 600;
}
.sidebar-nav li a i { width: 18px; text-align: center; color: var(--accent); font-size: .85rem; }
.sidebar-nav li a .ms { font-size: 1.05rem; color: var(--accent); width: 20px; text-align: center; flex-shrink: 0; top: 0; }
.sidebar-nav li a.active .ms { color: var(--accent); }
.sidebar-nav-divider {
  height: 1px; background: var(--border); margin: .4rem .7rem;
}
.cat-view-heading { gap: 10px; }
.cat-back-btn {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 9px; cursor: pointer;
  color: var(--text-muted); transition: color .2s, background .2s; flex-shrink: 0;
  display: flex; align-items: center;
}
.cat-back-btn:hover { color: var(--text-primary); background: rgba(185,22,253,.12); border-color: rgba(185,22,253,.3); }
.cat-back-btn .ms { font-size: 1.1rem; top: 0; }
.top-customer-body { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; }
.top-customer-body img { width: 40px; height: 40px; border-radius: .3rem; image-rendering: pixelated; flex-shrink: 0; }
.tc-name { font-weight: 700; font-size: .88rem; }
.tc-period { font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }
.payment-row {
  display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem;
  transition: background .2s;
}
.payment-row:hover { background: rgba(255,255,255,.03); }
.payment-row img { width: 28px; height: 28px; border-radius: 4px; image-rendering: pixelated; flex-shrink: 0; }
.payment-name { font-weight: 700; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-bar-body { padding: 1rem; }
.goal-amount-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .75rem; }
.goal-amount { font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 900; }
.goal-pct { font-size: .75rem; font-weight: 700; color: var(--text-muted); }
.goal-track { height: 9px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; margin-bottom: .7rem; }
.goal-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%); transition: width .6s ease; }
.goal-labels { display: flex; justify-content: space-between; font-size: .73rem; color: var(--text-muted); }
.goal-target { font-weight: 700; color: var(--text-primary); }

/* ── Content Area ── */
.content-area { min-width: 0; }

/* Section Heading */
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-heading h2 {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); display: flex; align-items: center; gap: 8px;
}
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-block { margin-bottom: 52px; }

/* Category Quick-Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}
.category-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.8rem 1rem;
  cursor: pointer; color: var(--text-primary);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  font-family: inherit;
}
.category-card:hover {
  border-color: rgba(185,22,253,.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.category-card .ms-lg { color: var(--accent); opacity: .8; margin-bottom: .6rem; display: block; }
.category-card-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .95rem; }

/* Package Grid */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.package-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  backdrop-filter: blur(8px);
}
.package-card:hover { transform: translateY(-3px); border-color: rgba(185,22,253,.45); box-shadow: 0 8px 28px var(--accent-glow); }
.pkg-img-wrap {
  position: relative;
  height: 150px;
  background: radial-gradient(circle at 50% 60%, rgba(185,22,253,.14) 0%, transparent 70%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pkg-img-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; image-rendering: pixelated; padding: 8px; }
.pkg-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pkg-img-fallback svg { width: 52px; height: 52px; opacity: .5; }
.pkg-sale-badge {
  position: absolute; top: 9px; right: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .73rem;
  padding: 2px 9px; border-radius: 20px;
}
.pkg-body { padding: 14px; display: flex; flex-direction: column; flex: 1; gap: 5px; }
.package-card-name {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pkg-desc { font-size: .83rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; min-height: 2.4em; }
.pkg-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.pkg-price { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--accent); }
.pkg-price-orig { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.pkg-actions { margin-top: auto; padding-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.pkg-buy {
  width: 100%; padding: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: opacity .2s, transform .2s;
}
.pkg-buy:hover { opacity: .86; transform: translateY(-1px); }
.pkg-buy:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.pkg-details { background: none; border: none; color: var(--text-muted); font-size: .8rem; cursor: pointer; text-align: center; transition: color .2s; }
.pkg-details:hover { color: var(--accent); }

/* Rank Table */
.rank-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; }
.rank-table { width: 100%; border-collapse: collapse; min-width: 440px; }
.rank-table th, .rank-table td { padding: 12px 18px; text-align: center; border-bottom: 1px solid var(--border); font-size: .88rem; }
.rank-table th:first-child, .rank-table td:first-child { text-align: left; }
.rank-table thead th { background: rgba(255,255,255,.03); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .9rem; }
.rank-table thead th.featured { background: rgba(185,22,253,.14); color: var(--accent); }
.rank-featured-badge { display: block; font-size: .65rem; font-weight: 700; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #fff; border-radius: 20px; padding: 2px 7px; margin: 3px auto 0; width: fit-content; }
.rank-table tbody td.featured { background: rgba(185,22,253,.05); }
.rank-table tbody tr:last-child td { border-bottom: none; }
.rank-table td:first-child { color: var(--text-muted); font-size: .85rem; }
.check { color: var(--accent); font-size: 1rem; }
.cross { color: var(--text-muted); }
.rank-price { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--accent); }

/* Info Grid */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.info-card-wide { grid-column: 1 / -1; }
.info-card h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.info-card h3 i { color: var(--accent); }
.info-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.info-card p + p { margin-top: 8px; }
.info-card a { color: var(--accent); font-weight: 600; }
.info-card strong { color: var(--text-primary); }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer { 0%{background-position:200%} 100%{background-position:-200%} }
.skeleton-card { border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; }
.skeleton-img { height: 150px; }
.skeleton-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.skeleton-line { height: 13px; border-radius: 4px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.xshort { width: 40%; }

/* Store Error */
.store-error { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--text-muted); }
.store-error strong { display: block; color: var(--text-primary); font-size: 1.1rem; margin-bottom: 8px; }

/* ── Modals ── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity .22s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-46%);
  z-index: 301; background: #10131a; border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; width: 480px; max-width: calc(100% - 32px);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
}
.cart-modal.open { opacity: 1; pointer-events: all; transform: translate(-50%,-50%); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
}
.cart-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--text-primary);
}
.cart-title i { color: #3b9eff; font-size: .95rem; }
.cart-close {
  background: none; border: none; color: var(--text-muted); font-size: .85rem;
  cursor: pointer; padding: 4px 6px; border-radius: 6px; transition: color .15s, background .15s;
}
.cart-close:hover { color: var(--text-primary); background: rgba(255,255,255,.06); }
.cart-divider { height: 1px; background: rgba(255,255,255,.07); }
.cart-body { padding: 48px 20px; }
.cart-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--text-muted);
}
.cart-empty i { font-size: 2.2rem; opacity: .35; }
.cart-empty p { font-size: .88rem; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(4px);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-48%);
  z-index: 201; background: var(--bg-card2); border: 1px solid rgba(185,22,253,.3);
  border-radius: var(--radius); padding: 0; max-width: 760px;
  width: calc(100% - 40px); max-height: 85vh; overflow: hidden;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.modal.open { opacity: 1; pointer-events: all; transform: translate(-50%,-50%); }
.modal > .modal-close { display: none; }

/* ── Modal2 (Package Detail) ── */
.modal2 {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 420px; max-height: 85vh;
}
.modal2-left {
  padding: 20px 18px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(0,0,0,.2);
}
.modal2-img-wrap {
  width: 100%; aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 60%, rgba(185,22,253,.18) 0%, transparent 70%);
  border-radius: var(--radius-sm); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.modal2-img-wrap img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; padding: 6px; }
.modal2-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.modal2-pkg-name {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .9rem;
  color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modal2-price { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.modal2-type {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); opacity: .7;
}
.modal2-checkout {
  width: 100%; padding: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .88rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .2s, transform .15s; margin-top: auto;
}
.modal2-checkout:hover { opacity: .87; transform: translateY(-1px); }
.modal2-checkout:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.modal2-checkout .ms { font-size: .95rem; top: 0; }
.modal2-gift-toggle {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  color: var(--text-muted); font-size: .8rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 7px;
  transition: border-color .2s, color .2s;
}
.modal2-gift-toggle:hover { border-color: rgba(185,22,253,.35); color: var(--text-primary); }
.modal2-gift-toggle.gift-open { border-color: rgba(185,22,253,.4); color: var(--accent); }
.modal2-gift-toggle .ms { font-size: .95rem; top: 0; color: var(--accent); opacity: .8; }
.gift-arrow { margin-left: auto; font-size: .68rem; }
.modal2-gift-row { display: flex; flex-direction: column; gap: 8px; }
.modal2-gift-input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  color: var(--text-primary); font-size: .85rem; outline: none;
  transition: border-color .2s;
}
.modal2-gift-input:focus { border-color: var(--accent); }
.modal2-gift-note { font-size: .72rem; color: var(--text-muted); line-height: 1.5; }

.modal2-right {
  padding: 18px 22px; display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto; min-height: 0;
}
.modal2-right-header {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.modal2-right-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); display: flex; align-items: center; gap: 5px;
}
.modal2-cat-tag {
  background: rgba(185,22,253,.12); border: 1px solid rgba(185,22,253,.22);
  color: var(--accent); font-size: .65rem; font-weight: 700;
  border-radius: 20px; padding: 2px 9px; text-transform: uppercase; letter-spacing: .06em;
}
.modal2-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--text-muted); width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: color .2s, background .2s; flex-shrink: 0;
}
.modal2-close:hover { color: var(--text-primary); background: rgba(255,255,255,.06); }
.modal2-close .ms { font-size: 1.1rem; top: 0; }
.modal2-divider { height: 1px; background: var(--border); flex-shrink: 0; }
.modal2-right-name {
  font-family: 'Outfit', sans-serif; font-weight: 900;
  font-size: 1.35rem; line-height: 1.15; letter-spacing: -.01em; flex-shrink: 0;
}
.modal2-right-desc {
  flex: 1; font-size: .86rem; color: var(--text-muted); line-height: 1.75;
  overflow-y: auto; min-height: 0;
}
.modal2-right-desc p { margin-bottom: 8px; }
.modal2-right-desc ul, .modal2-right-desc ol { padding-left: 18px; }
.modal2-right-desc li { margin-bottom: 4px; }
.modal2-right-desc li::marker { color: var(--accent); }
.modal2-right-desc strong { color: var(--text-primary); }
.modal2-right-cta {
  flex-shrink: 0; padding: 10px 14px;
  background: rgba(185,22,253,.06); border: 1px solid rgba(185,22,253,.15);
  border-radius: var(--radius-sm); font-size: .82rem; color: var(--text-muted);
  text-align: center; transition: background .2s, border-color .2s, color .2s;
}
.modal2-right-cta:hover { background: rgba(185,22,253,.12); border-color: rgba(185,22,253,.3); color: var(--accent); }
.modal2-right-cta strong { color: var(--accent); }

@media (max-width: 580px) {
  .modal2 { grid-template-columns: 1fr; }
  .modal2-left { border-right: none; border-bottom: 1px solid var(--border); }
  .modal2-img-wrap { max-width: 140px; margin: 0 auto; }
}

.username-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.username-modal-overlay.open { opacity: 1; pointer-events: all; }
.username-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-48%);
  z-index: 301;
  background: #0f1a12;
  border: 1px solid rgba(185,22,253,.2);
  border-radius: 18px; padding: 36px 32px 28px;
  max-width: 480px; width: calc(100% - 32px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s, transform .28s;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.username-modal.open { opacity: 1; pointer-events: all; transform: translate(-50%,-50%); }
.um-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,.3);
  transition: color .2s; padding: 4px;
}
.um-close:hover { color: rgba(255,255,255,.7); }
.um-close .ms { font-size: 1.1rem; top: 0; }
.um-title {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.45rem;
  color: var(--accent); text-align: center; margin-bottom: 6px;
}
.um-sub { font-size: .88rem; color: rgba(255,255,255,.55); text-align: center; margin-bottom: 22px; }
.um-edition-row { display: flex; gap: 12px; width: 100%; margin-bottom: 16px; }
.um-edition {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; color: rgba(255,255,255,.45);
  transition: border-color .2s, color .2s, background .2s; text-align: left;
}
.um-edition .ms { font-size: 1.4rem; top: 0; flex-shrink: 0; }
.um-edition.active {
  border-color: var(--accent); color: var(--text-primary);
  background: rgba(185,22,253,.1);
}
.um-edition-text { display: flex; flex-direction: column; gap: 1px; }
.um-edition-game { font-size: .72rem; font-weight: 500; opacity: .7; }
.um-edition-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .9rem; }
.um-hint { font-size: .78rem; color: rgba(255,255,255,.4); text-align: center; margin-bottom: 12px; font-style: italic; }
.um-input-row {
  display: flex; width: 100%; gap: 8px; margin-bottom: 12px;
}
.um-input-row input {
  flex: 1; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 13px 16px;
  color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 1rem;
  outline: none; transition: border-color .2s;
}
.um-input-row input:focus { border-color: var(--accent); }
.um-input-row input::placeholder { color: rgba(255,255,255,.3); }
.um-submit {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--accent); border: none; border-radius: 10px;
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.um-submit:hover { background: var(--accent-dark); transform: scale(1.05); }
.um-submit .ms { font-size: 1.3rem; top: 0; }
.um-bedrock-note {
  font-size: .76rem; color: rgba(255,255,255,.4); text-align: center;
  line-height: 1.5; max-width: 380px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; border-radius: var(--radius-sm); color: #fff;
  font-family: 'Outfit', sans-serif; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .86; transform: translateY(-1px); }
.btn-ghost {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-size: .86rem;
  padding: 7px 14px; cursor: pointer; transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--text-primary); border-color: rgba(185,22,253,.4); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(14px);
  background: var(--bg-card2); border: 1px solid rgba(185,22,253,.4);
  color: var(--text-primary); padding: 11px 22px; border-radius: 50px;
  font-size: .88rem; z-index: 500; pointer-events: none;
  opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Content Goal Bar ── */
.content-goal-bar {
  background: var(--bg-card); border: 1px solid rgba(185,22,253,.25);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px;
}
.cgb-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.cgb-icon { font-size: 1rem; color: var(--accent); }
.cgb-label { flex: 1; font-family: 'Outfit', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.cgb-pct { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .95rem; color: var(--accent); }
.cgb-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; margin-bottom: 8px; }
.cgb-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .6s ease; }
.cgb-amounts { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-muted); }
.cgb-current { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--text-primary); }
.cgb-amounts strong { color: var(--text-primary); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-muted); transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover { color: var(--accent); border-color: rgba(185,22,253,.4); background: rgba(185,22,253,.08); }
.footer-links { display: flex; gap: 20px; font-size: .85rem; }
.footer-links a { color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-size: .75rem; color: var(--text-muted); opacity: .6; }

/* ── Package List Rows ── */
.pkg-list { display: flex; flex-direction: column; gap: 7px; }
.pkg-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  cursor: pointer; transition: border-color .18s, background .18s; gap: 12px;
}
.pkg-row:hover { border-color: rgba(185,22,253,.4); background: rgba(185,22,253,.04); }
.pkg-row-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.pkg-row-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .97rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkg-row-sale { flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: .67rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.pkg-row-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.pkg-row-price { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--accent); min-width: 62px; text-align: right; }
.pkg-row-buy {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .85rem;
  padding: 9px 18px; cursor: pointer; white-space: nowrap;
  transition: opacity .2s, transform .15s;
}
.pkg-row-buy:hover { opacity: .87; transform: translateY(-1px); }
.pkg-row-buy:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.pkg-row-buy i { font-size: .78rem; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .main-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; order: -1; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .sidebar .sidebar-card { flex: 1 1 260px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-skin-wrap { display: none; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats-bar-inner { gap: 16px; font-size: .8rem; }
  .package-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
@media (max-width: 480px) {
  .package-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .main-wrapper { padding: 20px 14px 60px; }
}
