/* =====================================================================
 * POKÉDEX & PIXEL POKÉBALL UI THEME (PROTOTYPE: #tab-market & #cardDetailModal)
 * Inspired by:
 *   1. download (1).jpg -> 9-slice Pokéball pixel corner frame
 *   2. download.jpg -> GBA/DS Pokédex "▼ INFO" grid screen, bevel pills, dotted stats, red desc box
 *   3. Overlay Pokemon.jpg -> Classic Red Pokédex chassis (cyan lens, 3 LEDs, screen bezel)
 * ===================================================================== */

/* Scoped CSS Variables for Light & Dark Modes across all Tabs & Modals */
:root,
#tab-live,
#tab-market,
#tab-packs,
#tab-draw,
#tab-profile,
#tab-leaderboard,
#tab-settings,
#tab-donate,
#tab-admin,
#packCardsModal,
#cardDetailModal,
#liveHitDetailModal,
#termsModal,
#privacyModal {
  --pdx-red: #e11d2e;
  --pdx-red-dark: #991b1b;
  --pdx-red-bright: #ef4444;
  --pdx-surface: #ffffff;
  --pdx-surface-soft: #f8fafc;
  --pdx-grid-bg: #ffffff;
  --pdx-grid-line: rgba(148, 163, 184, 0.22);
  --pdx-ink: #0f172a;
  --pdx-ink-muted: #475569;
  --pdx-border: #1e293b;
  --pdx-shadow: rgba(15, 23, 42, 0.22);
  --pdx-dot: rgba(100, 116, 139, 0.45);
}

body.dark-mode,
body.dark-mode #tab-live,
body.dark-mode #tab-market,
body.dark-mode #tab-packs,
body.dark-mode #tab-draw,
body.dark-mode #tab-profile,
body.dark-mode #tab-leaderboard,
body.dark-mode #tab-settings,
body.dark-mode #tab-donate,
body.dark-mode #tab-admin,
body.dark-mode #packCardsModal,
body.dark-mode #cardDetailModal,
body.dark-mode #liveHitDetailModal,
body.dark-mode #termsModal,
body.dark-mode #privacyModal {
  --pdx-surface: #0b0b0d;
  --pdx-surface-soft: #050507;
  --pdx-grid-bg: #030304;
  --pdx-grid-line: rgba(255, 255, 255, 0.042);
  --pdx-ink: #f4f4f6;
  --pdx-ink-muted: #8e8e98;
  --pdx-border: #2d2d34;
  --pdx-shadow: rgba(0, 0, 0, 0.94);
  --pdx-dot: rgba(255, 255, 255, 0.16);
}

/* ================= 1. SEARCH BAR — IMAGE 1 (9-SLICE PIXEL POKÉBALL FRAME) ================= */
#tab-market .search-bar,
#tab-packs .search-bar,
#tab-profile .search-bar,
#tab-profile .lookup-input-box,
#tab-admin .search-bar,
#tab-admin .lookup-input-box,
#packCardsModal .search-bar {
  position: relative;
  border-radius: 4px;
  border: none;
  background: var(--pdx-surface);
  padding: 6px 14px 6px 20px;
  box-shadow: 4px 5px 0 3px var(--pdx-shadow);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

#tab-market .search-bar::before,
#tab-packs .search-bar::before,
#tab-profile .search-bar::before,
#tab-profile .lookup-input-box::before,
#tab-admin .search-bar::before,
#tab-admin .lookup-input-box::before,
#packCardsModal .search-bar::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-style: solid;
  border-width: 14px;
  border-image-source: url('/static/assets/pokeball-pixel-frame.png?v=2');
  border-image-slice: 24;
  border-image-repeat: stretch;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 2;
}

#tab-market .search-bar:focus-within,
#tab-packs .search-bar:focus-within,
#tab-profile .search-bar:focus-within,
#tab-profile .lookup-input-box:focus-within,
#tab-admin .search-bar:focus-within,
#tab-admin .lookup-input-box:focus-within,
#packCardsModal .search-bar:focus-within {
  box-shadow: 4px 5px 0 4px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

#tab-market .search-bar input,
#tab-packs .search-bar input,
#tab-profile .search-bar input,
#tab-profile .lookup-input-box input,
#tab-admin .search-bar input,
#tab-admin .lookup-input-box input,
#packCardsModal .search-bar input {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none;
  outline: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--pdx-ink) !important;
  caret-color: var(--pdx-ink);
  padding: 6px 4px;
}

#tab-market .search-bar input::placeholder,
#tab-packs .search-bar input::placeholder,
#tab-profile .search-bar input::placeholder,
#tab-profile .lookup-input-box input::placeholder,
#tab-admin .search-bar input::placeholder,
#tab-admin .lookup-input-box input::placeholder,
#packCardsModal .search-bar input::placeholder {
  color: var(--pdx-ink-muted);
  opacity: 0.78;
}

body.dark-mode #tab-market .search-bar input,
body.dark-mode #tab-packs .search-bar input,
body.dark-mode #tab-profile .search-bar input,
body.dark-mode #tab-profile .lookup-input-box input,
body.dark-mode #tab-admin .search-bar input,
body.dark-mode #tab-admin .lookup-input-box input,
body.dark-mode #packCardsModal .search-bar input {
  color-scheme: dark;
}

#tab-profile .lookup-input-box input:-webkit-autofill,
#tab-profile .lookup-input-box input:-webkit-autofill:hover,
#tab-profile .lookup-input-box input:-webkit-autofill:focus,
#tab-admin .lookup-input-box input:-webkit-autofill,
#tab-admin .lookup-input-box input:-webkit-autofill:hover,
#tab-admin .lookup-input-box input:-webkit-autofill:focus,
#tab-market .search-bar input:-webkit-autofill,
#tab-packs .search-bar input:-webkit-autofill,
#tab-profile .search-bar input:-webkit-autofill,
#tab-admin .search-bar input:-webkit-autofill,
#packCardsModal .search-bar input:-webkit-autofill {
  -webkit-text-fill-color: var(--pdx-ink) !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 99999s ease-in-out 0s !important;
  background-color: transparent !important;
}

#tab-market .search-bar .search-btn-icon,
#tab-packs .search-bar .search-btn-icon,
#tab-profile .search-bar .search-btn-icon,
#tab-admin .search-bar .search-btn-icon,
#packCardsModal .search-bar .search-btn-icon {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 2px solid #0f172a;
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.35);
}

#tab-market .search-bar .search-btn-icon:hover,
#tab-packs .search-bar .search-btn-icon:hover,
#tab-profile .search-bar .search-btn-icon:hover,
#tab-admin .search-bar .search-btn-icon:hover,
#packCardsModal .search-bar .search-btn-icon:hover {
  transform: scale(1.06);
}

/* Dark Mode Carbon Search Frame (inspired by pokemon_album_black.webp) */
body.dark-mode #tab-market .search-bar,
body.dark-mode #tab-packs .search-bar,
body.dark-mode #tab-profile .search-bar,
body.dark-mode #tab-profile .lookup-input-box,
body.dark-mode #tab-admin .search-bar,
body.dark-mode #packCardsModal .search-bar {
  background: linear-gradient(180deg, #121216 0%, #09090c 55%, #050507 100%);
  border-radius: 10px;
  border: none;
  box-shadow:
    inset 0 0 0 2px #2e2e36,
    inset 0 3px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 0 rgba(0, 0, 0, 0.9),
    inset 0 0 0 5px #060608,
    0 10px 26px rgba(0, 0, 0, 0.92),
    4px 5px 0 1px var(--pdx-shadow);
}

body.dark-mode #tab-market .search-bar::before,
body.dark-mode #tab-packs .search-bar::before,
body.dark-mode #tab-profile .search-bar::before,
body.dark-mode #tab-profile .lookup-input-box::before,
body.dark-mode #tab-admin .search-bar::before,
body.dark-mode #packCardsModal .search-bar::before {
  inset: -8px;
  border-image: none;
  border: 2px solid #26262e;
  border-radius: 13px;
  background:
    linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, 0.14) 22%, rgba(255, 255, 255, 0.14) 38%, transparent 48%, transparent 52%, rgba(255, 255, 255, 0.14) 62%, rgba(255, 255, 255, 0.14) 78%, transparent 88%) top / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, 0.08) 22%, rgba(255, 255, 255, 0.08) 38%, transparent 48%, transparent 52%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0.08) 78%, transparent 88%) bottom / 100% 2px no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1.5px #000000;
}

body.dark-mode #tab-market .search-bar::after,
body.dark-mode #tab-packs .search-bar::after,
body.dark-mode #tab-profile .search-bar::after,
body.dark-mode #tab-profile .lookup-input-box::after,
body.dark-mode #tab-admin .search-bar::after,
body.dark-mode #packCardsModal .search-bar::after {
  content: '';
  position: absolute;
  inset: -11px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='%2316161b' stroke='%2343434e' stroke-width='1.3'/%3E%3Ccircle cx='9' cy='9' r='6' fill='%23202027' stroke='%23050507' stroke-width='1'/%3E%3Crect x='1.8' y='8.1' width='14.4' height='1.8' fill='%23050507'/%3E%3Ccircle cx='9' cy='9' r='2.6' fill='%232e2e38' stroke='%23050507' stroke-width='1.1'/%3E%3Ccircle cx='8.5' cy='8.4' r='0.9' fill='%23636372'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='%2316161b' stroke='%2343434e' stroke-width='1.3'/%3E%3Ccircle cx='9' cy='9' r='6' fill='%23202027' stroke='%23050507' stroke-width='1'/%3E%3Crect x='1.8' y='8.1' width='14.4' height='1.8' fill='%23050507'/%3E%3Ccircle cx='9' cy='9' r='2.6' fill='%232e2e38' stroke='%23050507' stroke-width='1.1'/%3E%3Ccircle cx='8.5' cy='8.4' r='0.9' fill='%23636372'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='%2316161b' stroke='%2343434e' stroke-width='1.3'/%3E%3Ccircle cx='9' cy='9' r='6' fill='%23202027' stroke='%23050507' stroke-width='1'/%3E%3Crect x='1.8' y='8.1' width='14.4' height='1.8' fill='%23050507'/%3E%3Ccircle cx='9' cy='9' r='2.6' fill='%232e2e38' stroke='%23050507' stroke-width='1.1'/%3E%3Ccircle cx='8.5' cy='8.4' r='0.9' fill='%23636372'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='%2316161b' stroke='%2343434e' stroke-width='1.3'/%3E%3Ccircle cx='9' cy='9' r='6' fill='%23202027' stroke='%23050507' stroke-width='1'/%3E%3Crect x='1.8' y='8.1' width='14.4' height='1.8' fill='%23050507'/%3E%3Ccircle cx='9' cy='9' r='2.6' fill='%232e2e38' stroke='%23050507' stroke-width='1.1'/%3E%3Ccircle cx='8.5' cy='8.4' r='0.9' fill='%23636372'/%3E%3C/svg%3E");
  background-position: top left, top right, bottom left, bottom right;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 3;
}

body.dark-mode #tab-market .search-bar:hover,
body.dark-mode #tab-packs .search-bar:hover,
body.dark-mode #tab-profile .search-bar:hover,
body.dark-mode #tab-profile .lookup-input-box:hover,
body.dark-mode #tab-admin .search-bar:hover,
body.dark-mode #packCardsModal .search-bar:hover,
body.dark-mode #tab-market .search-bar:focus-within,
body.dark-mode #tab-packs .search-bar:focus-within,
body.dark-mode #tab-profile .search-bar:focus-within,
body.dark-mode #tab-profile .lookup-input-box:focus-within,
body.dark-mode #tab-admin .search-bar:focus-within,
body.dark-mode #packCardsModal .search-bar:focus-within {
  box-shadow:
    inset 0 0 0 2px #d4d4d8,
    inset 0 3px 0 rgba(255, 255, 255, 0.24),
    inset 0 0 0 5px #060608,
    0 0 18px rgba(255, 255, 255, 0.12),
    4px 5px 0 2px rgba(0, 0, 0, 0.95);
}

body.dark-mode #tab-market .search-bar:hover::before,
body.dark-mode #tab-packs .search-bar:hover::before,
body.dark-mode #tab-profile .search-bar:hover::before,
body.dark-mode #tab-profile .lookup-input-box:hover::before,
body.dark-mode #tab-admin .search-bar:hover::before,
body.dark-mode #packCardsModal .search-bar:hover::before,
body.dark-mode #tab-market .search-bar:focus-within::before,
body.dark-mode #tab-packs .search-bar:focus-within::before,
body.dark-mode #tab-profile .search-bar:focus-within::before,
body.dark-mode #tab-profile .lookup-input-box:focus-within::before,
body.dark-mode #tab-admin .search-bar:focus-within::before,
body.dark-mode #packCardsModal .search-bar:focus-within::before {
  border-color: #52525b;
}

body.dark-mode #tab-market .search-bar .search-btn-icon,
body.dark-mode #tab-packs .search-bar .search-btn-icon,
body.dark-mode #tab-profile .search-bar .search-btn-icon,
body.dark-mode #tab-admin .search-bar .search-btn-icon,
body.dark-mode #packCardsModal .search-bar .search-btn-icon {
  background: linear-gradient(135deg, #272730, #141419);
  border-color: #3f3f4a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    2px 2px 0 rgba(0, 0, 0, 0.85);
}

body.dark-mode #tab-market .search-bar .search-btn-icon:hover,
body.dark-mode #tab-packs .search-bar .search-btn-icon:hover,
body.dark-mode #tab-profile .search-bar .search-btn-icon:hover,
body.dark-mode #tab-admin .search-bar .search-btn-icon:hover,
body.dark-mode #packCardsModal .search-bar .search-btn-icon:hover {
  border-color: #d4d4d8;
  background: linear-gradient(135deg, #343440, #1b1b22);
}

