.panel-page { background: #080808; min-height: 100vh; }

.panel-shell {
  margin-left: 0 !important;
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 80px);
  position: relative;
  z-index: 1;
}

/* LEFT NAV like OneX */
.panel-nav {
  padding: 28px 14px 40px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,10,0.6);
}
.panel-nav-group { margin-bottom: 8px; }
.panel-nav-parent {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.panel-nav-parent:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
}
.panel-nav-parent.active,
.panel-nav-group.open > .panel-nav-parent {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}
.pnav-icon { font-size: 14px; opacity: 0.85; }
.pnav-chevron {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.25s;
}
.panel-nav-group.open .pnav-chevron { transform: rotate(0deg); }
.panel-nav-group:not(.open) .pnav-chevron { transform: rotate(-90deg); }

.panel-nav-children {
  display: none;
  flex-direction: column;
  padding: 4px 0 8px 12px;
  gap: 2px;
}
.panel-nav-group.open .panel-nav-children { display: flex; }

.panel-nav-child {
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.panel-nav-child:hover,
.panel-nav-child.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* CONTENT */
.panel-content {
  padding: 28px 32px 60px;
  max-width: 1200px;
}
.panel-view { display: none; }
.panel-view.active { display: block; }

.welcome-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(24,24,24,0.95), rgba(12,12,12,0.9));
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.welcome-card:hover {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 40px rgba(255,255,255,0.04);
}
.welcome-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.welcome-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.welcome-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.welcome-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  max-width: 640px;
  margin-bottom: 22px;
}
.welcome-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.wm-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.wm-value {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.wm-value.status-off { color: rgba(255,255,255,0.55); }
.wm-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.1);
}

.news-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background: rgba(14,14,14,0.9);
  padding: 28px 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.news-card:hover {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 32px rgba(255,255,255,0.04);
}
.news-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}
.news-card h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.news-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.news-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
}
.news-item-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}
.news-item-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.panel-view-head {
  margin-bottom: 24px;
}
.panel-view-head h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.panel-view-head p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
}

.shop-split {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}
.panel-filter {
  padding: 0 !important;
  border: none !important;
}
.shop-split-main .search-box {
  margin-bottom: 20px;
  max-width: 420px;
}

@media (max-width: 900px) {
  .panel-shell { grid-template-columns: 1fr; }
  .panel-nav {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .shop-split { grid-template-columns: 1fr; }
  .welcome-meta { gap: 12px; }
  .wm-divider { display: none; }
}

/* Character selector at top of side panel */
.char-select {
  position: relative;
  margin-bottom: 20px;
}
.char-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 14px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  text-align: left;
}
.char-select-trigger:hover,
.char-select.open .char-select-trigger {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 24px rgba(255,255,255,0.05);
}
.char-select-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.char-select-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.char-select-hint {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
}
.char-select-name {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.char-select-arrow {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  transition: transform 0.25s;
}
.char-select.open .char-select-arrow { transform: rotate(180deg); }

.char-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  z-index: 50;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.char-select.open .char-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.char-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  text-align: left;
  transition: background 0.15s;
}
.char-option:last-child { border-bottom: none; }
.char-option:hover { background: rgba(255,255,255,0.06); }
.char-option.active { background: rgba(255,255,255,0.1); }
.char-option-name {
  font-size: 13px;
  font-weight: 800;
}
.char-option-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

/* Big name instead of dots */
.welcome-char-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
}

/* Fix content not stuck under header */
.panel-shell {
  padding-top: 0;
}
.panel-content {
  padding-top: 24px;
}
.welcome-card {
  margin-top: 4px;
}

/* Full height under fixed header */
.panel-page .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.panel-shell {
  margin-left: 0 !important;
  margin-top: 72px !important; /* clear fixed header */
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: start;
}

.panel-nav {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 20px 14px 32px !important;
}

.panel-content {
  padding: 20px 32px 60px !important;
}

.welcome-card {
  margin-top: 0 !important;
}

/* Simple side nav */
.panel-simple-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.panel-simple-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.panel-simple-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.panel-simple-item.active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}