body.dark-mode #tab-market .search-bar .pokeball-search-icon,
body.dark-mode #tab-packs .search-bar .pokeball-search-icon,
body.dark-mode #tab-profile .search-bar .pokeball-search-icon,
body.dark-mode #tab-admin .search-bar .pokeball-search-icon,
body.dark-mode #packCardsModal .search-bar .pokeball-search-icon {
  background: linear-gradient(180deg, #e4e4e7 50%, #71717a 50%);
  border-color: #e4e4e7;
}

body.dark-mode #tab-market .search-bar .pokeball-search-icon::after,
body.dark-mode #tab-packs .search-bar .pokeball-search-icon::after,
body.dark-mode #tab-profile .search-bar .pokeball-search-icon::after,
body.dark-mode #tab-admin .search-bar .pokeball-search-icon::after,
body.dark-mode #packCardsModal .search-bar .pokeball-search-icon::after {
  border-color: #18181b;
}

/* ================= 2. FILTER PILLS — IMAGE 2 ("NORMAL" BEVEL BUTTON STYLE) ================= */
#tab-market .filter-pill-select,
#tab-market .range-selector,
#tab-market .active-badge,
#tab-packs .filter-pill-select,
#tab-packs .range-selector,
#tab-packs .active-badge,
#tab-profile .filter-pill-select,
#tab-profile .range-selector,
#tab-profile .active-badge,
#tab-admin .filter-pill-select,
#tab-admin .active-badge,
#packCardsModal .filter-pill-select,
#packCardsModal .active-badge {
  border-radius: 8px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 3px 3px 0 var(--pdx-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
}

#tab-market .filter-pill-select:hover,
#tab-market .filter-pill-select:focus-within,
#tab-packs .filter-pill-select:hover,
#tab-packs .filter-pill-select:focus-within,
#tab-profile .filter-pill-select:hover,
#tab-profile .filter-pill-select:focus-within,
#tab-admin .filter-pill-select:hover,
#tab-admin .filter-pill-select:focus-within,
#packCardsModal .filter-pill-select:hover,
#packCardsModal .filter-pill-select:focus-within {
  border-color: var(--pdx-red-bright);
  box-shadow: 3px 3px 0 rgba(225, 29, 46, 0.35);
  transform: translate(-1px, -1px);
}

#tab-market .filter-pill-select .pill-label,
#tab-market .range-lbl,
#tab-packs .filter-pill-select .pill-label,
#tab-packs .range-lbl,
#tab-profile .filter-pill-select .pill-label,
#tab-profile .range-lbl,
#tab-admin .filter-pill-select .pill-label,
#packCardsModal .filter-pill-select .pill-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

#tab-market .active-badge,
#tab-packs .active-badge,
#tab-profile .active-badge,
#tab-admin .active-badge,
#packCardsModal .active-badge {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pdx-ink);
  margin-left: auto;
}

#tab-market .custom-dropdown-menu,
#tab-packs .custom-dropdown-menu,
#tab-profile .custom-dropdown-menu,
#packCardsModal .custom-dropdown-menu {
  border-radius: 10px;
  border: 2px solid var(--pdx-border);
  box-shadow: 5px 5px 0 var(--pdx-shadow);
}

/* ================= 3. MARKET TRENDS WIDGET — IMAGE 3 (RED POKÉDEX CHASSIS + GRID SCREEN) ================= */
#tab-market .trend-column {
  position: relative;
  border-radius: 14px;
  border: 2px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
}

#tab-market .trend-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 70%, #b91c1c 100%);
  border-bottom: 2px solid var(--pdx-border);
  color: #ffffff;
}

#tab-market .trend-head::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #bae6fd 0%, #38bdf8 45%, #0284c7 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.85), 0 0 0 1px #0f172a;
  flex-shrink: 0;
}

#tab-market .trend-head h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(15, 23, 42, 0.45);
  margin: 0;
  flex: 1;
}

#tab-market .trend-head::after {
  content: '';
  width: 28px;
  height: 8px;
  background:
    radial-gradient(circle at 4px 4px, #ef4444 3px, #0f172a 3.5px, transparent 4px),
    radial-gradient(circle at 14px 4px, #facc15 3px, #0f172a 3.5px, transparent 4px),
    radial-gradient(circle at 24px 4px, #22c55e 3px, #0f172a 3.5px, transparent 4px);
  flex-shrink: 0;
}

#tab-market .trend-items {
  padding: 12px 14px;
  gap: 8px;
}

#tab-market .trend-item-row {
  background: var(--pdx-surface);
  border: 1.5px solid var(--pdx-border);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--pdx-shadow);
}

#tab-market .trend-item-row:hover {
  transform: translate(2px, -1px);
  border-color: var(--pdx-red-bright);
  background: var(--pdx-surface);
}

/* ================= 4. POKÉMON & PACK CARDS GRID ================= */
#tab-market .pokemon-clean-card,
#tab-packs .pack-clean-card,
#tab-profile .pokemon-clean-card,
#packCardsModal .pokemon-clean-card {
  border-radius: 12px;
  border: 2px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 0 12px 14px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  position: relative;
}

#tab-admin .pack-clean-card,
#tab-admin .admin-clean-card,
.admin-override-card-box {
  border-radius: 12px;
  border: 2px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 0 16px 18px;
  overflow: visible !important;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  position: relative;
}

#tab-market .pokemon-clean-card:hover,
#tab-packs .pack-clean-card:hover,
#tab-profile .pokemon-clean-card:hover,
#packCardsModal .pokemon-clean-card:hover {
  transform: translate(-2px, -6px);
  border-color: var(--pdx-red-bright);
  box-shadow: 6px 8px 0 rgba(225, 29, 46, 0.38);
}

#tab-market .pdx-card-strip,
#tab-packs .pdx-card-strip,
#tab-draw .pdx-card-strip,
#tab-profile .pdx-card-strip,
#tab-admin .pdx-card-strip,
#packCardsModal .pdx-card-strip {
  width: calc(100% + 24px);
  margin: 0 -12px 10px;
  padding: 6px 12px;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  border-bottom: 2px solid var(--pdx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

#tab-market .pdx-mini-ball,
#tab-packs .pdx-mini-ball,
#tab-draw .pdx-mini-ball,
#tab-profile .pdx-mini-ball,
#tab-admin .pdx-mini-ball,
#packCardsModal .pdx-mini-ball {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ef4444 0%, #ef4444 45%, #0f172a 45%, #0f172a 58%, #ffffff 58%, #ffffff 100%);
  border: 1.5px solid #0f172a;
  position: relative;
  flex-shrink: 0;
}

#tab-market .pdx-mini-ball::after,
#tab-packs .pdx-mini-ball::after,
#tab-draw .pdx-mini-ball::after,
#tab-profile .pdx-mini-ball::after,
#tab-admin .pdx-mini-ball::after,
#packCardsModal .pdx-mini-ball::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #0f172a;
}

#tab-market .card-poke-id,
#tab-packs .card-poke-id,
#tab-draw .card-poke-id,
#tab-profile .card-poke-id,
#tab-admin .card-poke-id,
#packCardsModal .card-poke-id {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(15, 23, 42, 0.45);
  margin: 0;
}

#tab-market .card-pokemon-img-box,
#tab-profile .card-pokemon-img-box,
#packCardsModal .card-pokemon-img-box {
  position: relative;
  border: 2px solid var(--pdx-border);
  border-radius: 8px;
  background: var(--pdx-surface);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tab-market .card-pokemon-img-box::before,
#tab-profile .card-pokemon-img-box::before,
#packCardsModal .card-pokemon-img-box::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 4px;
  background:
    radial-gradient(circle at 2px 2px, #ef4444 2px, transparent 2.5px),
    radial-gradient(circle at 12px 2px, #ef4444 2px, transparent 2.5px);
  z-index: 2;
  pointer-events: none;
}

#tab-packs .packs-modern-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

#tab-packs .pack-body-split {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

#tab-packs .pack-pokemon-img-box {
  width: 86px;
  min-width: 86px;
  margin-bottom: 0;
  padding: 2px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#tab-packs .pack-pokemon-img-box::before {
  display: none !important;
}

#tab-packs .pack-pokemon-img-box img {
  width: 74px;
  height: 132px;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28));
}

#tab-packs .pack-clean-card:hover .pack-pokemon-img-box img {
  transform: scale(1.1) rotate(2deg);
}

#tab-packs .pack-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  align-items: flex-start;
}

#tab-packs .pack-info-col .card-badges-row {
  justify-content: flex-start;
  margin-bottom: 2px;
}

#tab-market .card-poke-name,
#tab-packs .card-poke-name,
#tab-profile .card-poke-name,
#packCardsModal .card-poke-name {
  font-weight: 800;
  color: var(--pdx-ink);
}

#tab-packs .pack-clean-title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bevel button pills like "NORMAL" in Image 2 */
#tab-market .type-pill:not(.bwr-emblem),
#tab-packs .type-pill:not(.bwr-emblem),
#tab-profile .type-pill:not(.bwr-emblem),
#packCardsModal .type-pill:not(.bwr-emblem),
#cardDetailModal .type-pill:not(.bwr-emblem),
#liveHitDetailModal .type-pill:not(.bwr-emblem) {
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 4px;
  border: 1.5px solid #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    2px 2px 0 rgba(15, 23, 42, 0.25);
  padding: 4px 10px;
}

#tab-market .type-pill.bwr.bwr-emblem,
#tab-profile .type-pill.bwr.bwr-emblem,
#packCardsModal .type-pill.bwr.bwr-emblem {
  font-size: 0.54rem;
  padding: 5px 14px;
  border-color: transparent;
}

#cardDetailModal .type-pill.bwr.bwr-emblem.bwr-hero,
#liveHitDetailModal .type-pill.bwr.bwr-emblem.bwr-hero {
  border-color: transparent;
}

#tab-market .type-pill.has-sparkle-fx,
#tab-packs .type-pill.has-sparkle-fx,
#tab-profile .type-pill.has-sparkle-fx,
#packCardsModal .type-pill.has-sparkle-fx,
#cardDetailModal .type-pill.has-sparkle-fx,
#liveHitDetailModal .type-pill.has-sparkle-fx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.24),
    2px 2px 0 rgba(15, 23, 42, 0.25),
    0 0 8px var(--pill-aura, rgba(255, 255, 255, 0.35));
}

#tab-market .card-market-sub,
#tab-packs .card-market-sub,
#tab-profile .card-market-sub,
#packCardsModal .card-market-sub {
  border-top: 2px dotted var(--pdx-dot);
  padding-top: 8px;
}

/* Shop Pack Specific Rows */
#tab-packs .pack-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 6px 0;
  flex-wrap: nowrap !important;
  gap: 6px;
}

#tab-packs .pack-gold {
  font-size: 0.96rem;
  font-weight: 800;
  color: #f59e0b;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

#tab-packs .pack-gold del {
  color: var(--pdx-ink-muted);
  font-size: 0.76rem;
  margin-right: 4px;
}

#tab-packs .pack-gem {
  font-size: 0.88rem;
  font-weight: 800;
  color: #06b6d4;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

#tab-packs .pack-meter-section {
  width: 100%;
  margin-top: 6px;
}

#tab-packs .meter-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--pdx-ink-muted);
  margin-bottom: 3px;
}

#tab-packs .meter-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--pdx-surface);
  border: 1.5px solid var(--pdx-border);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

#tab-packs .meter-bar {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
  border-radius: 2px;
}

#tab-packs .pack-last-sold {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pdx-ink-muted);
  margin-top: 5px;
}

#tab-packs .pack-tap-view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1.5px solid var(--pdx-border);
  background: var(--pdx-surface);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--pdx-ink);
  box-shadow: 2px 2px 0 var(--pdx-shadow);
  transition: all 0.2s ease;
}

#tab-packs .pack-clean-card:hover .pack-tap-view {
  background: var(--pdx-red-bright);
  color: #ffffff;
  border-color: #0f172a;
  transform: translateY(-1px);
}

/* Flash Sale Banner in Shop (Chassis Style) */
#tab-packs .shop-banner,
#tab-admin .shop-banner {
  border-radius: 12px;
  border: 2px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

#tab-packs .flash-tag,
#tab-admin .flash-tag {
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 4px;
  border: 1.5px solid #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 2px 2px 0 rgba(15, 23, 42, 0.25);
  padding: 4px 10px;
  background: #ef4444;
  color: #fff;
  letter-spacing: 0.5px;
}

#tab-packs .flash-name,
#tab-admin .flash-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pdx-ink);
}

/* Pagination buttons */
#tab-market .clean-page-btn {
  border-radius: 8px;
  border: 2px solid var(--pdx-border);
  box-shadow: 3px 3px 0 var(--pdx-shadow);
}

/* ================= 5. CARD DETAIL, PACK CARDS & LIVE HIT MODALS (POKÉDEX SHELL) ================= */
#cardDetailModal .clean-modal-card,
#packCardsModal .clean-modal-card,
#liveHitDetailModal .clean-modal-card {
  max-width: min(980px, 95vw) !important;
  max-height: min(90vh, 880px) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 16px 16px !important;
  border-radius: 18px;
  border: 3px solid var(--pdx-border);
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 14%, #dc2626 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 28px 60px rgba(0, 0, 0, 0.45),
    6px 6px 0 var(--pdx-shadow);
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#packCardsModal .clean-modal-card {
  overflow: hidden !important;
}

#liveHitDetailModal .clean-modal-card {
  max-width: min(640px, 95vw) !important;
}

#packCardsModal .pokedex-modal-content {
  padding: 16px 20px 18px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#packCardsModal #packCardsGridContainer {
  grid-auto-rows: max-content;
  align-content: start;
  max-height: min(520px, calc(85vh - 220px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin-bottom: 0;
  padding: 6px 8px 10px 4px !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 12px !important;
}

#packCardsModal #packCardsGridContainer .pokemon-clean-card {
  min-height: max-content;
}

#cardDetailModal .detail-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

#cardDetailModal .detail-modal-art,
#cardDetailModal .detail-modal-info,
#cardDetailModal .pokedex-name-card,
#cardDetailModal .pokedex-stats-box,
#cardDetailModal .pokedex-desc-frame {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  #cardDetailModal .detail-modal-layout,
  #packCardsModal .detail-modal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  #cardDetailModal .pokedex-screen-bezel {
    max-width: 280px;
    margin: 0 auto;
  }
}

#cardDetailModal .detail-modal-art img {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

#cardDetailModal .detail-modal-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pokedex-modal-topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -18px;
  padding: 12px 22px 24px;
  background: transparent;
  border-bottom: none;
  color: #ffffff;
}

/* Stepped black double seam line under the Pokédex top header (Image 1) */
.pokedex-modal-topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 24' preserveAspectRatio='none'%3E%3Cpath d='M0,16 L345,16 L395,3 L1000,3' fill='none' stroke='%230f172a' stroke-width='3.2' stroke-linejoin='round'/%3E%3Cpath d='M0,21 L347,21 L397,8 L1000,8' fill='none' stroke='%230f172a' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.pokedex-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pokedex-camera-lens {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #e0f2fe 0%, #38bdf8 45%, #0284c7 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9), 0 0 0 2px #0f172a;
  flex-shrink: 0;
}

.pokedex-leds {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pokedex-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #0f172a;
}
.pokedex-led.red { background: #fca5a5; box-shadow: 0 0 6px #ef4444; }
.pokedex-led.yellow { background: #fde047; box-shadow: 0 0 6px #facc15; }
.pokedex-led.green { background: #86efac; box-shadow: 0 0 6px #22c55e; }

.pokedex-info-title {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 rgba(15, 23, 42, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
  min-width: 0 !important;
}

#cardDetailModal .modal-close-x,
#packCardsModal .modal-close-x,
#liveHitDetailModal .modal-close-x {
  position: static;
  margin: 0;
  width: 32px;
  height: 32px;
  border: 2px solid #0f172a;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.45);
  z-index: 5;
  flex-shrink: 0;
}

#cardDetailModal .modal-close-x:hover,
#packCardsModal .modal-close-x:hover,
#liveHitDetailModal .modal-close-x:hover {
  background: #ffffff;
  color: #e11d2e;
}

.pokedex-modal-content {
  flex: 1 1 auto;
  position: relative;
  padding: 20px 22px 22px;
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 2.5px solid var(--pdx-border);
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.06);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.pokedex-modal-content::-webkit-scrollbar {
  width: 6px;
}
.pokedex-modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.pokedex-modal-content::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.38);
  border-radius: 999px;
}
.pokedex-modal-content::-webkit-scrollbar-thumb:hover {
  background: #ef4444;
}

/* Bottom-left 45° diagonal chamfer cut on the inner white Pokédex screen (Image 1) */
.pokedex-modal-content::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 38px;
  height: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38'%3E%3Cpolygon points='0,0 0,38 38,38' fill='%23dc2626'/%3E%3Cline x1='1.75' y1='1.75' x2='36.25' y2='36.25' stroke='%231e293b' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 25;
}

body.dark-mode .pokedex-modal-content::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38'%3E%3Cpolygon points='0,0 0,38 38,38' fill='%23101014'/%3E%3Cline x1='1.75' y1='1.75' x2='36.25' y2='36.25' stroke='%232d2d34' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Left Artwork Screen Frame (Image 3 Screen Bezel) */
.pokedex-screen-bezel {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  border: 2.5px solid var(--pdx-border);
  border-radius: 14px;
  padding: 11px;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  width: 100%;
}

.pokedex-screen-inner {
  position: relative;
  background: var(--pdx-surface);
  border: 2px solid var(--pdx-border);
  border-radius: 8px 8px 8px 18px;
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pokedex-screen-inner::before {
  content: '';
  width: 24px;
  height: 5px;
  margin-bottom: 8px;
  background:
    radial-gradient(circle at 2.5px 2.5px, #ef4444 2.2px, #0f172a 2.5px, transparent 3px),
    radial-gradient(circle at 21.5px 2.5px, #ef4444 2.2px, #0f172a 2.5px, transparent 3px);
}

.pokedex-screen-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 4px;
}

.pokedex-screen-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #0f172a;
}

.pokedex-speaker-vents {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  width: 24px;
}

.pokedex-speaker-vents span {
  height: 2px;
  background: var(--pdx-border);
  border-radius: 1px;
}

/* Right Column Name Box (Image 2 Top-Right Red+White Card) */
.pokedex-name-card {
  border: 2px solid var(--pdx-border);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  background: var(--pdx-surface);
}

.pokedex-name-card-top {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  border-bottom: 2px solid var(--pdx-border);
  border-radius: 6px 6px 0 0;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.pokedex-name-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-shadow: 1px 1px 0 rgba(15, 23, 42, 0.45);
}

.pokedex-name-card-body {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pokedex-name-card-body h2 {
  font-size: 1.45rem !important;
  font-weight: 900;
  color: var(--pdx-ink) !important;
  margin: 0 !important;
}

/* Stats Box with Dotted Dividers (Image 2 HT/WT Panel) */
.pokedex-stats-box {
  background: var(--pdx-surface);
  border: 2px solid var(--pdx-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  padding: 6px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.pokedex-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap !important;
  padding: 8px 2px;
  border-bottom: 2px dotted var(--pdx-dot);
}

.pokedex-stat-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.pokedex-stat-row .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pdx-ink-muted);
  white-space: nowrap !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.pokedex-stat-row .val {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--pdx-ink);
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Red Double-Bordered Bottom Box for Chart & Owners (Image 2 Description Box) */
.pokedex-desc-frame {
  border: 2px solid var(--pdx-border);
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    #dc2626 0 11px,
    #f87171 11px 16px,
    var(--pdx-surface) 16px calc(100% - 16px),
    #f87171 calc(100% - 16px) calc(100% - 11px),
    #dc2626 calc(100% - 11px) 100%
  );
  box-shadow:
    inset 0 4px 0 #dc2626,
    inset 0 -4px 0 #dc2626,
    4px 4px 0 var(--pdx-shadow);
  padding: 14px 24px;
}

body.dark-mode .pokedex-desc-frame {
  background: linear-gradient(
    90deg,
    #141419 0 11px,
    #2e2e38 11px 15px,
    var(--pdx-surface) 15px calc(100% - 15px),
    #2e2e38 calc(100% - 15px) calc(100% - 11px),
    #141419 calc(100% - 11px) 100%
  );
  border-color: #2d2d36;
  box-shadow:
    inset 0 4px 0 #16161c,
    inset 0 -4px 0 #16161c,
    4px 4px 0 var(--pdx-shadow);
}

/* ================= 6. OBSIDIAN CARBON BEVELS — OPTION B (FULL STEALTH CARBON) ================= */
body.dark-mode #tab-market .trend-head {
  background: linear-gradient(180deg, #1b1b21 0%, #111116 68%, #0b0b0e 100%);
  border-bottom: 2px solid #2b2b34;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.85);
}

body.dark-mode #tab-market .pdx-card-strip,
body.dark-mode #tab-packs .pdx-card-strip,
body.dark-mode #tab-draw .pdx-card-strip,
body.dark-mode #tab-profile .pdx-card-strip,
body.dark-mode #tab-admin .pdx-card-strip,
body.dark-mode #packCardsModal .pdx-card-strip {
  background: linear-gradient(180deg, #1a1a20 0%, #0e0e12 100%);
  border-bottom: 2px solid #282830;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.85);
}

body.dark-mode #tab-market .pdx-mini-ball,
body.dark-mode #tab-packs .pdx-mini-ball,
body.dark-mode #tab-draw .pdx-mini-ball,
body.dark-mode #tab-profile .pdx-mini-ball,
body.dark-mode #tab-admin .pdx-mini-ball,
body.dark-mode #packCardsModal .pdx-mini-ball {
  border-color: #3f3f4a;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.45);
}

body.dark-mode #cardDetailModal .clean-modal-card,
body.dark-mode #packCardsModal .clean-modal-card,
body.dark-mode #liveHitDetailModal .clean-modal-card {
  background: linear-gradient(180deg, #1a1a20 0%, #101014 14%, #101014 100%);
  border-color: #2e2e37;
}

body.dark-mode .pokedex-modal-topbar {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

body.dark-mode .pokedex-modal-topbar::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 24' preserveAspectRatio='none'%3E%3Cpath d='M0,16 L345,16 L395,3 L1000,3' fill='none' stroke='%23383844' stroke-width='3.2' stroke-linejoin='round'/%3E%3Cpath d='M0,21 L347,21 L397,8 L1000,8' fill='none' stroke='%23272730' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.dark-mode .pokedex-name-card-top {
  background: linear-gradient(180deg, #1b1b21 0%, #0f0f13 100%);
  border-bottom: 2px solid #2a2a32;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark-mode .pokedex-screen-bezel {
  background: linear-gradient(180deg, #18181e 0%, #0d0d11 100%);
  border-color: #2e2e37;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.9),
    4px 4px 0 var(--pdx-shadow);
}

body.dark-mode .pokedex-screen-dot {
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

body.dark-mode #cardDetailModal .modal-close-x,
body.dark-mode #packCardsModal .modal-close-x,
body.dark-mode #liveHitDetailModal .modal-close-x {
  background: #17171c;
  color: #e4e4e7;
  border-color: #34343f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    2px 2px 0 rgba(0, 0, 0, 0.85);
}

body.dark-mode #cardDetailModal .modal-close-x:hover,
body.dark-mode #packCardsModal .modal-close-x:hover,
body.dark-mode #liveHitDetailModal .modal-close-x:hover {
  background: #e4e4e7;
  color: #09090b;
  border-color: #ffffff;
}

body.dark-mode #tab-market .filter-pill-select,
body.dark-mode #tab-market .range-selector,
body.dark-mode #tab-market .active-badge,
body.dark-mode #tab-packs .filter-pill-select,
body.dark-mode #tab-packs .range-selector,
body.dark-mode #tab-packs .active-badge,
body.dark-mode #tab-profile .filter-pill-select,
body.dark-mode #tab-profile .range-selector,
body.dark-mode #tab-profile .active-badge,
body.dark-mode #tab-admin .filter-pill-select,
body.dark-mode #tab-admin .active-badge,
body.dark-mode #packCardsModal .filter-pill-select,
body.dark-mode #packCardsModal .active-badge {
  background: linear-gradient(180deg, #151519 0%, #0a0a0d 100%);
  border-color: #2e2e36;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.85),
    3px 3px 0 var(--pdx-shadow);
}

body.dark-mode #tab-market .filter-pill-select:hover,
body.dark-mode #tab-market .filter-pill-select:focus-within,
body.dark-mode #tab-market .filter-pill-select.dropdown-active,
body.dark-mode #tab-packs .filter-pill-select:hover,
body.dark-mode #tab-packs .filter-pill-select:focus-within,
body.dark-mode #tab-packs .filter-pill-select.dropdown-active,
body.dark-mode #tab-profile .filter-pill-select:hover,
body.dark-mode #tab-profile .filter-pill-select:focus-within,
body.dark-mode #tab-profile .filter-pill-select.dropdown-active,
body.dark-mode #tab-admin .filter-pill-select:hover,
body.dark-mode #tab-admin .filter-pill-select:focus-within,
body.dark-mode #packCardsModal .filter-pill-select:hover,
body.dark-mode #packCardsModal .filter-pill-select:focus-within,
body.dark-mode #packCardsModal .filter-pill-select.dropdown-active {
  border-color: #d4d4d8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 14px rgba(255, 255, 255, 0.1),
    3px 3px 0 var(--pdx-shadow) !important;
}

body.dark-mode #tab-market .trend-column,
body.dark-mode #tab-market .pokemon-clean-card,
body.dark-mode #tab-packs .pack-clean-card,
body.dark-mode #tab-profile .pokemon-clean-card,
body.dark-mode #tab-admin .pack-clean-card,
body.dark-mode #tab-admin .admin-clean-card,
body.dark-mode #packCardsModal .pokemon-clean-card,
body.dark-mode #tab-packs .shop-banner,
body.dark-mode #tab-admin .shop-banner,
body.dark-mode #cardDetailModal .clean-modal-card,
body.dark-mode #packCardsModal .clean-modal-card,
body.dark-mode #liveHitDetailModal .clean-modal-card {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    4px 5px 0 var(--pdx-shadow),
    0 14px 30px rgba(0, 0, 0, 0.88);
}

body.dark-mode #tab-market .pokemon-clean-card:hover,
body.dark-mode #tab-packs .pack-clean-card:hover,
body.dark-mode #tab-profile .pokemon-clean-card:hover,
body.dark-mode #tab-admin .pack-clean-card:hover,
body.dark-mode #tab-admin .admin-clean-card:hover,
body.dark-mode #packCardsModal .pokemon-clean-card:hover {
  border-color: #d4d4d8;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    6px 8px 0 rgba(0, 0, 0, 0.96),
    0 0 22px rgba(255, 255, 255, 0.12);
}

body.dark-mode #tab-packs .pack-clean-card:hover .pack-tap-view {
  background: linear-gradient(180deg, #e4e4e7 0%, #a1a1aa 100%);
  color: #09090b;
  border-color: #ffffff;
}

body.dark-mode #tab-market .clean-page-btn:hover:not(:disabled) {
  border-color: #d4d4d8;
  background: #18181e;
}