/* Footer shouldn't overlap with fixed layout */
.panel-page .footer {
  margin-left: 0 !important;
}

/* Shop filter — horizontal under search */
.shop-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.shop-top .search-box {
  max-width: 480px;
  margin-bottom: 0;
}
.shop-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.shop-filter-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.shop-filter-chip:hover {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.shop-filter-chip.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Side panel full height: header → footer */
.panel-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.panel-page .requires-auth.panel-shell {
  flex: 1 1 auto;
  margin-top: 72px !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
  min-height: calc(100vh - 72px);
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  align-items: stretch !important;
}

.panel-page .panel-nav {
  position: relative !important;
  top: auto !important;
  max-height: none !important;
  height: 100% !important;
  min-height: calc(100vh - 72px);
  align-self: stretch;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 8, 8, 0.85);
  padding: 24px 16px 40px !important;
  box-sizing: border-box;
}

.panel-page .panel-content {
  min-height: calc(100vh - 72px);
  box-sizing: border-box;
}

/* When footer is present, shell grows with content; nav still stretches */
.panel-page .footer {
  margin-left: 0 !important;
  position: relative;
  z-index: 2;
}

/* Hide auth-gate from taking space when logged in */
body.is-logged-in .auth-gate { display: none !important; }
body:not(.is-logged-in) .panel-shell { display: none !important; }

/* ===== Credit checkout modal ===== */
.credit-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.credit-checkout-modal[hidden] { display: none !important; }
.ccm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ccm-panel {
  position: relative;
  width: min(400px, 100%);
  background: #111;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.65);
  animation: ccm-in 0.25s ease;
}
@keyframes ccm-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.ccm-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
}
.ccm-close:hover { color: #fff; }
.ccm-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}
.ccm-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.ccm-title { font-size: 1.25rem; font-weight: 700; }
.ccm-sub { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.ccm-summary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ccm-row { font-size: 0.7rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.ccm-line {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.ccm-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ccm-total span { display: block; font-weight: 600; }
.ccm-total small { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
.ccm-total-right { text-align: right; }
.ccm-total-right strong { display: block; font-size: 1.5rem; }
.ccm-total-right span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.ccm-perks {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.ccm-perks li {
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}
.ccm-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.7);
}
.ccm-pay-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.ccm-pay-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.ccm-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ccm-secure {
  text-align: center;
  margin-top: 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}
.credit-card { cursor: pointer; }
.credit-card.selected {
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}



/* ATNAUJINTI — same row as SVEIKI SUGRĮŽĘ, credits-like pill */
.welcome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 6px;
}
.welcome-top .welcome-label {
  margin-bottom: 0;
}
.btn-refresh-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-refresh-panel:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(255,255,255,0.06);
}
.btn-refresh-panel:disabled {
  opacity: 0.45;
  cursor: wait;
}
.panel-refresh-toast {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin: 0 0 10px;
}


/* CFX gate over credits — centered overlay */
.credits-gate-wrap {
  position: relative !important;
  display: block !important;
  min-height: 420px;
  width: 100%;
}
.credits-gate-wrap .credit-packages {
  position: relative;
  z-index: 1;
}
.credit-packages.credits-blurred {
  filter: blur(8px) !important;
  -webkit-filter: blur(8px) !important;
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0.45 !important;
}
.credits-gate-wrap.unlocked .credit-packages.credits-blurred {
  filter: none !important;
  -webkit-filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
  opacity: 1 !important;
}
.credits-cfx-gate {
  position: absolute !important;
  inset: 0 !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 16px;
  box-sizing: border-box;
}
.credits-gate-wrap.unlocked .credits-cfx-gate {
  display: none !important;
}
.credits-cfx-card {
  max-width: 400px;
  width: 100%;
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 10, 0.98);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.credits-cfx-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  opacity: 0.7;
}
.credits-cfx-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
}
.credits-cfx-card p {
  margin: 0 0 22px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}