body.dark-mode #tab-market .trend-item-row,
body.dark-mode #tab-packs .pack-tap-view,
body.dark-mode .pokedex-name-card,
body.dark-mode .pokedex-stats-box {
  background: linear-gradient(180deg, #131317 0%, #09090b 100%);
  border-color: #282830;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    2px 2px 0 var(--pdx-shadow);
}

body.dark-mode #tab-market .trend-item-row:hover {
  background: linear-gradient(180deg, #1b1b22 0%, #0f0f14 100%);
  border-color: #d4d4d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 12px rgba(255, 255, 255, 0.08),
    2px 2px 0 var(--pdx-shadow);
}

body.dark-mode #tab-market .card-pokemon-img-box,
body.dark-mode #tab-profile .card-pokemon-img-box,
body.dark-mode #packCardsModal .card-pokemon-img-box,
body.dark-mode .pokedex-screen-inner {
  background: #050507;
  border-color: #23232a;
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.07);
}

#cardDetailModal .detail-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--pdx-ink-muted);
}

#cardDetailModal .chart-box-clean {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  padding: 0;
  height: 155px;
}

#cardDetailModal .chart-box-clean canvas {
  width: 100% !important;
  max-width: 100% !important;
}

#cardDetailModal .owner-row-item {
  border-bottom: 1.5px dotted var(--pdx-dot);
  background: transparent;
  border-radius: 0;
  padding: 6px 4px;
}

#cardDetailModal .owner-row-item:last-child {
  border-bottom: none;
}

/* ================= 7. UNIFIED POKÉDEX THEME FOR ALL REMAINING TABS ================= */

/* --- 7A. TAB PROFILE (KHO BÀI NGƯỜI CHƠI) --- */
#tab-profile .user-lookup-bar {
  margin-bottom: 22px;
}

#tab-profile .profile-history-bar,
#tab-admin .profile-history-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 2px 4px;
}

#tab-profile .profile-history-label,
#tab-admin .profile-history-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pdx-ink-muted);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

#tab-profile .profile-history-chips,
#tab-admin .profile-history-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

#tab-profile .profile-history-chip,
#tab-admin .profile-history-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 210px;
  padding: 4px 8px 4px 5px;
  border-radius: 999px;
  border: 1.5px solid var(--pdx-border);
  background: var(--pdx-surface);
  color: var(--pdx-ink);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--pdx-shadow);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#tab-profile .profile-history-chip:hover,
#tab-admin .profile-history-chip:hover {
  transform: translate(-1px, -2px);
  border-color: var(--pdx-red-bright);
  box-shadow: 3px 3px 0 rgba(225, 29, 46, 0.35);
}

body.dark-mode #tab-profile .profile-history-chip,
body.dark-mode #tab-admin .profile-history-chip {
  background: linear-gradient(180deg, #16161b 0%, #0b0b0e 100%);
  border-color: #2e2e36;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    2px 2px 0 var(--pdx-shadow);
}

body.dark-mode #tab-profile .profile-history-chip:hover,
body.dark-mode #tab-admin .profile-history-chip:hover {
  border-color: #d4d4d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 10px rgba(255, 255, 255, 0.08),
    2px 2px 0 var(--pdx-shadow);
}

#tab-profile .profile-history-avatar,
#tab-admin .profile-history-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--pdx-border);
  flex-shrink: 0;
}

#tab-profile .profile-history-name,
#tab-admin .profile-history-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tab-profile .profile-history-remove,
#tab-admin .profile-history-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--pdx-ink-muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#tab-profile .profile-history-remove:hover,
#tab-admin .profile-history-remove:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
}

#tab-profile .profile-history-clear,
#tab-admin .profile-history-clear {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--pdx-border);
  background: var(--pdx-surface);
  color: var(--pdx-ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--pdx-shadow);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

#tab-profile .profile-history-clear:hover,
#tab-admin .profile-history-clear:hover {
  color: #ef4444;
  border-color: #ef4444;
}

body.dark-mode #tab-profile .profile-history-clear,
body.dark-mode #tab-admin .profile-history-clear {
  background: #141418;
  border-color: #2e2e36;
}

body.dark-mode #tab-profile .profile-history-clear:hover,
body.dark-mode #tab-admin .profile-history-clear:hover {
  color: #fca5a5;
  border-color: #d4d4d8;
}

#tab-profile .lookup-input-box,
#tab-admin .lookup-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

#tab-profile .lookup-icon,
#tab-admin .lookup-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pdx-ink-muted);
  flex-shrink: 0;
}

#tab-profile .lookup-btn,
#tab-admin .lookup-btn {
  position: relative;
  z-index: 1;
  border-radius: 6px;
  border: 2px solid #0f172a;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-weight: 800;
  padding: 8px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    2px 2px 0 rgba(15, 23, 42, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
}

#tab-profile .lookup-btn:hover,
#tab-admin .lookup-btn:hover {
  transform: translate(-1px, -1px);
  filter: brightness(1.06);
}

body.dark-mode #tab-profile .lookup-btn,
body.dark-mode #tab-admin .lookup-btn {
  background: linear-gradient(180deg, #272730 0%, #141419 100%);
  border-color: #3f3f4a;
  color: #f4f4f6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    2px 2px 0 rgba(0, 0, 0, 0.88);
}

body.dark-mode #tab-profile .lookup-btn:hover,
body.dark-mode #tab-admin .lookup-btn:hover {
  border-color: #d4d4d8;
  background: linear-gradient(180deg, #343440 0%, #1b1b22 100%);
}

#tab-profile .profile-empty-hint,
#tab-profile .profile-stats-card {
  position: relative;
  border-radius: 14px;
  border: 2px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  overflow: hidden;
  padding-top: 54px;
}

#tab-profile .profile-empty-hint::before,
#tab-profile .profile-stats-card::before {
  content: '▼ PLAYER POKÉDEX RECORD';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  padding: 0 16px 0 42px;
  display: flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(15, 23, 42, 0.45);
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 70%, #b91c1c 100%);
  border-bottom: 2px solid var(--pdx-border);
}

#tab-profile .profile-empty-hint::after,
#tab-profile .profile-stats-card::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #bae6fd 0%, #38bdf8 45%, #0284c7 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.85), 0 0 0 1px #0f172a;
}

body.dark-mode #tab-profile .profile-empty-hint::before,
body.dark-mode #tab-profile .profile-stats-card::before {
  background: linear-gradient(180deg, #1b1b21 0%, #111116 68%, #0b0b0e 100%);
  border-bottom-color: #2b2b34;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.85);
}

#tab-profile .profile-avatar-wrap {
  border: 2px solid var(--pdx-border);
  border-radius: 10px;
  background: var(--pdx-surface);
  box-shadow: 2px 2px 0 var(--pdx-shadow);
  overflow: hidden;
  padding: 0;
}

#tab-profile .profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  display: block;
}

#tab-profile .m-stat-pill {
  background: var(--pdx-surface);
  border: 1.5px solid var(--pdx-border);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--pdx-shadow);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#tab-profile .m-stat-pill .val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

body.dark-mode #tab-profile .m-stat-pill {
  background: linear-gradient(180deg, #131317 0%, #09090b 100%);
  border-color: #282830;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    2px 2px 0 var(--pdx-shadow);
}

/* --- 7B. TAB LIVE FEED (TRỰC TIẾP MỞ GÓI) & LIVE HIT MODAL --- */
#tab-live .live-feed-header-banner {
  position: relative;
  border-radius: 14px;
  border: 2px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  padding: 54px 24px 20px;
  overflow: hidden;
  backdrop-filter: none;
}

#tab-live .live-feed-header-banner::before {
  content: '▼ LIVE SERVER PACK OPENINGS';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  padding: 0 16px 0 42px;
  display: flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(15, 23, 42, 0.45);
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 70%, #b91c1c 100%);
  border-bottom: 2px solid var(--pdx-border);
}

#tab-live .live-feed-header-banner::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #bae6fd 0%, #38bdf8 45%, #0284c7 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.85), 0 0 0 1px #0f172a;
}

body.dark-mode #tab-live .live-feed-header-banner::before {
  background: linear-gradient(180deg, #1b1b21 0%, #111116 68%, #0b0b0e 100%);
  border-bottom-color: #2b2b34;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.85);
}

#tab-live .live-stream-status {
  border-radius: 6px;
  border: 1.5px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 2px 2px 0 var(--pdx-shadow);
}

#tab-live .live-feed-stats-pill {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 14px;
  max-width: 100%;
}

#tab-live .live-stat-box {
  border-radius: 10px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 3px 3px 0 var(--pdx-shadow);
  min-width: 0 !important;
  max-width: 100%;
  overflow: hidden;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#tab-live .live-stat-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.92rem, 1.35vw, 1.25rem);
  line-height: 1.25;
  white-space: nowrap;
}

#tab-live .live-stat-val .anime-emoji {
  flex-shrink: 0;
  margin-left: 0;
}

body.dark-mode #tab-live .live-stat-box {
  background: linear-gradient(180deg, #151519 0%, #0a0a0d 100%);
  border-color: #2e2e36;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    3px 3px 0 var(--pdx-shadow);
}

#tab-live .live-hit-row,
#tab-live .live-feed-empty {
  border-radius: 12px;
  border: 2px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
}

#tab-live .live-hit-row:hover {
  transform: translate(-2px, -3px);
  border-color: var(--pdx-red-bright);
  background-color: var(--pdx-grid-bg);
  box-shadow: 5px 6px 0 rgba(225, 29, 46, 0.35);
}

body.dark-mode #tab-live .live-hit-row:hover {
  border-color: #d4d4d8;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    5px 6px 0 rgba(0, 0, 0, 0.96),
    0 0 18px rgba(255, 255, 255, 0.1);
}

#tab-live .live-card-thumb-wrap {
  border-radius: 8px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 2px 2px 0 var(--pdx-shadow);
}

body.dark-mode #tab-live .live-card-thumb-wrap {
  background: #050507;
  border-color: #23232a;
}

#tab-live .live-card-id,
#tab-live .pack-badge-pill,
#tab-live .live-click-hint {
  border-radius: 6px;
  border: 1.5px solid var(--pdx-border);
  background: var(--pdx-surface);
  color: var(--pdx-ink);
  box-shadow: 2px 2px 0 var(--pdx-shadow);
}

body.dark-mode #tab-live .live-card-id,
body.dark-mode #tab-live .pack-badge-pill,
body.dark-mode #tab-live .live-click-hint {
  background: linear-gradient(180deg, #151519 0%, #0a0a0d 100%);
  border-color: #2e2e36;
  color: #f4f4f6;
}

#tab-live .live-hit-pricing {
  background: var(--pdx-surface);
  border: 1.5px solid var(--pdx-border);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 2px 2px 0 var(--pdx-shadow);
}

body.dark-mode #tab-live .live-hit-pricing {
  background: linear-gradient(180deg, #131317 0%, #09090b 100%);
  border-color: #282830;
}

#liveHitDetailModal .live-modal-card-art {
  border: 2px solid var(--pdx-border);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--pdx-shadow);
}

#liveHitDetailModal .live-modal-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

#liveHitDetailModal .live-modal-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

#liveHitDetailModal .live-modal-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

#liveHitDetailModal .live-modal-user-name {
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#liveHitDetailModal .live-modal-user-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
  text-align: left;
}

#liveHitDetailModal .live-modal-pack-span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#liveHitDetailModal .live-modal-stats-card {
  background: var(--pdx-surface);
  border: 2px solid var(--pdx-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  padding: 14px 16px;
}

body.dark-mode #liveHitDetailModal .live-modal-stats-card {
  background: linear-gradient(180deg, #131317 0%, #09090b 100%);
  border-color: #282830;
}

#liveHitDetailModal .live-modal-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap !important;
  padding-bottom: 8px;
  border-bottom: 2px dotted var(--pdx-dot);
}

#liveHitDetailModal .live-modal-stat-label {
  white-space: nowrap !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#liveHitDetailModal .price-val-card,
#liveHitDetailModal .price-val-total,
#liveHitDetailModal .live-modal-stat-highlight {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
}

#liveHitDetailModal .live-modal-stat-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

#liveHitDetailModal .live-modal-stat-label {
  white-space: nowrap;
  flex-shrink: 0;
}

#liveHitDetailModal .live-modal-stat-highlight,
#liveHitDetailModal .price-val-card,
#liveHitDetailModal .price-val-total {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

#liveHitDetailModal .price-val-card .anime-emoji,
#liveHitDetailModal .price-val-total .anime-emoji {
  margin-left: 0;
  flex-shrink: 0;
}

#liveHitDetailModal .live-modal-btn {
  border-radius: 8px;
  border: 2px solid var(--pdx-border);
  box-shadow: 3px 3px 0 var(--pdx-shadow);
  font-weight: 800;
  white-space: nowrap !important;
}

/* --- 7C. TAB LEADERBOARD (BẢNG XẾP HẠNG — GIỐNG TOP 5 THỊ TRƯỜNG) --- */
#tab-leaderboard .clean-white-panel {
  position: relative;
  border-radius: 14px;
  border: 2px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
}

#tab-leaderboard .panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 70%, #b91c1c 100%);
  border-bottom: 2px solid var(--pdx-border);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  text-shadow: 1px 1px 0 rgba(15, 23, 42, 0.45);
}

#tab-leaderboard .panel-heading::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #bae6fd 0%, #38bdf8 45%, #0284c7 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.85), 0 0 0 1px #0f172a;
  flex-shrink: 0;
}

#tab-leaderboard .panel-heading span {
  flex: 1;
}

#tab-leaderboard .panel-heading::after {
  content: '';
  width: 28px;
  height: 8px;
  background:
    radial-gradient(circle at 4px 4px, #ef4444 3px, #0f172a 3.5px, transparent 4px),
    radial-gradient(circle at 14px 4px, #facc15 3px, #0f172a 3.5px, transparent 4px),
    radial-gradient(circle at 24px 4px, #22c55e 3px, #0f172a 3.5px, transparent 4px);
  flex-shrink: 0;
}

body.dark-mode #tab-leaderboard .panel-heading {
  background: linear-gradient(180deg, #1b1b21 0%, #111116 68%, #0b0b0e 100%);
  border-bottom-color: #2b2b34;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.85);
}

#tab-leaderboard .lb-list {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#tab-leaderboard .clean-lb-row {
  background: var(--pdx-surface);
  border: 1.5px solid var(--pdx-border);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--pdx-shadow);
  padding: 10px 14px;
  margin: 0;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#tab-leaderboard .clean-lb-row:hover {
  transform: translate(2px, -1px);
  border-color: var(--pdx-red-bright);
}

body.dark-mode #tab-leaderboard .clean-lb-row {
  background: linear-gradient(180deg, #131317 0%, #09090b 100%);
  border-color: #282830;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    2px 2px 0 var(--pdx-shadow);
}

body.dark-mode #tab-leaderboard .clean-lb-row:hover {
  background: linear-gradient(180deg, #1b1b22 0%, #0f0f14 100%);
  border-color: #d4d4d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 12px rgba(255, 255, 255, 0.08),
    2px 2px 0 var(--pdx-shadow);
}

/* --- 7D. TAB SETTINGS (CÀI ĐẶT) & TAB DONATE (QUYÊN GÓP) --- */
#tab-settings .settings-card,
#tab-donate .donate-card {
  position: relative;
  border-radius: 14px;
  border: 2px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 0 0 22px 0;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
}

#tab-settings .settings-card-header,
#tab-donate .donate-card-header {
  margin: 0 0 20px 0;
  padding: 14px 22px;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 70%, #b91c1c 100%);
  border-bottom: 2px solid var(--pdx-border);
  color: #ffffff;
}

body.dark-mode #tab-settings .settings-card-header,
body.dark-mode #tab-donate .donate-card-header {
  background: linear-gradient(180deg, #1b1b21 0%, #111116 68%, #0b0b0e 100%);
  border-bottom-color: #2b2b34;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.85);
}

#tab-settings .settings-card-header .panel-heading {
  color: #ffffff !important;
  text-shadow: 1px 1px 0 rgba(15, 23, 42, 0.45);
}

#tab-settings .settings-sub {
  color: rgba(255, 255, 255, 0.88) !important;
}

#tab-donate .clean-white-panel {
  background: var(--pdx-surface) !important;
  border: 2.5px solid var(--pdx-border) !important;
  box-shadow: 5px 5px 0 var(--pdx-shadow) !important;
}

#tab-donate .donate-title {
  color: var(--pdx-ink) !important;
  -webkit-text-fill-color: var(--pdx-ink) !important;
  text-shadow: none !important;
}

#tab-donate .donate-subtitle {
  color: var(--pdx-ink-muted) !important;
  -webkit-text-fill-color: var(--pdx-ink-muted) !important;
}

#tab-settings .status-badge-online {
  border-radius: 6px;
  border: 1.5px solid #0f172a;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.35);
}

body.dark-mode #tab-settings .status-badge-online {
  background: #141419;
  color: #e4e4e7;
  border-color: #3f3f4a;
}

#tab-settings .setting-group-box {
  margin: 0 22px 18px;
  border-radius: 10px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 3px 3px 0 var(--pdx-shadow);
}

#tab-settings .lang-option-card,
#tab-settings .theme-choice-card {
  border-radius: 8px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface-soft);
  box-shadow: 2px 2px 0 var(--pdx-shadow);
}

body.dark-mode #tab-settings .setting-group-box {
  background: linear-gradient(180deg, #131317 0%, #09090b 100%);
  border-color: #282830;
}

body.dark-mode #tab-settings .lang-option-card,
body.dark-mode #tab-settings .theme-choice-card {
  background: #0a0a0d;
  border-color: #26262e;
}

body.dark-mode #tab-settings .lang-option-card.active,
body.dark-mode #tab-settings .theme-choice-card.active {
  border-color: #e4e4e7;
  background: rgba(255, 255, 255, 0.08);
}

#tab-settings .badge-fx-preview-box {
  border: 1.5px dashed var(--pdx-dot);
  border-radius: 8px;
  background: var(--pdx-surface-soft);
}

body.dark-mode #tab-settings .badge-fx-preview-box {
  background: #070709;
  border-color: #2e2e36;
}

#tab-settings .type-pill:not(.bwr-emblem) {
  border-radius: 4px;
  border: 1.5px solid #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    2px 2px 0 rgba(15, 23, 42, 0.25);
  padding: 4px 10px;
}

#tab-donate .donate-body-content {
  padding: 0 22px;
}

#tab-donate .donate-hero-banner,
#tab-donate .donate-feature-box,
#tab-donate .donate-cta-card {
  border-radius: 10px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 3px 3px 0 var(--pdx-shadow);
}

body.dark-mode #tab-donate .donate-hero-banner,
body.dark-mode #tab-donate .donate-feature-box,
body.dark-mode #tab-donate .donate-cta-card {
  background: linear-gradient(180deg, #131317 0%, #09090b 100%);
  border-color: #282830;
}

/* --- 7E. TAB LUCKY DRAW (#tab-draw — MY HERO BANNER RAIL + POKÉDEX 5x2 / 2x5 GRID) --- */
#tab-draw .draw-mha-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#tab-draw .draw-banner-rail {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#tab-draw .draw-banner-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 14px 16px 20px;
  border-radius: 14px;
  border: 2.5px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--pdx-ink);
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#tab-draw .draw-banner-btn:hover {
  transform: translate(2px, -2px);
  border-color: var(--pdx-red-bright);
  box-shadow: 5px 6px 0 rgba(225, 29, 46, 0.35);
}

#tab-draw .draw-banner-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #dc2626;
  border-right: 1.5px solid var(--pdx-border);
}

#tab-draw .draw-banner-normal .draw-banner-accent {
  background: #0284c7;
}

#tab-draw .draw-banner-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

#tab-draw .draw-banner-title {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

#tab-draw .draw-banner-chevron {
  font-size: 1.25rem;
  font-weight: 900;
  opacity: 0.35;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#tab-draw .draw-banner-btn.active {
  transform: translateX(4px);
  color: #ffffff;
}

#tab-draw .draw-banner-super.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
  border-color: #0f172a;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    5px 5px 0 rgba(15, 23, 42, 0.38);
}

#tab-draw .draw-banner-normal.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%);
  border-color: #0f172a;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    5px 5px 0 rgba(15, 23, 42, 0.38);
}

#tab-draw .draw-banner-btn.active .draw-banner-sub {
  color: rgba(255, 255, 255, 0.88);
}

#tab-draw .draw-banner-btn.active .draw-banner-chevron {
  opacity: 1;
  transform: translateX(3px);
}

#tab-draw .draw-banner-super.active .draw-banner-accent {
  background: #facc15;
}

#tab-draw .draw-banner-normal.active .draw-banner-accent {
  background: #7dd3fc;
}

body.dark-mode #tab-draw .draw-banner-btn {
  background: linear-gradient(180deg, #15151a 0%, #0a0a0d 100%);
  border-color: #2c2c35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    4px 4px 0 var(--pdx-shadow);
}

body.dark-mode #tab-draw .draw-banner-btn:hover {
  border-color: #d4d4d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 16px rgba(255, 255, 255, 0.08),
    4px 5px 0 var(--pdx-shadow);
}

body.dark-mode #tab-draw .draw-banner-super.active {
  background: linear-gradient(145deg, #272730 0%, #16161b 55%, #0b0b0e 100%);
  border-color: #f4f4f6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 22px rgba(250, 204, 21, 0.18),
    5px 5px 0 rgba(0, 0, 0, 0.95);
}

body.dark-mode #tab-draw .draw-banner-normal.active {
  background: linear-gradient(145deg, #24242d 0%, #141419 55%, #0a0a0d 100%);
  border-color: #d4d4d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 20px rgba(56, 189, 248, 0.16),
    5px 5px 0 rgba(0, 0, 0, 0.95);
}

/* Main Pokédex Draw Chassis */
#tab-draw .draw-pokedex-chassis {
  padding: 0 18px 18px;
  border-radius: 18px;
  border: 3px solid var(--pdx-border);
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 14%, #dc2626 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 18px 42px rgba(15, 23, 42, 0.16),
    6px 6px 0 var(--pdx-shadow);
  overflow: hidden;
}

body.dark-mode #tab-draw .draw-pokedex-chassis {
  background: linear-gradient(180deg, #1a1a20 0%, #101014 14%, #101014 100%);
  border-color: #2e2e37;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 50px rgba(0, 0, 0, 0.9),
    6px 6px 0 var(--pdx-shadow);
}

#tab-draw .draw-pokedex-screen {
  position: relative;
  padding: 20px 22px 24px;
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 2.5px solid var(--pdx-border);
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.06);
  overflow: visible !important;
  overscroll-behavior: auto !important;
  touch-action: pan-y !important;
}

#tab-draw .draw-pokedex-screen::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 38px;
  height: 38px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38'%3E%3Cpolygon points='0,0 0,38 38,38' fill='%23dc2626'/%3E%3Cline x1='1.75' y1='1.75' x2='36.25' y2='36.25' stroke='%230f172a' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}

body.dark-mode #tab-draw .draw-pokedex-screen::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38'%3E%3Cpolygon points='0,0 0,38 38,38' fill='%23101014'/%3E%3Cline x1='1.75' y1='1.75' x2='36.25' y2='36.25' stroke='%232d2d34' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

#tab-draw,
#tab-draw .draw-mha-layout {
  touch-action: pan-y !important;
}
#tab-draw .draw-pokedex-chassis {
  overflow: hidden;
  touch-action: pan-y !important;
}

/* Top-Center Countdown & Prize Box */
#tab-draw .draw-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

#tab-draw .draw-countdown-box,
#tab-draw .draw-prize-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
  padding: 10px 26px;
  border-radius: 12px;
  border: 2.5px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 4px 4px 0 var(--pdx-shadow);
}

#tab-draw .draw-prize-box {
  padding: 8px 22px;
  gap: 10px;
}

body.dark-mode #tab-draw .draw-countdown-box,
body.dark-mode #tab-draw .draw-prize-box {
  background: linear-gradient(180deg, #16161b 0%, #0b0b0e 100%);
  border-color: #34343e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    4px 4px 0 var(--pdx-shadow);
}

#tab-draw .draw-countdown-lbl,
#tab-draw .draw-prize-lbl {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--pdx-ink);
  letter-spacing: 0.02em;
}

#tab-draw .draw-prize-lbl {
  font-size: 0.86rem;
  color: var(--pdx-ink-muted);
}

#tab-draw .draw-prize-val {
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--pdx-ink);
}

#tab-draw .draw-countdown-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid #0f172a;
  background: #dc2626;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 2px 2px 0 rgba(15, 23, 42, 0.25);
}

body.dark-mode #tab-draw .draw-countdown-time {
  background: #060608;
  border-color: #464654;
  color: #f4f4f6;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.08);
}

/* Winners Grid: Desktop 5 cols x 2 rows */
#tab-draw .draw-winners-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

#tab-draw .draw-winner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

#tab-draw .draw-winner-card:hover {
  transform: translate(-2px, -4px);
  border-color: var(--pdx-red-bright);
  box-shadow: 6px 8px 0 rgba(225, 29, 46, 0.35);
}

body.dark-mode #tab-draw .draw-winner-card {
  background: linear-gradient(180deg, #131317 0%, #09090b 100%);
  border-color: #282830;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    4px 5px 0 var(--pdx-shadow);
}

body.dark-mode #tab-draw .draw-winner-card:hover {
  border-color: #d4d4d8;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    6px 8px 0 rgba(0, 0, 0, 0.96),
    0 0 18px rgba(255, 255, 255, 0.1);
}

#tab-draw .draw-winner-card.is-self {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28), 4px 5px 0 var(--pdx-shadow);
}

#tab-draw .draw-winner-avatar-box {
  width: 78px;
  height: 78px;
  margin: 4px 0 10px;
  padding: 3px;
  border-radius: 50%;
  border: 2.5px solid var(--pdx-border);
  background: var(--pdx-surface-soft);
  box-shadow: 2px 3px 0 var(--pdx-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

body.dark-mode #tab-draw .draw-winner-avatar-box {
  background: #050507;
  border-color: #3a3a46;
}

#tab-draw .draw-winner-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

#tab-draw .draw-winner-name {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--pdx-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

#tab-draw .draw-winner-sub {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pdx-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