/* Same pill language as ATNAUJINTI / credits header */
.credits-cfx-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 12px 22px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.credits-cfx-btn:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}
.credits-cfx-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.history-row-main { display: flex; flex-direction: column; gap: 4px; }
.history-row-title { font-weight: 700; font-size: 0.92rem; }
.history-row-meta { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.history-row-right { text-align: right; }
.history-row-credits { font-weight: 800; color: #fff; }
.history-row-eur { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* panel-gap-fix: no black strip between side and content */
.panel-shell,
.panel-layout,
.panel-body {
  display: flex !important;
  gap: 0 !important;
  column-gap: 0 !important;
}
.panel-side,
.panel-sidebar {
  margin: 0 !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
}
.panel-content {
  margin: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
/* kill leftover sidebar-width margin from main site styles */
body.panel-page main,
body.panel-page .panel-shell,
.panel-page .panel-layout {
  margin-left: 0 !important;
}

/* force no outer gap on panel */
html body.panel-page .panel-shell,
html body.panel-page .requires-auth.panel-shell,
html body.panel-page main {
  margin-left: 0 !important;
  left: 0 !important;
}
html body.panel-page .sidebar {
  display: none !important;
  width: 0 !important;
}
html body.panel-page .header {
  left: 0 !important;
  width: 100% !important;
}
.panel-nav {
  margin: 0 !important;
}
.panel-content {
  margin-left: 0 !important;
}

/* === GAP FIX: sidebar flush with content, no black strip === */
html body.panel-page .requires-auth.panel-shell {
  margin-top: var(--header-height, 64px) !important;
  margin-left: 0 !important;
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  column-gap: 0 !important;
  gap: 0 !important;
  align-items: start !important;
  min-height: calc(100vh - var(--header-height, 64px)) !important;
  background: #080808 !important;
}
html body.panel-page .panel-nav {
  margin: 0 !important;
  padding: 16px 12px 24px !important;
  min-height: calc(100vh - var(--header-height, 64px)) !important;
  height: auto !important;
  background: #0a0a0a !important;
  border-right: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}
html body.panel-page .panel-content {
  margin: 0 !important;
  padding: 16px 24px 48px !important;
  min-height: calc(100vh - var(--header-height, 64px)) !important;
  background: #080808 !important;
  box-sizing: border-box !important;
}
/* Character select sits tight at top */
html body.panel-page .char-select,
html body.panel-page .panel-nav .char-select-box,
html body.panel-page #charSelect {
  margin-top: 0 !important;
}
html body.panel-page .sidebar {
  display: none !important;
  width: 0 !important;
}
html body.panel-page .header {
  left: 0 !important;
  width: 100% !important;
}

.credit-packages {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
}
@media (max-width: 1100px) {
  .credit-packages { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 800px) {
  .credit-packages { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .credit-packages { grid-template-columns: 1fr !important; }
}


/* ===== Credits CFX gate — full area blur ===== */
#view-credits .credits-gate-wrap {
  position: relative !important;
  min-height: calc(100vh - 160px);
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}
#view-credits .credits-gate-inner {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  pointer-events: none;
  user-select: none;
  opacity: 0.4;
  transform: scale(1.01);
}
#view-credits .credits-gate-wrap.unlocked .credits-gate-inner {
  filter: none !important;
  -webkit-filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
  opacity: 1 !important;
  transform: none;
}
#view-credits .credit-packages.credits-blurred {
  filter: none !important; /* parent already blurs */
  opacity: 1 !important;
  pointer-events: inherit !important;
}
#view-credits .credits-cfx-gate {
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 16px;
}
#view-credits .credits-gate-wrap.unlocked .credits-cfx-gate {
  display: none !important;
}
#view-credits .credits-cfx-card {
  max-width: 400px;
  width: 100%;
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(12, 12, 12, 0.98);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.65);
}

/* Center alert modal */
.plusrp-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.plusrp-alert-modal[hidden] { display: none !important; }
.plusrp-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.plusrp-alert-panel {
  position: relative;
  width: min(380px, 100%);
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #111;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,0.7);
  animation: vdm-in 0.22s ease;
}
.plusrp-alert-panel h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
}
.plusrp-alert-panel p {
  margin: 0 0 20px;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.45;
}
.plusrp-alert-btn {
  min-width: 120px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.plusrp-alert-btn:hover { opacity: 0.9; }