@media (max-width: 1080px) {
  #tab-draw .draw-mha-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  #tab-draw .draw-banner-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #tab-draw .draw-banner-btn.active {
    transform: translateY(-2px);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #tab-market .search-bar,
  #tab-packs .search-bar,
  #tab-profile .search-bar,
  #tab-profile .lookup-input-box,
  #tab-admin .lookup-input-box,
  #packCardsModal .search-bar {
    padding: 5px 10px 5px 14px;
  }
  #tab-profile .lookup-btn,
  #tab-admin .lookup-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  #tab-market .search-bar::before,
  #tab-packs .search-bar::before,
  #tab-profile .search-bar::before,
  #tab-profile .lookup-input-box::before,
  #tab-admin .lookup-input-box::before,
  #packCardsModal .search-bar::before {
    inset: -6px;
    border-width: 12px;
  }
  #tab-market .search-bar .search-btn-icon,
  #tab-packs .search-bar .search-btn-icon,
  #packCardsModal .search-bar .search-btn-icon {
    width: 34px;
    height: 34px;
  }
  #tab-market .filter-row,
  #tab-packs .filter-row,
  #tab-profile .filter-row,
  #packCardsModal .filter-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }
  #tab-market .filter-pill-select,
  #tab-packs .filter-pill-select,
  #tab-profile .filter-pill-select,
  #packCardsModal .filter-pill-select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px 14px !important;
  }
  #tab-market .filter-pill-select .custom-dropdown,
  #tab-packs .filter-pill-select .custom-dropdown,
  #tab-profile .filter-pill-select .custom-dropdown,
  #packCardsModal .filter-pill-select .custom-dropdown {
    position: static;
  }
  #tab-market .custom-dropdown-menu,
  #tab-packs .custom-dropdown-menu,
  #tab-profile .custom-dropdown-menu,
  #packCardsModal .custom-dropdown-menu {
    left: -2px !important;
    right: -2px !important;
    width: calc(100% + 4px) !important;
    min-width: calc(100% + 4px) !important;
    max-width: calc(100% + 4px) !important;
  }
  #tab-market .range-selector,
  #tab-profile .range-selector {
    width: 100% !important;
    justify-content: center;
    padding: 7px 14px;
  }
  #tab-market .active-badge,
  #tab-packs .active-badge,
  #tab-profile .active-badge,
  #packCardsModal .active-badge {
    width: 100% !important;
    margin: 0 !important;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
  }
  #tab-market .pokemon-clean-card,
  #tab-packs .pack-clean-card,
  #tab-draw .draw-winner-card,
  #packCardsModal .pokemon-clean-card {
    padding: 0 8px 10px;
  }
  #tab-market .type-pill:not(.bwr-emblem),
  #tab-profile .type-pill:not(.bwr-emblem),
  #packCardsModal .type-pill:not(.bwr-emblem) {
    font-size: 0.56rem;
    padding: 3px 7px;
    max-width: 100%;
  }
  #tab-market .type-pill.bwr.bwr-emblem,
  #tab-profile .type-pill.bwr.bwr-emblem,
  #packCardsModal .type-pill.bwr.bwr-emblem {
    font-size: 0.42rem;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    margin: 3px 12px;
    max-width: calc(100% - 24px);
  }
  .bwr-wing-dock {
    width: 28px;
    height: 22px;
  }
  .bwr-wing-dock.left {
    left: -18px;
  }
  .bwr-wing-dock.right {
    right: -18px;
  }
  .bwr-emblem.bwr-hero {
    padding: 8px 18px;
    min-width: 150px;
    margin: 10px 34px;
  }
  .bwr-emblem.bwr-hero .bwr-word-top {
    font-size: 0.68rem;
  }
  .bwr-emblem.bwr-hero .bwr-word-top .bwr-cap {
    font-size: 0.84rem;
  }
  .bwr-emblem.bwr-hero .bwr-wing-dock {
    width: 50px;
    height: 40px;
  }
  .bwr-emblem.bwr-hero .bwr-wing-dock.left {
    left: -34px;
  }
  .bwr-emblem.bwr-hero .bwr-wing-dock.right {
    right: -34px;
  }
  .pill-star.s1 { width: 15px; height: 15px; top: -6px; right: -6px; }
  .pill-star.s2 { width: 13px; height: 13px; bottom: -5px; left: -5px; }
  .pill-star.s3 { width: 11px; height: 11px; top: -5px; left: 16%; }
  .pill-star.s4 { width: 12px; height: 12px; bottom: -5px; right: 16%; }
  #tab-market .pdx-card-strip,
  #tab-packs .pdx-card-strip,
  #tab-draw .pdx-card-strip,
  #packCardsModal .pdx-card-strip {
    width: calc(100% + 16px);
    margin: 0 -8px 8px;
    padding: 4px 8px;
  }
  /* Lucky Draw Mobile (#tab-draw) */
  #tab-draw {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
    touch-action: pan-y !important;
  }
  #tab-draw .draw-mha-layout {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: hidden !important;
  }
  #tab-draw .draw-banner-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px 0;
  }
  #tab-draw .draw-banner-btn {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 12px;
    border: 2px solid var(--pdx-border);
    background-color: var(--pdx-surface) !important;
    background-image: none !important;
    color: var(--pdx-ink);
    box-shadow: 2px 2px 0 var(--pdx-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  #tab-draw .draw-banner-btn .draw-banner-accent {
    display: none !important;
  }
  #tab-draw .draw-banner-btn.active {
    transform: none !important;
    color: #ffffff !important;
  }
  #tab-draw .draw-banner-super.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%) !important;
    border-color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4), 2px 2px 0 var(--pdx-shadow) !important;
  }
  #tab-draw .draw-banner-normal.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%) !important;
    border-color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4), 2px 2px 0 var(--pdx-shadow) !important;
  }
  #tab-draw .draw-banner-title {
    font-size: clamp(0.82rem, 3.4vw, 0.95rem);
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #tab-draw .draw-banner-chevron {
    display: none !important;
  }
  #tab-draw .draw-pokedex-chassis {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 8px 10px;
    border-radius: 14px;
    border-width: 2.5px;
    box-shadow: 2px 3px 0 var(--pdx-shadow);
    overflow: hidden !important;
    touch-action: pan-y !important;
  }
  .pokedex-topbar-left {
    gap: 7px;
    flex: 1;
    min-width: 0;
  }
  .pokedex-camera-lens {
    width: 22px;
    height: 22px;
    border-width: 2px;
  }
  .pokedex-leds {
    gap: 4px;
    flex-shrink: 0;
  }
  .pokedex-led {
    width: 8px;
    height: 8px;
  }
  .pokedex-info-title {
    font-size: clamp(0.66rem, 2.9vw, 0.82rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-width: 0;
  }
  #tab-draw .draw-pokedex-chassis .pokedex-modal-topbar {
    margin: 0 -8px 8px;
    padding: 8px 10px 18px;
    width: calc(100% + 16px);
    max-width: calc(100% + 16px);
    box-sizing: border-box;
    overflow: hidden;
  }
  #tab-draw .draw-pokedex-chassis .pokedex-topbar-left,
  .pokedex-modal-topbar .pokedex-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  #tab-draw .draw-pokedex-chassis .pokedex-camera-lens {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-width: 2px;
  }
  #tab-draw .draw-pokedex-chassis .pokedex-leds {
    gap: 4px;
    flex-shrink: 0;
  }
  #tab-draw .draw-pokedex-chassis .pokedex-led {
    width: 7px;
    height: 7px;
  }
  #tab-draw .draw-pokedex-chassis .pokedex-info-title,
  .pokedex-modal-topbar .pokedex-info-title {
    display: block !important;
    min-width: 0 !important;
    flex: 1 !important;
    font-size: clamp(0.7rem, 2.8vw, 0.85rem) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #tab-draw .draw-pokedex-screen {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 8px 14px;
    overflow: hidden !important;
    overscroll-behavior: auto !important;
    touch-action: pan-y !important;
    border-width: 2px;
  }
  #tab-draw .draw-countdown-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 6px;
    margin-bottom: 12px;
  }
  #tab-draw .draw-countdown-box,
  #tab-draw .draw-prize-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    border-width: 2px;
  }
  #tab-draw .draw-countdown-lbl,
  #tab-draw .draw-prize-lbl {
    font-size: 0.78rem;
    white-space: nowrap;
  }
  #tab-draw .draw-countdown-time {
    font-size: clamp(0.92rem, 3.8vw, 1.12rem);
    padding: 3px 8px;
    letter-spacing: 0.04em;
  }
  #tab-draw .draw-prize-val {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }
  #tab-draw .draw-winners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #tab-draw .draw-winner-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 0 6px 10px;
    border-radius: 10px;
    box-shadow: 2px 2px 0 var(--pdx-shadow);
    overflow: hidden;
  }
  #tab-draw .draw-winner-card .pdx-card-strip {
    width: calc(100% + 12px);
    margin: 0 -6px 6px;
    padding: 3px 6px;
  }
  #tab-draw .draw-winner-avatar-box {
    width: 52px;
    height: 52px;
    margin: 4px 0 6px;
    border-width: 2px;
  }
  #tab-draw .draw-winner-name {
    font-size: 0.82rem;
  }
  #tab-draw .draw-winner-sub {
    font-size: 0.68rem;
  }

  @media (max-width: 380px) {
    #tab-draw .draw-banner-btn {
      padding: 8px 6px;
      gap: 6px;
    }
    #tab-draw .draw-banner-title {
      font-size: 0.78rem;
    }
    #tab-draw .draw-winner-avatar-box {
      width: 44px;
      height: 44px;
    }
    #tab-draw .draw-pokedex-chassis .pokedex-camera-lens {
      width: 18px;
      height: 18px;
    }
  }
  .pokedex-modal-content {
    padding: 14px 12px 16px;
  }
  #cardDetailModal .clean-modal-card,
  #packCardsModal .clean-modal-card,
  #liveHitDetailModal .clean-modal-card {
    padding: 0 10px 12px !important;
    max-height: 94vh !important;
    border-radius: 14px;
  }
  #cardDetailModal .pokedex-modal-topbar,
  #packCardsModal .pokedex-modal-topbar,
  #liveHitDetailModal .pokedex-modal-topbar {
    margin: 0 -10px;
    padding: 10px 12px 20px;
  }
  #cardDetailModal .modal-close-x,
  #packCardsModal .modal-close-x,
  #liveHitDetailModal .modal-close-x {
    width: 28px;
    height: 28px;
  }
  #liveHitDetailModal .live-modal-content {
    gap: 12px;
  }
  #liveHitDetailModal .live-modal-header {
    gap: 12px;
  }
  #liveHitDetailModal .live-modal-card-art {
    width: 118px;
    height: 164px;
  }
  #liveHitDetailModal .live-modal-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #liveHitDetailModal .live-modal-badges-row {
    justify-content: center;
    margin-bottom: 4px;
  }
  #liveHitDetailModal .live-modal-title {
    font-size: 1.18rem;
    text-align: center;
    margin-bottom: 2px;
  }
  #liveHitDetailModal .live-modal-user-row {
    justify-content: center;
    margin-top: 6px;
    max-width: 100%;
  }
  #liveHitDetailModal .live-modal-stats-card {
    padding: 12px 12px;
    gap: 9px;
  }
  #liveHitDetailModal .live-modal-stat-label {
    font-size: clamp(0.73rem, 3.05vw, 0.83rem);
  }
  #liveHitDetailModal .live-modal-stat-highlight,
  #liveHitDetailModal .price-val-card,
  #liveHitDetailModal .price-val-total {
    font-size: clamp(0.8rem, 3.2vw, 0.96rem);
    gap: 4px;
  }
  #liveHitDetailModal .live-modal-actions {
    gap: 8px;
  }
  #liveHitDetailModal .live-modal-btn {
    padding: 10px 6px;
    font-size: clamp(0.71rem, 2.85vw, 0.84rem);
    gap: 5px;
    white-space: nowrap;
  }
  #liveHitDetailModal .live-modal-btn img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
  #cardDetailModal .detail-modal-layout,
  #packCardsModal .detail-modal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    justify-items: center;
  }
  #cardDetailModal .detail-modal-art,
  #packCardsModal .detail-modal-art {
    max-width: 210px;
    width: 100%;
    margin: 0 auto;
  }
  #cardDetailModal .pokedex-screen-bezel {
    max-width: 225px;
  }
  #cardDetailModal .pokedex-name-card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 10px;
    gap: 10px;
  }
  #cardDetailModal .pokedex-name-card-body h2 {
    font-size: 1.25rem !important;
    word-break: break-word;
  }
  #cardDetailModal .pokedex-desc-frame {
    padding: 12px 18px;
  }
  #cardDetailModal .detail-modal-art img,
  #packCardsModal .detail-modal-art img {
    max-width: 195px;
  }
  .pokedex-stats-box {
    grid-template-columns: minmax(0, 1fr);
  }
  .pokedex-stat-row:nth-last-child(2) {
    border-bottom: 2px dotted var(--pdx-dot);
  }
  #tab-live .live-feed-header-banner {
    padding: 50px 14px 16px;
  }
  #tab-live .live-feed-stats-pill {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  #tab-live .live-stat-box {
    min-width: 0 !important;
    padding: 10px 6px;
  }
  #tab-live .live-stat-label {
    font-size: 0.72rem;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  #tab-live .live-stat-val {
    font-size: clamp(0.75rem, 3.05vw, 0.98rem);
    gap: 3px;
    white-space: nowrap;
  }
  #tab-live .live-stat-val .anime-emoji {
    width: 15px;
    height: 15px;
  }
  #tab-live .live-hit-pricing {
    min-width: 0 !important;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }
  #tab-live .price-val-card,
  #tab-live .price-val-total {
    font-size: clamp(0.8rem, 3.1vw, 0.96rem);
    max-width: 100%;
    white-space: nowrap;
  }
  #tab-profile .profile-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  #tab-profile .profile-values-grid .m-stat-pill:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  #tab-profile .m-stat-pill {
    padding: 8px 6px;
  }
  #tab-profile .m-stat-pill .val {
    font-size: clamp(0.76rem, 3.05vw, 0.94rem);
    white-space: nowrap;
  }
  #tab-leaderboard .clean-lb-row .lb-val-cell {
    font-size: clamp(0.75rem, 2.9vw, 0.86rem);
  }
}

/* ================= BỘ SƯU TẬP - THẺ CHƯA SỞ HỮU (TRẮNG ĐEN) ================= */
.pokemon-clean-card.unowned-card {
  opacity: 0.82;
  background: var(--bg-card);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.08);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body.dark-mode .pokemon-clean-card.unowned-card {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(30, 30, 36, 0.6);
}

.pokemon-clean-card.unowned-card:hover {
  opacity: 1;
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.pokemon-clean-card.unowned-card .card-pokemon-img-box img {
  filter: grayscale(100%) contrast(95%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.pokemon-clean-card.unowned-card:hover .card-pokemon-img-box img {
  filter: grayscale(35%) contrast(100%);
  transform: scale(1.04);
}

.unowned-lock-tag {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-left: 4px;
  cursor: help;
}

.unowned-pill {
  color: #94a3b8 !important;
  background: rgba(148, 163, 184, 0.15) !important;
  border: 1px dashed rgba(148, 163, 184, 0.4) !important;
  padding: 1px 7px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
}

/* ================= BẢNG QUẢN LÍ (ADMIN DASHBOARD) ================= */
#tab-admin {
  padding-bottom: 50px;
}

#tab-admin .shop-banner {
  margin-bottom: 20px;
}

#tab-admin .filter-pill-select.admin-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

#tab-admin .filter-pill-select.admin-subtab-btn .pill-label {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#tab-admin .filter-pill-select.admin-subtab-btn .admin-subtab-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--pdx-ink);
}

#tab-admin .filter-pill-select.admin-subtab-btn:hover {
  transform: translate(-1px, -2px);
  border-color: var(--pdx-red-bright);
}

#tab-admin .filter-pill-select.admin-subtab-btn.active {
  background: #ef4444 linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #991b1b !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4), 2px 2px 0 var(--pdx-shadow) !important;
  transform: translateY(-1px);
}

#tab-admin .filter-pill-select.admin-subtab-btn.active .pill-label {
  color: rgba(255, 255, 255, 0.82) !important;
}

#tab-admin .filter-pill-select.admin-subtab-btn.active .admin-subtab-text,
#tab-admin .filter-pill-select.admin-subtab-btn.active span {
  color: #ffffff !important;
}

body.dark-mode #tab-admin .filter-pill-select.admin-subtab-btn {
  background: linear-gradient(180deg, #151519 0%, #0a0a0d 100%);
  border-color: #2e2e36;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.85),
    3px 3px 0 var(--pdx-shadow);
}

body.dark-mode #tab-admin .filter-pill-select.admin-subtab-btn .admin-subtab-text {
  color: #d4d4d8;
}

body.dark-mode #tab-admin .filter-pill-select.admin-subtab-btn:hover {
  border-color: #d4d4d8 !important;
}

body.dark-mode #tab-admin .filter-pill-select.admin-subtab-btn.active {
  background: #ef4444 linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55), 3px 3px 0 var(--pdx-shadow) !important;
}

body.dark-mode #tab-admin .filter-pill-select.admin-subtab-btn.active .pill-label {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-mode #tab-admin .filter-pill-select.admin-subtab-btn.active .admin-subtab-text,
body.dark-mode #tab-admin .filter-pill-select.admin-subtab-btn.active span {
  color: #ffffff !important;
}

/* Pokédex Clean Panel for Admin Sections (matching pack-clean-card chassis) */
.admin-clean-card {
  border-radius: 12px;
  border: 2px solid var(--pdx-border);
  background-color: var(--pdx-grid-bg);
  background-image:
    linear-gradient(to right, var(--pdx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pdx-grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 0 16px 18px;
  overflow: visible !important;
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  margin-bottom: 20px;
  position: relative;
}

/* User Suggestions Dropdown */
.admin-user-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--pdx-surface);
  border: 2px solid var(--pdx-border);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  padding: 6px;
}

.admin-user-sugg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.admin-user-sugg-item:hover {
  background: var(--bg-hover);
  transform: translateX(3px);
}

.admin-user-sugg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--pdx-border);
  flex-shrink: 0;
}

/* Resource Action Cards (Gold, Gem, Pack, Card) */
.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.admin-action-card {
  background: var(--pdx-surface);
  border: 2px solid var(--pdx-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 3px 3px 0 var(--pdx-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-action-card:hover {
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
}

.admin-action-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-action-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

/* Action Segmented Toggle Buttons [+ Cộng] [- Trừ] [= Đặt] */
.admin-action-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--bg-hover);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.admin-segment-btn {
  padding: 7px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--pdx-ink-muted);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.admin-segment-btn:hover {
  color: var(--pdx-ink);
}

.admin-segment-btn.active {
  background: var(--pdx-surface);
  color: var(--pdx-ink);
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
}

.admin-action-card.gold-card .admin-segment-btn.active {
  color: #f59e0b;
}

.admin-action-card.gem-card .admin-segment-btn.active {
  color: #0284c7;
}

.admin-action-card.pack-card .admin-segment-btn.active {
  color: #db2777;
}

.admin-action-card.card-card .admin-segment-btn.active {
  color: #059669;
}

/* Quick Increment Chips */
.admin-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-quick-chip {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-medium);
  background: var(--bg-hover);
  color: var(--pdx-ink-muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-quick-chip:hover {
  background: var(--border-medium);
  color: var(--pdx-ink);
  transform: translateY(-1px);
}

/* Custom Styled Inputs & Selects */
.admin-styled-input,
.admin-styled-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--pdx-border);
  background: var(--pdx-surface);
  color: var(--pdx-ink);
  font-size: 0.92rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.admin-styled-input:focus,
.admin-styled-select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.admin-styled-select option {
  background-color: var(--pdx-surface);
  color: var(--pdx-ink);
  padding: 8px 12px;
}

body.dark-mode .admin-styled-select option {
  background-color: #141419;
  color: #f4f4f6;
}

/* Action Execute Buttons */
.admin-exec-btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: none;
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-exec-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.admin-exec-btn.gold-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.admin-exec-btn.gem-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.admin-exec-btn.pack-btn {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

.admin-exec-btn.card-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Market Trend Cards */
.admin-trend-card {
  padding: 18px;
  border-radius: 14px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--pdx-shadow);
  transition: all 0.2s ease;
  position: relative;
}

.admin-trend-card:hover {
  border-color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.admin-trend-card.selected {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35), 2px 2px 0 var(--pdx-shadow);
}

body.dark-mode .admin-trend-card.selected {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
}

/* Card Suggestions Dropdown for Price Override */
#adminCardOverrideBlock {
  position: relative !important;
  z-index: 60 !important;
  overflow: visible !important;
}

#adminActiveOverridesBlock {
  position: relative !important;
  z-index: 10 !important;
}

.admin-card-suggestions-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--pdx-surface);
  border: 2px solid var(--pdx-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: 320px;
  overflow-y: auto;
  z-index: 99999 !important;
  padding: 6px;
}

body.dark-mode .admin-card-suggestions-box {
  background: #14141c;
  border-color: #2e2e38;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 0 1px #3a3a46;
}

.admin-card-sugg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.admin-card-sugg-item:last-child {
  border-bottom: none;
}

.admin-card-sugg-item:hover {
  background: var(--bg-hover);
  transform: translateX(2px);
}

/* Admin Price Override - Empty State */
.admin-card-empty-placeholder {
  border: 2px dashed var(--pdx-border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
  padding: 32px 18px;
  text-align: center;
  margin-top: 8px;
  transition: all 0.2s ease;
}

body.dark-mode .admin-card-empty-placeholder {
  background: rgba(255, 255, 255, 0.02);
  border-color: #2a2a36;
}

/* Admin Price Override - Selected Card Showcase */
.admin-override-card-detail {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 8px;
  animation: fadeInAdminCard 0.25s ease-out;
}

@keyframes fadeInAdminCard {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-card-visual-column {
  width: 210px;
  min-width: 200px;
  flex-shrink: 0;
}

.admin-override-card-frame {
  margin: 0;
  width: 100%;
  border-radius: 14px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  padding: 0 12px 14px;
  overflow: hidden;
  text-align: center;
}

.admin-override-card-frame .pdx-card-strip {
  width: calc(100% + 24px);
  margin: 0 -12px 10px;
  padding: 6px 12px;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-override-card-frame .card-pokemon-img-box {
  position: relative;
  border: 2px solid var(--pdx-border);
  border-radius: 10px;
  background: var(--pdx-grid-bg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  padding: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.admin-override-card-frame .card-pokemon-img-box img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.admin-override-card-frame:hover .card-pokemon-img-box img {
  transform: scale(1.04);
}

.admin-override-card-frame .card-poke-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pdx-ink);
  margin: 4px 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-card-controls-column {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.admin-override-info-banner {
  background: var(--bg-hover);
  border: 1.5px solid var(--pdx-border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.admin-override-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-override-stat-item {
  background: var(--pdx-surface);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 12px;
}

.admin-override-stat-item.highlight {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.06);
}

.admin-override-stat-item .lbl {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pdx-ink-muted);
}

.admin-override-stat-item .val {
  display: block;
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--pdx-ink);
  margin-top: 2px;
}

.admin-override-form-box {
  background: var(--pdx-surface);
  border: 2px solid var(--pdx-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 2px 2px 0 var(--pdx-shadow);
}

@media (max-width: 768px) {
  .admin-override-card-detail {
    flex-direction: column;
    align-items: center;
  }
  .admin-card-visual-column {
    width: 100%;
    max-width: 240px;
  }
}

/* Tables in Admin (Overrides & Giftcodes) */
.admin-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.88rem;
  margin-top: 10px;
}

.admin-data-table th {
  padding: 12px 14px;
  background: var(--bg-hover);
  color: var(--pdx-ink-muted);
  font-weight: 800;
  border-bottom: 2px solid var(--pdx-border);
}

.admin-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--pdx-ink);
}

.admin-data-table tbody tr {
  transition: background 0.15s ease;
}

.admin-data-table tbody tr:hover {
  background: var(--bg-hover);
}

@media (max-width: 768px) {
  .admin-header-banner {
    padding: 16px 14px !important;
  }
  .admin-subtabs-bar {
    gap: 6px !important;
  }
  .admin-subtab-btn {
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
  }
  .admin-pokedex-card {
    padding: 16px !important;
  }
  .admin-action-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ================= COMPREHENSIVE UI BUG FIXES & MOBILE POLISH ================= */

/* 1. Universal Select & Option contrast (Eliminates white-on-white text in dark mode on Chromium/Windows) */
select,
.modern-select,
.admin-styled-select {
  color-scheme: light;
}

body.dark-mode select,
body.dark-mode .modern-select,
body.dark-mode .admin-styled-select {
  color-scheme: dark !important;
}

select option,
.modern-select option,
.admin-styled-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

body.dark-mode select option,
body.dark-mode .modern-select option,
body.dark-mode .admin-styled-select option {
  background-color: #12131a !important;
  color: #f1f5f9 !important;
}

/* 2. Custom Dropdown Menu Width and Text Visibility Fix */
.custom-dropdown-menu {
  min-width: 220px !important;
  width: max-content !important;
  max-width: min(340px, calc(100vw - 28px)) !important;
  z-index: 1000 !important;
}

.custom-dropdown-item {
  display: flex !important;
  align-items: center !important;
  min-width: 180px !important;
  gap: 10px !important;
}

.dropdown-item-text {
  flex: 1 1 auto !important;
  min-width: 130px !important;
  white-space: nowrap !important;
  color: var(--text-primary) !important;
}

body.dark-mode .dropdown-item-text {
  color: #f4f4f6 !important;
}

/* 3. Mobile Live Feed Total Val Wrap Fix (Keeps number and gold coin cleanly on one line) */
.live-stat-val,
#tab-live .live-stat-val {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.live-stat-val .live-val-num {
  white-space: nowrap !important;
  flex-shrink: 1 !important;
}

.live-stat-val img.anime-emoji {
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* 4. Fluid Mobile Scrolling Enhancement Across All Tabs */
html,
body {
  -webkit-overflow-scrolling: touch;
}

.page-container,
.main-content-area,
.tab-view,
#tab-draw,
#tab-admin,
#tab-packs,
#tab-market,
#tab-live,
#tab-profile,
#tab-leaderboard,
#tab-settings,
#tab-donate {
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 600px) {
  .live-stat-val,
  #tab-live .live-stat-val {
    font-size: clamp(0.78rem, 3.2vw, 1.05rem) !important;
    gap: 4px !important;
  }
  .live-stat-val img.anime-emoji {
    width: 15px !important;
    height: 15px !important;
  }
  .custom-dropdown-menu {
    right: 0 !important;
    left: auto !important;
  }
  .filter-row .filter-pill-select:first-child .custom-dropdown-menu {
    left: 0 !important;
    right: auto !important;
  }
  .pokedex-info-title {
    font-size: 0.8rem !important;
    letter-spacing: 0.02em !important;
  }
  #liveHitDetailModal .live-modal-actions {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  #liveHitDetailModal .live-modal-btn {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #liveHitDetailModal .live-modal-stat-label {
    font-size: 0.82rem !important;
  }
  #liveHitDetailModal .price-val-card,
  #liveHitDetailModal .price-val-total,
  #liveHitDetailModal .live-modal-stat-highlight {
    font-size: 0.88rem !important;
  }
  .card-market-price,
  .pokedex-stat-row .val,
  .m-stat-pill .val {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

/* Mobile page fixes: smooth scroll, visible custom dropdowns, no touch blocking */
@media (max-width: 768px) {
  .page-preloader.fade-out {
    display: none !important;
    pointer-events: none !important;
  }
  .custom-dropdown-menu {
    right: 0 !important;
    left: auto !important;
    min-width: 220px !important;
    width: max-content !important;
    max-width: min(320px, calc(100vw - 32px)) !important;
    z-index: 9999 !important;
  }
  .filter-row .filter-pill-select:first-child .custom-dropdown-menu {
    left: 0 !important;
    right: auto !important;
  }
  .dropdown-item-text {
    flex: 1 1 auto !important;
    min-width: 130px !important;
    white-space: nowrap !important;
    color: var(--text-primary) !important;
    font-size: 0.85rem !important;
  }
}

/* ================= GLOBAL ANNOUNCEMENT BANNER ================= */
.global-announcement-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: slideDownBanner 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 90;
}

@keyframes slideDownBanner {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.global-announcement-banner.level-info {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border: 1.5px solid #3b82f6;
}

.global-announcement-banner.level-event {
  background: linear-gradient(90deg, #78350f 0%, #d97706 100%);
  color: #ffffff;
  border: 1.5px solid #f59e0b;
}

.global-announcement-banner.level-warning {
  background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 100%);
  color: #ffffff;
  border: 1.5px solid #ef4444;
}

/* ================= ADMIN ANALYTICS METRICS ================= */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.admin-metric-card {
  border-radius: 12px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 3px 3px 0 var(--pdx-shadow);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 var(--pdx-shadow);
}

.admin-metric-card .icon-chip {
  font-size: 1.6rem;
  margin-bottom: 6px;
  display: inline-block;
}

.admin-metric-card .metric-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pdx-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-metric-card .metric-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--pdx-ink);
  margin-top: 4px;
  white-space: nowrap;
}

/* ================= EVENT TOGGLE CARDS (LUCKY HOUR & FLASH SALE) ================= */
.admin-event-card {
  border-radius: 14px;
  border: 2px solid var(--pdx-border);
  background: var(--pdx-surface);
  box-shadow: 4px 4px 0 var(--pdx-shadow);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

.admin-event-card.active {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), 4px 4px 0 var(--pdx-shadow);
}

body.dark-mode .admin-event-card.active {
  background: rgba(245, 158, 11, 0.08);
}

/* ================= AUDIT LOGS BADGES ================= */
.admin-log-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-log-badge.badge-airdrop { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.admin-log-badge.badge-broadcast { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.admin-log-badge.badge-override { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.admin-log-badge.badge-player { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.admin-log-badge.badge-shop { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }

/* POKEMON 9-POCKET BINDER BOOK STYLES (POKÉDEX MECHA ALBUM EDITION) */
.binder-showcase-section {
  width: 100%;
  max-width: 680px;
  margin: 14px auto 10px;
  padding: 0 8px;
}

.binder-book-wrapper {
  position: relative;
  background: linear-gradient(165deg, #181726 0%, #0d0c15 100%);
  border: 8px solid #dc2626; /* Pokédex Crimson Mecha Frame */
  outline: 2px solid #7f1d1d;
  border-radius: 20px;
  box-shadow: 
    0 0 0 2px #0f172a,
    0 16px 40px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(220, 38, 38, 0.22),
    inset 0 0 35px rgba(0, 0, 0, 0.85),
    inset 0 2px 4px rgba(255, 255, 255, 0.35);
  padding: 18px 20px 16px;
  overflow: hidden;
  user-select: none;
}

body:not(.dark-mode) .binder-book-wrapper {
  background: linear-gradient(165deg, #232233 0%, #151421 100%);
  border-color: #dc2626;
  outline-color: #991b1b;
}

/* 4 Corner Pokéball Rivets (Inspired directly by pokemon_album_template.webp) */
.binder-corner-pokeball {
  position: absolute;
  width: 36px;
  height: 36px;
  z-index: 10;
  pointer-events: none;
}

.binder-corner-pokeball.corner-tl { top: 6px; left: 6px; }
.binder-corner-pokeball.corner-tr { top: 6px; right: 6px; }
.binder-corner-pokeball.corner-bl { bottom: 6px; left: 6px; }
.binder-corner-pokeball.corner-br { bottom: 6px; right: 6px; }

.pokeball-rivet {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  border: 2px solid #0f172a;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 50%, #f8fafc 50%, #e2e8f0 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.pokeball-rivet::before {
  content: '';
  position: absolute;
  top: calc(50% - 2.5px);
  left: 0;
  right: 0;
  height: 5px;
  background: #0f172a;
}

.pokeball-rivet::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #0f172a;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

/* Top & Bottom Cyber Mecha Chamfers */
.binder-mecha-chamfer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 16px;
  background: #111119;
  border: 2px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}

.binder-mecha-chamfer.chamfer-top {
  top: -2px;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
  border-top: none;
}

.binder-mecha-chamfer.chamfer-bottom {
  bottom: -2px;
  clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
  border-bottom: none;
}

.chamfer-sensor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.8);
  animation: sensorPulse 2.4s ease-in-out infinite;
}

.chamfer-sensor.sensor-sub {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: sensorPulse 3s ease-in-out infinite reverse;
}

@keyframes sensorPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.chamfer-notch {
  width: 16px;
  height: 3px;
  background: #334155;
  border-radius: 2px;
}

/* Left & Right Cyber Hazard Tech Wings */
.binder-hazard-wing {
  position: absolute;
  top: 55px;
  bottom: 55px;
  width: 20px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.binder-hazard-wing.wing-left { left: 8px; }
.binder-hazard-wing.wing-right { right: 8px; }

.wing-stripes {
  flex: 1;
  background: repeating-linear-gradient(
    -45deg,
    #ef4444,
    #ef4444 8px,
    #ffffff 8px,
    #ffffff 16px
  );
  border: 1.5px solid #0f172a;
  border-radius: 3px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.45);
}

.wing-notch {
  height: 12px;
  background: #0f172a;
  margin: 3px 0;
  border-radius: 2px;
}

/* Binder Header Bar */
.binder-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 6;
}

.binder-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.binder-badge-icon {
  width: 48px;
  height: 48px;
  background: rgba(220, 38, 38, 0.15);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.binder-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.binder-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0;
  color: #f8fafc;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.binder-chassis-tag {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #ef4444;
  color: #f87171;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.binder-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 4px 0 0;
  font-weight: 600;
}

.binder-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-binder-action {
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}

.btn-binder-action:hover {
  transform: translateY(-2px);
}

.btn-binder-edit {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-binder-auto {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #f59e0b;
  color: #f59e0b;
}

.btn-binder-save {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-binder-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* Binder Sleeve Chassis (Layout without Rings) */
.binder-sleeve-chassis {
  position: relative;
  padding-left: 0;
  z-index: 5;
}

.binder-spine-rings {
  display: none !important;
}

.binder-ring {
  width: 14px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(90deg, #475569 0%, #f1f5f9 35%, #cbd5e1 55%, #334155 100%);
  border: 1.5px solid #1e293b;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.binder-ring .ring-glint {
  position: absolute;
  top: 0;
  left: 2px;
  width: 2.5px;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(1px);
}

/* 9-POCKET SLEEVE GRID */
.binder-pockets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

/* REALISTIC CARD SLEEVE POCKET (Aspect ratio ~63:88 matching Pokémon Cards) */
.binder-pocket-card,
.binder-pocket-empty {
  position: relative;
  aspect-ratio: 63 / 88;
  width: 100%;
  border-radius: 11px;
  background: #090910;
  border: 2.5px solid #cbd5e1; /* Realistic silver/white sleeve bezel matching pokemon_album_template.webp */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.24s ease;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.binder-pocket-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: #38bdf8;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.6);
  z-index: 7;
}

/* Inner Recessed Sleeve Bezel */
.binder-sleeve-bezel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 11px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 2;
}

/* Protective Sleeve Gloss Glare */
.binder-pocket-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 30%, transparent 55%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Dynamic Holographic Foil Shimmer for Rare Cards */
.binder-holo-shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 0, 128, 0.15) 35%,
    rgba(0, 255, 255, 0.22) 50%,
    rgba(255, 215, 0, 0.18) 65%,
    transparent 80%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.binder-pocket-card:hover .binder-holo-shimmer {
  opacity: 1;
  transform: translateX(15%) translateY(-10%);
}

/* Top-Left Slot & Rarity Badges */
.binder-pocket-badge-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 4;
}

.binder-slot-badge {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.binder-rarity-pill {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.binder-rarity-pill.rarity-hyper {
  background: rgba(245, 158, 11, 0.88);
  color: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.binder-rarity-pill.rarity-sir {
  background: rgba(6, 182, 212, 0.88);
  color: #ffffff;
  border: 1px solid rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.binder-rarity-pill.rarity-ultra {
  background: rgba(168, 85, 247, 0.88);
  color: #ffffff;
  border: 1px solid rgba(192, 132, 252, 0.6);
}

.binder-rarity-pill.rarity-bw {
  background: rgba(239, 68, 68, 0.88);
  color: #ffffff;
  border: 1px solid rgba(248, 113, 113, 0.6);
}

.binder-rarity-pill.rarity-rare {
  background: rgba(59, 130, 246, 0.88);
  color: #ffffff;
  border: 1px solid rgba(96, 165, 250, 0.6);
}

.binder-rarity-pill.rarity-common {
  background: rgba(100, 116, 139, 0.85);
  color: #ffffff;
}

/* Edit Mode Overlay (Swap & Delete) */
.binder-pocket-edit-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
  z-index: 6;
}

.btn-binder-slot-action {
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s;
}

.btn-binder-slot-action:hover {
  transform: scale(1.1);
}

.btn-binder-slot-action.btn-swap {
  background: #3b82f6;
  color: #ffffff;
}

.btn-binder-slot-action.btn-del {
  background: #ef4444;
  color: #ffffff;
}

/* Full Bleed Card Image in Sleeve */
.binder-card-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090910;
}

.binder-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.binder-pocket-card:hover .binder-card-img-wrap img {
  transform: scale(1.02);
}

/* Sleek Frosted Glass HUD Overlay at bottom */
.binder-card-overlay {
  position: relative;
  z-index: 4;
  width: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(9, 11, 20, 0.7) 25%,
    rgba(5, 7, 14, 0.96) 100%
  );
  padding: 22px 10px 8px;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.binder-card-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.binder-card-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.binder-val-num {
  font-size: 0.82rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.binder-gold-ico {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
}

.binder-gold-ico img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Empty Pocket State */
.binder-pocket-empty {
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.8) 75%);
  border: 2.5px dashed rgba(203, 213, 225, 0.35);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.binder-pocket-empty:hover {
  border-color: #38bdf8;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.85) 75%);
}

.binder-empty-watermark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.empty-pokeball-silhouette {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  position: relative;
  opacity: 0.6;
}

.empty-pokeball-silhouette::before {
  content: '';
  position: absolute;
  top: calc(50% - 1.5px);
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.empty-pokeball-silhouette::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.binder-empty-lbl {
  font-size: 0.82rem;
  font-weight: 800;
  color: #94a3b8;
}

.binder-empty-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.binder-pocket-card.is-editable {
  cursor: grab;
}

.binder-pocket-card.is-editable:active {
  cursor: grabbing;
}

.binder-pocket-card.drag-hover,
.binder-pocket-empty.drag-hover {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.18) !important;
  transform: scale(1.04) !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5) !important;
}

/* REDESIGNED BINDER CARD PICKER MODAL (CHỌN THẺ GHIM VÀO Ô) */
.binder-picker-modal-card {
  max-width: 720px !important;
  width: 95vw !important;
  max-height: 85vh !important;
  padding: 20px 22px !important;
  border-radius: 20px !important;
  border: 2px solid var(--pdx-border) !important;
  background: var(--bg-card, #12121a) !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
}

.binder-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.binder-picker-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.binder-picker-badge-icon {
  font-size: 1.6rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.binder-picker-heading {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0;
  color: var(--text-primary);
}

.binder-picker-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.binder-picker-close-btn {
  font-size: 1.6rem;
  padding: 4px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-muted);
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  line-height: 1;
}

.binder-picker-close-btn:hover {
  color: var(--text-primary);
  border-color: #ef4444;
}

.binder-picker-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
}

.binder-picker-search-bar input {
  flex: 1;
  padding-left: 36px;
  height: 42px;
  border-radius: 12px;
}

.binder-picker-search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}

.binder-picker-count-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.12);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  white-space: nowrap;
}

.binder-picker-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  padding: 4px;
}

.binder-picker-card-card,
.binder-picker-item {
  height: 205px !important;
  min-height: 205px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border: 1.5px solid var(--border-light, #2e2c40) !important;
  background: var(--bg-card-soft, #1a1a26) !important;
  border-radius: 14px !important;
  padding: 8px !important;
  cursor: pointer !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
}

.binder-picker-card-card:hover,
.binder-picker-item:hover {
  border-color: #38bdf8 !important;
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.25) !important;
  background: rgba(56, 189, 248, 0.06) !important;
}

body:not(.dark-mode) .binder-picker-card-card,
body:not(.dark-mode) .binder-picker-item {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(100, 116, 139, 0.12) !important;
}

body:not(.dark-mode) .binder-picker-card-card:hover,
body:not(.dark-mode) .binder-picker-item:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.22) !important;
}

.binder-picker-art-wrap {
  width: 100%;
  height: 120px;
  background: #090910;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.binder-picker-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.binder-picker-card-card:hover .binder-picker-art-wrap img {
  transform: scale(1.06);
}

.binder-picker-slot-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #94a3b8;
  backdrop-filter: blur(4px);
}

.binder-picker-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.binder-picker-card-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.binder-picker-card-rarity {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.binder-picker-card-price {
  font-size: 0.76rem;
  font-weight: 900;
  color: #f59e0b;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.binder-picker-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

/* CLICKABLE WINNERS IN LUCKY DRAW TAB */
.draw-winner-card.clickable-winner {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.draw-winner-card.clickable-winner:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
}

.draw-winner-card.clickable-winner:hover .draw-winner-avatar {
  transform: scale(1.08);
  border-color: #38bdf8;
}

/* RESPONSIVE DESIGN FOR TABLETS & MOBILES */
@media (max-width: 960px) {
  .binder-book-wrapper {
    padding: 28px 24px 22px;
    border-width: 10px;
  }
  .binder-hazard-wing {
    display: none;
  }
  .binder-sleeve-chassis {
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .binder-book-wrapper {
    padding: 20px 12px 16px;
    border-width: 8px;
    border-radius: 20px;
  }
  .binder-sleeve-chassis {
    padding-left: 0;
  }
  .binder-spine-rings {
    display: none;
  }
  .binder-pockets-grid {
    gap: 10px;
  }
  .binder-pocket-card,
  .binder-pocket-empty {
    border-width: 2px;
    border-radius: 10px;
  }
  .binder-corner-pokeball {
    width: 26px;
    height: 26px;
  }
  .binder-mecha-chamfer {
    width: 100px;
    height: 12px;
  }
  .binder-card-name {
    font-size: 0.72rem;
  }
  .binder-val-num {
    font-size: 0.7rem;
  }
  .binder-slot-badge {
    font-size: 0.62rem;
    padding: 1px 5px;
  }
  .binder-rarity-pill {
    display: none; /* Hide rarity pill on narrow screens to let art shine */
  }
}






