/**
 * PlayRox Dashboard V2 — fresh design.
 * Phase 1: app shell + top bar + left sidebar.
 */

.plxv2 {
	--v2-bg: #0a0f1e;
	--v2-bg2: #0d1426;
	--v2-panel: #111a30;
	--v2-panel2: #16203a;
	--v2-line: rgba(255, 255, 255, 0.07);
	--v2-line-strong: rgba(255, 255, 255, 0.12);
	--v2-text: #e9edf6;
	--v2-muted: #8792ad;
	--v2-accent: #5b7cfa;
	--v2-accent2: #7c5cfa;
	--v2-green: #2fd67a;
	--v2-gold: #ffc93c;
	--v2-crystal: #7cc4ff;
	--v2-radius: 14px;
	--v2-radius-sm: 10px;

	position: relative;
	min-height: 100vh;
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(92,124,250,0.10), transparent 60%),
		radial-gradient(900px 500px at 0% 0%, rgba(124,92,250,0.08), transparent 55%),
		var(--v2-bg);
	color: var(--v2-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	letter-spacing: -0.01em;
}

/* Full-bleed: strip the theme's container padding/margins so the V2 shell
   fills the entire screen edge-to-edge, no matter what wrapper constrains it. */
.playrox-page-canvas:has(.plxv2),
.playrox-page-canvas.has-premium-dash {
	background: var(--v2-bg, #0a0f1e) !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 100vh !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}
.container-inner:has(.plxv2),
body#layout .container-inner:has(.plxv2),
body.container-outer .container-inner:has(.plxv2) {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
}
.plxv2 {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

/* ---- Top bar ----------------------------------------------------------- */
.plxv2__topbar {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; gap: 18px;
	padding: 12px 22px;
	background: rgba(10, 15, 30, 0.82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--v2-line);
}
.plxv2__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 210px; }
.plxv2__brand-mark {
	width: 40px; height: 40px; border-radius: 11px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(150deg, #2fd67a, #16a34a);
	color: #05231a; font-weight: 900; font-size: 22px;
	box-shadow: 0 6px 16px rgba(47,214,122,0.25);
}
.plxv2__brand-text b { display: block; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.plxv2__brand-text em { font-style: normal; color: var(--v2-muted); font-size: 11px; }

.plxv2__toptabs { display: flex; gap: 4px; }
.plxv2__toptab {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px; border: 0; border-radius: 10px; cursor: pointer;
	background: transparent; color: var(--v2-muted); font-weight: 600; font-size: 14px;
	transition: background 0.15s ease, color 0.15s ease;
}
.plxv2__toptab i { font-size: 13px; }
.plxv2__toptab:hover { color: var(--v2-text); background: rgba(255,255,255,0.04); }
.plxv2__toptab.is-active { color: #fff; background: rgba(91,124,250,0.16); box-shadow: inset 0 0 0 1px rgba(91,124,250,0.4); }

.plxv2__search {
	flex: 1; max-width: 460px; margin: 0 auto;
	display: flex; align-items: center; gap: 10px;
	padding: 0 14px; height: 42px; border-radius: 999px;
	background: var(--v2-panel); border: 1px solid var(--v2-line);
}
.plxv2__search i { color: var(--v2-muted); font-size: 14px; }
.plxv2__search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--v2-text); font-size: 14px; }
.plxv2__search input::placeholder { color: var(--v2-muted); }

.plxv2__topactions { display: flex; align-items: center; gap: 12px; }
.plxv2__iconbtn {
	position: relative; width: 42px; height: 42px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--v2-line); background: var(--v2-panel); color: var(--v2-text);
	cursor: pointer; font-size: 16px; transition: background 0.15s ease, border-color 0.15s ease;
	line-height: 1;
}
.plxv2__iconbtn:hover { background: var(--v2-panel2); border-color: var(--v2-line-strong); }
.plxv2__dot {
	position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
	display: flex; align-items: center; justify-content: center;
	background: #ff4d6d; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800;
	border: 2px solid var(--v2-bg);
}
.plxv2__coinpill {
	display: flex; align-items: center; gap: 8px;
	padding: 6px 6px 6px 14px; border-radius: 999px;
	background: var(--v2-panel); border: 1px solid var(--v2-line);
}
.plxv2__coinpill > i { color: var(--v2-gold); }
.plxv2__coinpill b { font-weight: 800; font-size: 14px; }
.plxv2__coinadd {
	width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; line-height: 1;
	background: linear-gradient(150deg, #5b7cfa, #7c5cfa); color: #fff; font-size: 12px;
}
.plxv2__coinadd:hover { filter: brightness(1.08); }

.plxv2__user { position: relative; }
.plxv2__user-btn {
	display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
	border-radius: 999px; border: 1px solid var(--v2-line); background: var(--v2-panel);
	cursor: pointer; color: var(--v2-text);
}
.plxv2__user-av img, .plxv2__user-av .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.plxv2__user-meta { text-align: left; line-height: 1.15; }
.plxv2__user-meta b { display: block; font-size: 13px; font-weight: 700; }
.plxv2__user-meta em { font-style: normal; font-size: 11px; color: var(--v2-green); }
.plxv2__user-btn > i { color: var(--v2-muted); font-size: 12px; }
.plxv2__usermenu {
	position: absolute; top: calc(100% + 8px); right: 0; width: 210px;
	background: var(--v2-panel); border: 1px solid var(--v2-line-strong); border-radius: 12px;
	padding: 6px; box-shadow: 0 20px 44px rgba(0,0,0,0.5); z-index: 60;
}
.plxv2__usermenu a {
	display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
	color: var(--v2-text); text-decoration: none; font-size: 14px; font-weight: 600;
}
.plxv2__usermenu a i { width: 18px; text-align: center; color: var(--v2-muted); }
.plxv2__usermenu a:hover { background: rgba(255,255,255,0.05); }
.plxv2__usermenu--danger { color: #fff !important; }
.plxv2__usermenu--danger i { color: #ff6b6b !important; }

/* ---- Body grid --------------------------------------------------------- */
.plxv2__body {
	display: grid;
	grid-template-columns: 268px minmax(0, 1fr) 320px;
	gap: 18px;
	padding: 18px 22px 40px;
	align-items: start;
}

/* ---- Left sidebar ------------------------------------------------------ */
.plxv2__side { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 16px; }

.plxv2__profile {
	background: var(--v2-panel); border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius); padding: 20px; text-align: center;
}
.plxv2__profile-av { position: relative; width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; padding: 3px; background: linear-gradient(150deg, #5b7cfa, #7c5cfa); }
.plxv2__profile-av img, .plxv2__profile-av .avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--v2-panel); box-sizing: border-box; }
.plxv2__profile-online { position: absolute; right: 6px; bottom: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--v2-green); border: 3px solid var(--v2-panel); }
.plxv2__profile-name { margin: 0 0 5px; font-size: 19px; font-weight: 800; color: #fff; }
.plxv2__profile-edit { font-size: 12px; color: var(--v2-muted); cursor: pointer; }
.plxv2__profile-level {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--v2-green);
	background: rgba(47,214,122,0.1); padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(47,214,122,0.28);
}
.plxv2__profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.plxv2__pstat {
	display: flex; flex-direction: column; align-items: center; gap: 3px;
	padding: 12px 4px; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--v2-line);
}
.plxv2__pstat i { font-size: 17px; }
.plxv2__pstat b { font-size: 15px; font-weight: 800; color: #fff; }
.plxv2__pstat em { font-style: normal; font-size: 10.5px; color: var(--v2-muted); }
.plxv2__pstat[data-playrox-prize-shop] { cursor: pointer; }
.plxv2__pstat[data-playrox-prize-shop]:hover { border-color: rgba(124,196,255,0.4); }

.plxv2__profile-xp-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--v2-muted); margin-bottom: 6px; }
.plxv2__profile-xp-top b { color: var(--v2-text); font-weight: 700; }
.plxv2__bar { height: 7px; border-radius: 999px; background: rgba(0,0,0,0.4); overflow: hidden; }
.plxv2__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2fd67a, #6ee7a0); }
.plxv2__profile-xp-sub { text-align: right; font-size: 11px; color: var(--v2-muted); margin-top: 6px; }

.plxv2__nav {
	background: var(--v2-panel); border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius); padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.plxv2__navitem {
	display: flex; align-items: center; gap: 12px; width: 100%;
	padding: 11px 14px; border: 0; border-radius: 10px; cursor: pointer; text-align: left;
	background: transparent; color: var(--v2-muted); font-size: 14.5px; font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}
.plxv2__navitem i { width: 20px; text-align: center; font-size: 15px; }
.plxv2__navitem:hover { background: rgba(255,255,255,0.04); color: var(--v2-text); }
.plxv2__navitem.is-active {
	background: linear-gradient(150deg, rgba(47,214,122,0.18), rgba(22,163,74,0.12));
	color: #fff; box-shadow: inset 0 0 0 1px rgba(47,214,122,0.3);
}
.plxv2__navitem.is-active i { color: var(--v2-green); }
.plxv2__nav-label { padding: 14px 14px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.09em; color: var(--v2-muted); }

.plxv2__promo {
	position: relative; overflow: hidden;
	background: linear-gradient(150deg, rgba(124,92,250,0.18), rgba(91,124,250,0.08));
	border: 1px solid rgba(124,92,250,0.3); border-radius: var(--v2-radius); padding: 18px;
}
.plxv2__promo-x { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; color: var(--v2-muted); cursor: pointer; }
.plxv2__promo-ic {
	width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(150deg, #7c5cfa, #5b7cfa); color: #fff; font-size: 18px;
}
.plxv2__promo b { display: block; color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.plxv2__promo p { margin: 0 0 14px; font-size: 12.5px; color: var(--v2-muted); line-height: 1.5; }
.plxv2__promo-btn {
	width: 100%; padding: 11px; border: 0; border-radius: 10px; cursor: pointer;
	background: linear-gradient(150deg, #5b7cfa, #7c5cfa); color: #fff; font-weight: 800; font-size: 14px;
}
.plxv2__promo-btn:hover { filter: brightness(1.08); }

/* ---- Center + right placeholders (filled later phases) ----------------- */
.plxv2__center { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.plxv2__right { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 16px; }
.plxv2__right.is-hidden { display: none; }
.plxv2__ph {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	min-height: 320px; border: 1px dashed var(--v2-line-strong); border-radius: var(--v2-radius);
	color: var(--v2-muted); background: rgba(255,255,255,0.015);
}
.plxv2__ph i { font-size: 30px; opacity: 0.5; }
.plxv2__ph--sm { min-height: 220px; }

/* ---- Mobile bottom nav ------------------------------------------------- */
.plxv2__mobilenav { display: none; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1180px) {
	.plxv2__body { grid-template-columns: 240px minmax(0, 1fr); }
	.plxv2__right { display: none; }
}
@media (max-width: 900px) {
	.plxv2__toptabs, .plxv2__search { display: none; }
	.plxv2__body { grid-template-columns: 1fr; padding: 14px 14px 90px; }
	.plxv2__side { position: static; }
	.plxv2__mobilenav {
		display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
		background: rgba(10,15,30,0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--v2-line);
		padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
	}
	.plxv2__mobilenav-item {
		flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
		border: 0; background: transparent; color: var(--v2-muted); font-size: 11px; font-weight: 600; cursor: pointer;
	}
	.plxv2__mobilenav-item i { font-size: 17px; }
	.plxv2__mobilenav-item.is-active { color: var(--v2-green); }
}

/* ==== Phase 2: center — tournament hero + instant games =============== */
.plxv2-hero {
	position: relative; overflow: hidden;
	display: flex; align-items: center; gap: 20px;
	min-height: 300px; padding: 34px 36px;
	border-radius: 18px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(124,92,250,0.35), transparent 55%),
		radial-gradient(120% 160% at 0% 100%, rgba(91,124,250,0.25), transparent 50%),
		linear-gradient(135deg, #1a1740 0%, #141230 55%, #0f1228 100%);
	border: 1px solid rgba(124,92,250,0.3);
}
.plxv2-hero__glow { position: absolute; inset: 0; background: radial-gradient(600px 300px at 75% 30%, rgba(124,92,250,0.25), transparent 60%); pointer-events: none; }
.plxv2-hero__body { position: relative; z-index: 2; flex: 1; min-width: 0; }
.plxv2-hero__eyebrow { display: block; color: #22c55e; font-weight: 800; font-size: 15px; letter-spacing: 0.06em; }
.plxv2-hero__title { margin: 2px 0 8px; font-size: 46px; line-height: 0.95; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.plxv2-hero__sub { margin: 0 0 18px; color: #cdd3e6; font-size: 15px; }
.plxv2-hero__perks { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; }
.plxv2-hero__perk { display: inline-flex; align-items: center; gap: 8px; color: #cbd2e8; font-size: 13.5px; font-weight: 600; }
.plxv2-hero__perk i { color: #22c55e; }
.plxv2-hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.plxv2-hero__register {
	padding: 14px 30px; border: 0; border-radius: 12px; cursor: pointer;
	background: linear-gradient(150deg, #22c55e, rgb(16 152 66 / 90%)); color: #fff; font-weight: 800; font-size: 15px;
	box-shadow: none;
}
.plxv2-hero__register:hover { filter: brightness(1.08); }
.plxv2-hero__count { display: inline-block; padding: 10px 16px; border-radius: 12px; background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.1); }
.plxv2-hero__count-label { display: block; text-align: center; color: #aeb6d2; font-size: 11.5px; margin-bottom: 6px; }
.plxv2-hero__count-grid { display: flex; gap: 14px; }
.plxv2-hero__count-grid > div { text-align: center; min-width: 34px; }
.plxv2-hero__count-grid b { display: block; font-size: 22px; font-weight: 800; color: #fff; }
.plxv2-hero__count-grid em { font-style: normal; font-size: 10.5px; color: #aeb6d2; }

.plxv2-hero__art { position: relative; z-index: 2; flex: 0 0 240px; display: flex; align-items: center; justify-content: center; }
.plxv2-hero__trophy { font-size: 130px; color: #a78bfa; filter: drop-shadow(0 12px 30px rgba(124,92,250,0.5)); }
.plxv2-hero__prizetag {
	position: absolute; top: 6px; right: 0; z-index: 3;
	display: flex; flex-direction: column; align-items: center;
	padding: 8px 16px; border-radius: 10px; transform: rotate(4deg);
	background: linear-gradient(150deg, #ff4d9d, #d6249f); box-shadow: 0 8px 20px rgba(214,36,159,0.4);
}
.plxv2-hero__prizetag b { color: #fff; font-size: 20px; font-weight: 900; line-height: 1; }
.plxv2-hero__prizetag em { font-style: normal; color: #ffe3f2; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; }

/* Section header (shared) */
.plxv2-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.plxv2-sec-head h2 { margin: 0; margin-right: auto; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.plxv2-sec-head__nav { flex: 0 0 auto; }

/* Instant games carousel */
.plxv2-games__navbtns { display: inline-flex; gap: 8px; }
.plxv2-games__arrow {
	width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; line-height: 1;
	border: 1px solid var(--v2-line); background: var(--v2-panel); color: var(--v2-text); font-size: 13px;
	padding: 0;
}
.plxv2-games__arrow:hover { background: var(--v2-panel2); border-color: var(--v2-line-strong); }
.plxv2-games__track {
	display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
	padding-bottom: 6px; scroll-snap-type: x mandatory;
}
.plxv2-games__track::-webkit-scrollbar { height: 6px; }
.plxv2-games__track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; }
/* Card: 4:5 cover, heart overlay, title + tagline beneath. The card is a
   plain div so the favourite button isn't nested inside the play button —
   nested buttons are invalid and the heart's click leaked through to launch
   the game. */
.plxv2-gcard {
	position: relative;
	flex: 0 0 clamp(150px, 17vw, 190px);
	scroll-snap-align: start;
}
.plxv2-gcard__hit {
	display: flex; flex-direction: column; gap: 10px; width: 100%;
	padding: 0; margin: 0; border: 0; background: transparent;
	text-align: left; cursor: pointer;
}
.plxv2-gcard__thumb {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
	background: #1a2338 center/cover no-repeat; border: 1px solid var(--v2-line);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.plxv2-gcard__ph { font-size: 30px; color: rgba(255,255,255,0.22); }
.plxv2-gcard:hover .plxv2-gcard__thumb {
	transform: translateY(-3px);
	border-color: rgba(91,124,250,0.5);
	box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}
.plxv2-gcard__hit:focus-visible .plxv2-gcard__thumb { outline: 2px solid #5b7cfa; outline-offset: 2px; }
.plxv2-gcard__new {
	position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 6px;
	background: #2fd67a; color: #04231a; font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
}
.plxv2-gcard__fav {
	position: absolute; top: 10px; right: 10px; z-index: 3;
	width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(8, 12, 24, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: #fff; font-size: 13px; cursor: pointer;
	transition: transform 0.16s ease, color 0.16s ease;
}
.plxv2-gcard__fav:hover, .plxv2-gcard__fav.is-fav { color: #ff5c8a; }
.plxv2-gcard__fav:active { transform: scale(0.9); }
.plxv2-gcard__cost {
	position: absolute; bottom: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,0.55);
	color: var(--v2-gold); font-size: 11px; font-weight: 800;
}
.plxv2-gcard__foot { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0 2px; }
.plxv2-gcard__name {
	font-size: 15px; font-weight: 700; color: #fff; line-height: 1.25;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plxv2-gcard__tag {
	font-size: 12.5px; font-weight: 500; color: var(--v2-muted); line-height: 1.3;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* "View All" — jumps to the Play Games tab. */
.plxv2-games__all {
	padding: 8px 18px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--v2-line-strong, rgba(255,255,255,0.14));
	background: var(--v2-panel, rgba(255,255,255,0.04)); color: #fff;
	font-size: 13.5px; font-weight: 600; white-space: nowrap;
	transition: background 0.16s ease, border-color 0.16s ease;
}
.plxv2-games__all:hover { background: var(--v2-panel2, rgba(255,255,255,0.09)); border-color: rgba(255,255,255,0.28); }

@media (max-width: 560px) {
	.plxv2-gcard { flex: 0 0 44vw; }
	.plxv2-gcard__name { font-size: 14px; }
	.plxv2-gcard__tag { font-size: 11.5px; }
	.plxv2-games__all { padding: 7px 13px; font-size: 12.5px; }
}

@media (max-width: 900px) {
	.plxv2-hero { flex-direction: column; text-align: center; min-height: 0; padding: 26px 20px; }
	.plxv2-hero__title { font-size: 34px; }
	.plxv2-hero__perks, .plxv2-hero__cta { justify-content: center; }
	.plxv2-hero__art { flex-basis: auto; margin-top: 10px; }
	.plxv2-hero__trophy { font-size: 90px; }
	.plxv2-hero__prizetag { position: static; transform: none; margin-bottom: 10px; }
}

/* ==== Phase 3 — right sidebar cards ==================================== */
.plxv2-card {
	background: var(--v2-panel); border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius); padding: 16px;
}
.plxv2-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.plxv2-card__title { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; color: #fff; }
.plxv2-card__title i { color: #3ce675; }
.plxv2-card__x { border: 0; background: transparent; color: var(--v2-muted); cursor: pointer; font-size: 14px; }
.plxv2-card__x:hover { color: var(--v2-text); }
.plxv2-card__link { color: #ffffff; font-size: 13px; font-weight: 700; text-decoration: none; }
.plxv2-card__link:hover { text-decoration: underline; }

.plxv2-btn { width: 100%; padding: 12px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; font-size: 14px; }
.plxv2-btn--primary { background: linear-gradient(150deg, #22c55e, rgb(34 197 94 / 68%)); color: #fff; }
.plxv2-btn--primary:hover { filter: brightness(1.08); }
.plxv2-btn--claimed { background: rgba(255,255,255,0.06); color: var(--v2-muted); cursor: default; }
.plxv2-btn.is-disabled { opacity: 0.6; cursor: not-allowed; }

/* Daily Rewards */
.plxv2-rewards__streak {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px; border-radius: 10px; margin-bottom: 14px;
	background: rgba(255,201,60,0.1); border: 1px solid rgba(255,201,60,0.28);
	color: var(--v2-gold); font-weight: 800; font-size: 13.5px;
}
.plxv2-rewards__today { display: flex; align-items: center; gap: 14px; padding: 4px 4px 16px; }
.plxv2-rewards__coin {
	width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 22px;
	background: none; box-shadow: none; color: #ffca3c;
}
.plxv2-rewards__today em { display: block; font-style: normal; font-size: 12px; color: var(--v2-muted); }
.plxv2-rewards__today b { font-size: 20px; color: #fff; font-weight: 800; }
.plxv2-rewards__next { text-align: center; margin-top: 10px; font-size: 12px; color: var(--v2-muted); }
.plxv2-rewards__next b { color: var(--v2-text); font-variant-numeric: tabular-nums; }
.plxv2-rewards__tomorrow {
	display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px;
	border-radius: 10px; border: 1px dashed var(--v2-line-strong); text-decoration: none;
}
.plxv2-rewards__tomorrow .plxv2-rewards__gift { color: #ff6b9d; font-size: 18px; }
.plxv2-rewards__tomorrow em { display: block; font-style: normal; font-size: 11px; color: var(--v2-muted); }
.plxv2-rewards__tomorrow b { font-size: 14px; color: var(--v2-text); }
.plxv2-rewards__tomorrow > i:last-child { margin-left: auto; color: var(--v2-muted); font-size: 12px; }

/* Daily Missions */
.plxv2-missions { display: flex; flex-direction: column; gap: 14px; }
.plxv2-mission { display: flex; align-items: center; gap: 12px; }
.plxv2-mission__ic {
	width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px;
	display: flex; align-items: center; justify-content: center; font-size: 16px;
	background: rgba(255,255,255,0.04); border: 1px solid var(--v2-line); color: var(--v2-text);
}
.plxv2-mission.is-done .plxv2-mission__ic { color: var(--v2-green); border-color: rgba(47,214,122,0.4); }
.plxv2-mission__body { flex: 1; min-width: 0; }
.plxv2-mission__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.plxv2-mission__top span { color: var(--v2-text); font-weight: 600; }
.plxv2-mission__top b { color: var(--v2-muted); font-weight: 700; }
.plxv2-mission__bar { height: 5px; border-radius: 999px; background: rgba(0,0,0,0.4); overflow: hidden; }
.plxv2-mission__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2fd67a, #6ee7a0); }
.plxv2-mission__reward { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--v2-gold); white-space: nowrap; }
.plxv2-missions__all {
	display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 14px;
	border-radius: 12px; background: linear-gradient(150deg, rgba(47,214,122,0.14), rgba(22,163,74,0.06));
	border: 1px solid rgba(47,214,122,0.25);
}
.plxv2-missions__all em { display: block; font-style: normal; font-size: 11px; color: var(--v2-muted); }
.plxv2-missions__all b { font-size: 15px; color: #fff; font-weight: 800; }
.plxv2-missions__coins { font-size: 24px; color: var(--v2-gold); }

/* Player Stats */
.plxv2-pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plxv2-pstats__item { display: flex; align-items: center; gap: 11px; }
.plxv2-pstats__ic {
	width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px;
	display: flex; align-items: center; justify-content: center; font-size: 17px;
	background: rgba(255,255,255,0.04); border: 1px solid var(--v2-line);
}
.plxv2-pstats__item b { display: block; font-size: 17px; font-weight: 800; color: #fff; line-height: 1.1; }
.plxv2-pstats__item em { font-style: normal; font-size: 11px; color: var(--v2-muted); }

/* ==== Phase 4 — panel router + news grid + polish ====================== */
/* Panels: only the active one shows. Overview is the default. */
.plxv2__panel { display: none; }
.plxv2__panel.is-active { display: block; }
.plxv2__panel[data-plxv2-panel="dashboard"].is-active { display: flex; flex-direction: column; gap: 22px; }

/* Reused classic panels sit on the V2 canvas — neutralise their own outer
   chrome so they blend into the fresh layout. */
.plxv2__panel .plxd__panel { display: block !important; background: transparent !important; border: 0 !important; padding: 0 !important; }
.plxv2__panel .playrox-dash__h2, .plxv2__panel h2.plxd__h2 { color: #fff; }

/* Section head shared. */
.plxv2-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.plxv2-sec-head h2 { margin: 0; margin-right: auto; font-size: 16px; font-weight: 800; letter-spacing: 0.02em; color: #fff; }
.plxv2-sec-head__link { color: #ffffff; font-size: 13px; font-weight: 700; text-decoration: none; }
.plxv2-sec-head__link:hover { text-decoration: underline; }

/* News grid */
.plxv2-news__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.plxv2-news__card {
	position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden;
	text-decoration: none; border: 1px solid var(--v2-line); background: var(--v2-panel);
}
.plxv2-news__thumb {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	display: flex; align-items: center; justify-content: center; color: var(--v2-muted); font-size: 28px;
}
.plxv2-news__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.85) 100%); }
.plxv2-news__body { position: absolute; left: 0; right: 0; bottom: 34px; padding: 0 12px; }
.plxv2-news__title { color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.3; display: block; }
.plxv2-news__foot { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.plxv2-news__views, .plxv2-news__date { color: rgba(255,255,255,0.8); font-size: 11px; display: inline-flex; align-items: center; gap: 5px; }
.plxv2-news__card:hover { border-color: var(--v2-line-strong); }
.plxv2-news__card:hover .plxv2-news__thumb { transform: scale(1.04); transition: transform 0.4s ease; }

@media (max-width: 1500px) { .plxv2-news__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1180px) { .plxv2-news__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .plxv2-news__grid { grid-template-columns: repeat(2, 1fr); } .plxv2-news__card { height: auto; aspect-ratio: 4 / 5; } }

/* ==== Refinements: logo, logout, news modal, mobile ==================== */
/* Site logo in brand */
.plxv2__brand-logo { max-height: 40px; width: auto; display: block; }

/* Logout in CONFIGURE */
.plxv2 .plxv2__navitem--logout,
.plxv2 a.plxv2__navitem--logout { text-decoration: none; color: #ffffff !important; }
.plxv2 .plxv2__navitem--logout i { color: #ff6b6b !important; }
.plxv2 .plxv2__navitem--logout:hover { background: rgba(255,92,92,0.12); color: #ffffff !important; }

/* News popup (on-page lightbox) */
.plxv2-newsmodal { position: fixed; inset: 0; z-index: 9999; display: none; }
.plxv2-newsmodal.is-open { display: block; }
.plxv2-newsmodal__backdrop { position: absolute; inset: 0; background: rgba(3,7,18,0.78); backdrop-filter: blur(4px); }
.plxv2-newsmodal__box {
	position: relative; z-index: 1; width: min(760px, 92vw); max-height: 88vh; margin: 6vh auto 0;
	background: var(--v2-panel); border: 1px solid var(--v2-line-strong); border-radius: 18px; overflow: hidden;
	box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.plxv2-newsmodal__x {
	position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
	border: 0; cursor: pointer; background: rgba(0,0,0,0.5); color: #fff; font-size: 15px;
}
.plxv2-newsmodal__x:hover { background: rgba(0,0,0,0.7); }
.plxv2-newsmodal__scroll { max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.plxv2-newsmodal__hero { height: 300px; background-size: cover; background-position: center; }
.plxv2-newsmodal__pad { padding: 24px 30px 34px; }
.plxv2-newsmodal__title { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.2; }
.plxv2-newsmodal__date { font-size: 13px; color: var(--v2-muted); margin-bottom: 18px; }
.plxv2-newsmodal__content { color: #cfd6e6; font-size: 15.5px; line-height: 1.75; }
.plxv2-newsmodal__content p { margin: 0 0 16px; }
.plxv2-newsmodal__content img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.plxv2-newsmodal__content h2, .plxv2-newsmodal__content h3 { color: #fff; margin: 22px 0 10px; }
.plxv2-newsmodal__content a { color: var(--v2-accent); }
.plxv2-newsmodal__full {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 11px 20px;
	border-radius: 10px; background: linear-gradient(150deg, #5b7cfa, #7c5cfa); color: #fff;
	font-weight: 700; font-size: 14px; text-decoration: none;
}
.plxv2-newsmodal__loading { display: flex; align-items: center; justify-content: center; height: 300px; color: var(--v2-muted); font-size: 28px; }

/* News card without title: taller image area, foot pinned to bottom. */
.plxv2-news__card { border: 0; padding: 0; cursor: pointer; background: var(--v2-panel); text-align: left; }

/* ---- Mobile: match the reference stacked layout ----------------------- */
@media (max-width: 900px) {
	/* Top bar: logo + all action icons on ONE row; tabs scroll on a 2nd row. */
	.plxv2__topbar { flex-wrap: nowrap; gap: 10px; padding: 10px 14px; align-items: center; }
	.plxv2__brand { min-width: 0; flex: 0 1 auto; margin-right: auto; overflow: hidden; }
	.plxv2__brand-text { display: none; }
	.plxv2__brand-logo { max-height: 34px; }
	.plxv2__brand-mark { width: 34px; height: 34px; font-size: 19px; flex: 0 0 auto; }
	.plxv2__topactions { flex: 0 0 auto; gap: 8px; flex-wrap: nowrap; }
	.plxv2__toptabs {
		order: 5; width: 100%; display: flex; gap: 4px; overflow-x: auto;
		border-top: 1px solid var(--v2-line); padding-top: 10px; -webkit-overflow-scrolling: touch;
	}
	.plxv2__toptabs::-webkit-scrollbar { height: 0; }
	.plxv2__toptab { flex: 0 0 auto; font-size: 13px; padding: 8px 12px; }
	.plxv2__user-meta { display: none; }
	.plxv2__user-btn > i { display: none; }

	/* Smaller bell + coin pill on mobile → more breathing room by the logo. */
	.plxv2__iconbtn { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
	.plxv2__dot { top: -4px; right: -4px; min-width: 15px; height: 15px; font-size: 9px; }
	.plxv2__coinpill { padding: 4px 4px 4px 10px; gap: 5px; }
	.plxv2__coinpill b { font-size: 13px; }
	.plxv2__coinpill > i { font-size: 13px; }
	.plxv2__coinadd {
		width: 22px; height: 22px; background: none !important; color: var(--v2-accent);
		font-size: 13px; box-shadow: none;
	}
	.plxv2__coinadd:hover { filter: none; color: #fff; }
	.plxv2__user-av { width: 34px; height: 34px; }
	.plxv2__topactions { gap: 8px; }

	/* Body: single column, profile card first (reference order). */
	.plxv2__body { grid-template-columns: 1fr; gap: 16px; padding: 14px 14px 90px; }
	.plxv2__side { position: static; gap: 16px; }
	/* Hide the left nav list on mobile — the bottom bar + top tabs cover it. */
	.plxv2__nav { display: none; }
	/* Profile card: centre the avatar + identity on mobile. */
	.plxv2__profile { text-align: center; }
	.plxv2__profile-av { margin: 0 auto 12px; }
	.plxv2__profile-stats { max-width: 100%; }

	/* Right cards stack below the center content, full width. */
	.plxv2__right { display: flex !important; position: static; }
	.plxv2__right.is-hidden { display: none !important; }

	/* Games + news become horizontal scrollers on mobile. */
	.plxv2-news__grid {
		display: flex; gap: 12px; overflow-x: auto; grid-template-columns: none;
		-webkit-overflow-scrolling: touch; margin: 0 -14px; padding: 0 14px 6px;
	}
	.plxv2-news__grid::-webkit-scrollbar { height: 0; }
	.plxv2-news__card { flex: 0 0 auto; width: 150px; height: auto; aspect-ratio: 4 / 5; }

	.plxv2-newsmodal__box { width: 100vw; max-height: 100vh; margin: 0; border-radius: 0; }
	.plxv2-newsmodal__scroll { max-height: 100vh; }
	.plxv2-newsmodal__hero { height: 220px; }
	.plxv2-newsmodal__pad { padding: 20px 18px 30px; }
	.plxv2-newsmodal__title { font-size: 22px; }
}

/* Reorder columns on mobile so profile → center → right cards (reference). */
@media (max-width: 900px) {
	.plxv2__body { display: flex; flex-direction: column; align-items: stretch; }
	.plxv2__center { order: 1; }
	.plxv2__side { order: 2; }
	.plxv2__right { order: 3; }

	/* Every section spans the full width — no fixed column widths or gaps. */
	.plxv2__side,
	.plxv2__center,
	.plxv2__right,
	.plxv2__profile,
	.plxv2__nav,
	.plxv2-card,
	.plxv2-games,
	.plxv2-news,
	.plxv2__panel,
	.plxv2__panel > *:not(.plxv2-hero) {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	.plxv2__side { flex: 1 1 auto; min-width: 0; }
	.plxv2__profile-stats { max-width: 100%; }

	/* Reused classic panels: force full width + single-column stacking.
	   (Grids that should stay multi-column on mobile are excluded.) */
	.plxv2__panel .plxd__panel,
	.plxv2__panel .plxd,
	.plxv2__panel [class*="__grid"]:not(.plxv2-news__grid):not(.plxd-lib__grid):not(.playrox-shop__grid):not(.playrox-daily__grid):not(.plxv2-newspage__grid),
	.plxv2__panel [class*="__row"]:not(.plxs__row) {
		width: 100% !important;
		max-width: 100% !important;
		grid-template-columns: 1fr !important;
		box-sizing: border-box;
	}

	/* Settings rows lay themselves out as a 3-column grid on mobile (icon /
	   label / control); the blanket 1fr above collapsed that, stretching the
	   icon across the row and pushing the label onto its own line. */
	.plxv2__panel .plxs__row {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
}

/* ==== Notification bell dropdown ======================================= */
.plxv2__bellmenu {
	position: absolute; top: calc(100% + 10px); right: 0; width: 300px; z-index: 70;
	background: var(--v2-panel); border: 1px solid var(--v2-line-strong); border-radius: 12px;
	padding: 6px; box-shadow: 0 20px 44px rgba(0,0,0,0.5);
}
.plxv2__bellmenu-head { padding: 10px 12px 8px; font-size: 13px; font-weight: 800; color: #fff; }
.plxv2__bellmenu-item {
	display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border-radius: 9px;
	font-size: 13px; color: var(--v2-text); line-height: 1.4;
}
.plxv2__bellmenu-item i { color: var(--v2-accent); margin-top: 2px; }
.plxv2__bellmenu-item:hover { background: rgba(255,255,255,0.04); }

@media (max-width: 900px) {
	.plxv2__bellmenu { position: fixed; top: 64px; right: 10px; left: 10px; width: auto; }
}

/* ==== Reused-panel theming inside V2 (fix white cards + text) ========== */
.plxv2__panel .playrox-resume,
.plxv2__panel .playrox-card,
.plxv2__panel .playrox-cards > *,
.plxv2__panel .playrox-account__block,
.plxv2__panel .playrox-jumpback,
.plxv2__panel .playrox-earn,
.plxv2__panel .playrox-invite,
.plxv2__panel .playrox-invite__box,
.plxv2__panel .playrox-ledger,
.plxv2__panel .playrox-dash-leaders,
.plxv2__panel .playrox-dash-leaders__me,
.plxv2__panel .playrox-blank,
.plxv2__panel .playrox-shop,
.plxv2__panel .playrox-trophies__item,
.plxv2__panel .playrox-reward-card {
	background: var(--v2-panel) !important;
	border: 1px solid var(--v2-line) !important;
	color: var(--v2-text) !important;
	box-shadow: none !important;
}
.plxv2__panel h1, .plxv2__panel h2, .plxv2__panel h3, .plxv2__panel h4,
.plxv2__panel .playrox-dash__h3,
.plxv2__panel .playrox-card__title,
.plxv2__panel .playrox-resume__title {
	color: #fff !important;
}
.plxv2__panel .playrox-dash__muted,
.plxv2__panel .playrox-resume__meta,
.plxv2__panel .playrox-card__stat,
.plxv2__panel .playrox-resume__eyebrow,
.plxv2__panel p {
	color: var(--v2-muted) !important;
}
.plxv2__panel .playrox-resume__eyebrow { color: var(--v2-accent) !important; }
/* Resume button: theme gradient, readable text. */
.plxv2__panel .playrox-resume__cta,
.plxv2__panel .playrox-resume button,
.plxv2__panel .plxd__resume {
	background: linear-gradient(150deg, #5b7cfa, #7c5cfa) !important;
	color: #fff !important; border: 0 !important;
}
.plxv2__panel input, .plxv2__panel select, .plxv2__panel textarea {
	background: rgba(255,255,255,0.04) !important; color: var(--v2-text) !important;
	border: 1px solid var(--v2-line) !important;
}

/* ==== News & Updates panel — article cards with category ============== */
.plxv2-newspage__grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
/* Category filter (select) in the News tab header. */
.plxv2-newsfilter { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.plxv2-newsfilter__label { color: var(--v2-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.plxv2-newsfilter__select {
	background: var(--v2-panel); color: #fff; border: 1px solid var(--v2-line);
	border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
	outline: 0; min-width: 150px;
}
.plxv2-newsfilter__select:hover { border-color: var(--v2-line-strong); }
.plxv2-newsfilter__select option { color: #000; background: #fff; }
@media (max-width: 640px) {
	.plxv2-newspage .plxv2-sec-head {
		display: flex; align-items: center; gap: 10px;
		flex-wrap: nowrap; margin-bottom: 12px;
	}
	.plxv2-newspage .plxv2-sec-head h2 {
		margin: 0; min-width: 0; flex: 1 1 auto;
		font-size: 18px; line-height: 1.15;
	}
	.plxv2-newsfilter { width: auto; margin: 0; flex: 0 0 auto; }
	.plxv2-newsfilter__select {
		flex: 0 0 auto; width: auto; min-width: 0; max-width: 46vw;
		padding: 8px 10px; font-size: 12.5px;
	}
	.plxv2-newscat { margin-top: 4px; }
}
.plxv2-acard {
	display: flex; flex-direction: column; text-align: left; cursor: pointer;
	background: var(--v2-panel); border: 1px solid var(--v2-line); border-radius: 14px; overflow: hidden;
	padding: 0; transition: border-color 0.15s ease, transform 0.15s ease;
}
.plxv2-acard:hover { border-color: var(--v2-line-strong); transform: translateY(-2px); }
.plxv2-acard__thumb {
	position: relative; height: 140px; background-size: cover; background-position: center;
	display: flex; align-items: center; justify-content: center; color: var(--v2-muted); font-size: 26px;
}
.plxv2-acard__cat {
	position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
	background: rgba(91,124,250,0.9); color: #fff; font-size: 11px; font-weight: 700;
}
.plxv2-acard__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.plxv2-acard__title { color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.plxv2-acard__foot { display: flex; align-items: center; justify-content: space-between; color: var(--v2-muted); font-size: 12px; }
.plxv2-acard__foot i { margin-right: 4px; }

@media (max-width: 640px) {
	.plxv2-newspage__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
	.plxv2-acard__thumb { height: 110px; }
}

/* ==== V2 footer ======================================================== */
.plxv2-footer {
	background: #0A0F1E; border-top: 1px solid var(--v2-line);
	padding: 20px 22px calc(20px + env(safe-area-inset-bottom));
}
.plxv2-footer__inner {
	max-width: 1640px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
	text-align: center; gap: 8px 20px; flex-wrap: wrap; color: var(--v2-muted); font-size: 13.5px;
}
.plxv2-footer__copy { color: #ffffff; }
.plxv2-footer__links { display: flex; gap: 20px; }
.plxv2-footer__links a { color: #ffffff; text-decoration: none; }
.plxv2-footer__links a:hover { color: var(--v2-muted); }
.plxv2-footer__social { display: flex; gap: 10px; }
.plxv2-footer__social a {
	width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: var(--v2-panel); border: 1px solid var(--v2-line); color: var(--v2-muted); text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.plxv2-footer__social a:hover { color: #fff; border-color: var(--v2-line-strong); }
@media (max-width: 900px) {
	.plxv2-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
	.plxv2-footer__inner { flex-direction: column; justify-content: center; text-align: center; gap: 12px; }
	.plxv2-footer__copy { order: -1; width: 100%; }
	.plxv2-footer__social { margin: 0 auto; }
}

/* Quit Portal nav item */
.plxv2 .plxv2__navitem--quit { color: var(--v2-text); text-decoration: none; }
.plxv2 .plxv2__navitem--quit i { color: var(--v2-gold); }
.plxv2 .plxv2__navitem--quit:hover { background: rgba(255,255,255,0.04); }

/* ==== Hero custom background image ===================================== */
.plxv2-hero--custombg {
	background-size: cover; background-position: center;
	min-height: 300px; padding: 34px 36px;
	border: 1px solid var(--v2-line);
}
.plxv2-hero--custombg::before {
	content: none;
}
.plxv2-hero--custombg .plxv2-hero__body { position: relative; z-index: 1; }
.plxv2-hero--custombg .plxv2-hero__glow { display: none; }

/* ==== Section icon (Play Instant Games / Latest news) ================= */
.plxv2-sec-head h2 { display: inline-flex; align-items: center; }
.plxv2-sec-icon { display: inline-block; object-fit: contain; vertical-align: middle; }

/* ==== News & Updates — per-category sliders =========================== */
.plxv2-catrow { margin-bottom: 26px; }
.plxv2-catrow__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.plxv2-catrow__head h3 { margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
.plxv2-catrow__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
	gap: 16px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
}
.plxv2-catrow__track::-webkit-scrollbar { height: 6px; }
.plxv2-catrow__track::-webkit-scrollbar-thumb { background: var(--v2-line-strong); border-radius: 999px; }
.plxv2-catrow__track .plxv2-acard,
.plxv2-catrow__track .plxv2-news__card { scroll-snap-align: start; }
@media (max-width: 640px) {
	.plxv2-catrow__track { grid-auto-columns: minmax(150px, 70%); }
}

/* ==== Mobile: Play Games panel fixes ================================== */
@media (max-width: 900px) {
	/* Resume card: compact side-by-side instead of a huge stacked art. */
	.plxv2__panel .playrox-resume {
		grid-template-columns: 96px 1fr !important;
		gap: 14px !important; padding: 14px !important; align-items: center;
	}
	.plxv2__panel .playrox-resume__art {
		aspect-ratio: 1 / 1 !important; width: 96px; height: 96px; border-radius: 12px;
	}
	.plxv2__panel .playrox-resume__title { font-size: 16px !important; }
	.plxv2__panel .playrox-resume__meta { font-size: 12px !important; }

	/* Game library: exactly 2 cards per row (no giant single cards). */
	.plxv2__panel .plxd-lib__grid {
		grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important;
	}
	.plxv2__panel .plxd-lib__thumb { aspect-ratio: 4 / 5; border-radius: 12px; margin-bottom: 8px; }
	.plxv2__panel .plxd-lib__name { font-size: 13px !important; }
	.plxv2__panel .plxd-lib__play { opacity: 1; transform: scale(1); width: 44px; height: 44px; font-size: 15px; }
}

/* ==== Mobile: tournament banner (edge-to-edge, image-only) ============ */
@media (max-width: 900px) {
	/* Break the banner out to the screen edges, no rounded corners. */
	.plxv2__panel[data-plxv2-panel="dashboard"] { gap: 16px; }
	.plxv2-hero {
		width: 100vw !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		margin-top: -14px !important;
		margin-bottom: 4px !important;
		border-radius: 0 !important;
		min-height: 0 !important;
		padding: 0 !important;
		display: block !important;
		overflow: hidden;
		position: relative;
	}
	/* Any custom image (desktop or mobile) gives the banner real height. */
	.plxv2-hero--custombg,
	.plxv2-hero--mobilebg {
		background-size: cover !important; background-position: center !important;
		aspect-ratio: 16 / 9;
	}
	/* Prefer the dedicated mobile image when present. */
	.plxv2-hero--mobilebg { background-image: var(--v2-hero-mob) !important; }
	/* No dark overlay/shadow on the image. */
	.plxv2-hero--custombg::before,
	.plxv2-hero--mobilebg::before { display: none !important; content: none !important; }

	/* Hide all the text — image only. */
	.plxv2-hero__glow,
	.plxv2-hero__eyebrow,
	.plxv2-hero__title,
	.plxv2-hero__sub,
	.plxv2-hero__perks,
	.plxv2-hero__count-label { display: none !important; }

	/* Keep Play Now + timer visible, pinned over the image bottom. */
	.plxv2-hero__body {
		position: absolute !important; left: 0; right: 0; bottom: 0;
		z-index: 2; padding: 0 !important; flex: none !important;
	}
	.plxv2-hero__cta {
		display: flex !important; align-items: center; gap: 10px; padding: 12px 14px;
		background: linear-gradient(0deg, rgba(6,10,20,0.75), transparent);
	}
	.plxv2-hero__register { flex: 0 0 auto; padding: 10px 18px !important; font-size: 14px !important; }
	.plxv2-hero__count {
		flex: 1; display: flex !important; align-items: center; gap: 6px;
		background: rgba(0,0,0,0.4) !important; padding: 8px 10px !important; border-radius: 10px;
	}
	.plxv2-hero__count-grid { display: flex !important; gap: 8px; margin: 0 !important; }
	.plxv2-hero__count-grid > div { min-width: 0 !important; padding: 0 !important; }
	.plxv2-hero__count-grid b { font-size: 15px !important; }
	.plxv2-hero__count-grid em { font-size: 9px !important; }

	/* If NO image at all is set, fall back to the gradient banner block. */
	.plxv2-hero:not(.plxv2-hero--custombg):not(.plxv2-hero--mobilebg) {
		aspect-ratio: auto; padding: 18px 14px !important;
	}
	.plxv2-hero:not(.plxv2-hero--custombg):not(.plxv2-hero--mobilebg) .plxv2-hero__body {
		position: static !important;
	}
	.plxv2-hero:not(.plxv2-hero--custombg):not(.plxv2-hero--mobilebg) .plxv2-hero__cta {
		position: static; background: none; padding: 12px 0 0;
	}
}

/* ==== Mobile refinements batch (v10.18) =============================== */
@media (max-width: 900px) {
	/* #6: profile card only on Profile/Home, hidden on other tabs. */
	.plxv2__side.is-profileonly { display: none !important; }

	/* #7: game library always 2 per row (stronger override). */
	.plxv2__panel .plxd-lib__grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}

	/* #10: avatar shop items 2 per row. */
	.plxv2__panel .playrox-shop__grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
	.plxv2__panel .playrox-shop__item { min-width: 0; }

	/* #11: Daily Rewards day packs responsive — 3 per row on phones. */
	.plxv2__panel .playrox-packs {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}
	.plxv2__panel .playrox-pack { padding: 12px 6px !important; }
	/* The 30-day reward calendar: keep it a proper multi-column grid. */
	.plxv2__panel .playrox-daily__grid {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}
	.plxv2__panel .playrox-daily__day { min-width: 0; }

	/* #4: Latest from Pakistanio — top padding + arrows for the slider. */
	.plxv2-games, .plxv2-news { padding-top: 6px; }
	.plxv2-sec-head { position: relative; }
}

/* #4: back / next arrows for horizontal card rows (mobile + desktop) */
.plxv2-rowarrows { display: none; }
@media (max-width: 900px) {
	.plxv2-rownav {
		display: inline-flex; gap: 6px; margin-left: auto;
	}
	.plxv2-rownav__btn {
		width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--v2-line);
		background: var(--v2-panel); color: var(--v2-text); display: flex; align-items: center;
		justify-content: center; cursor: pointer; font-size: 12px;
	}
	.plxv2-rownav__btn:active { background: var(--v2-line); }
}
.plxv2-rownav { display: none; }

/* ==== Mobile: Profile tab — avatar card first, then account panel ===== */
@media (max-width: 900px) {
	.plxv2[data-plxv2-active="account"] .plxv2__center { order: 2; }
	.plxv2[data-plxv2-active="account"] .plxv2__side { order: 1; }
}

/* ==== V2 fix: Support / account rows readable ========================= */
.plxv2__panel .plxs__section-head { color: var(--v2-green) !important; }
.plxv2__panel .plxs__row { border-top-color: var(--v2-line) !important; }
.plxv2__panel .plxs__row-ic {
	background: rgba(255,255,255,0.06) !important;
	color: var(--v2-accent) !important;
}
.plxv2__panel .plxs__row-label { color: #ffffff !important; }
.plxv2__panel .plxs__row-value { color: var(--v2-muted) !important; }
.plxv2__panel .plxs__row-chev,
.plxv2__panel .plxs__row-ext { color: var(--v2-muted) !important; }
.plxv2__panel .plxs__row:hover .plxs__row-ic { color: var(--v2-green) !important; background: rgba(47,214,122,0.12) !important; }

/* ==== Mobile: dashboard section spacing + stacked right cards ========= */
@media (max-width: 900px) {
	/* #1: clear, even spacing between the stacked dashboard sections. */
	.plxv2__panel[data-plxv2-panel="dashboard"] { gap: 26px; }
	.plxv2-games, .plxv2-news { margin-top: 6px; }

	/* Right cards stack full-width, one per row (Player Stats first). */
	.plxv2__right {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap;
		gap: 16px;
	}
	.plxv2-card--stats { order: 1; }
	.plxv2-card--rewards { order: 2; }
	.plxv2-card--missions { order: 3; }

	/* Smaller buttons + fonts inside the right cards on mobile. */
	.plxv2__right .plxv2-btn,
	.plxv2__right .plxv2-btn--primary,
	.plxv2__right .plxv2-btn--claimed {
		font-size: 12px; padding: 9px 10px; border-radius: 9px;
	}
	.plxv2__right .plxv2-card__link { font-size: 11px; }
}

/* ==== V2 fix: leaderboard panel side padding ========================== */
.plxv2__panel[data-plxv2-panel="leaders"] .playrox-dash-leaders {
	padding-left: 10px;
	padding-right: 10px;
}

/* ==== V2 fix: country select — readable option text ================== */
.plxv2__panel .plxs__country { color: #ffffff; }
.plxv2__panel .plxs__country option { color: #000000; background: #ffffff; }

/* ==== V2 fix: 2FA disabled + coming-soon label ======================= */
.plxv2__panel .plxs__soon {
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	background: rgba(255,255,255,0.06); color: var(--v2-muted);
	font-size: 11px; font-weight: 700; margin-right: 10px;
}
.plxv2__panel .plxs__toggle.is-disabled {
	opacity: 0.4; pointer-events: none; cursor: not-allowed;
}

/* ==== V2 fix: leaderboard podium + list on mobile ==================== */
@media (max-width: 900px) {
	.plxv2__panel[data-plxv2-panel="leaders"] { overflow-x: hidden; }

	/* Podium: shrink so the three slots fit a narrow screen cleanly. */
	.plxv2__panel .playrox-podium { gap: 4px; padding: 16px 0 0; align-items: flex-end; }
	.plxv2__panel .playrox-podium__slot { max-width: none; min-width: 0; flex: 1 1 0; }

	.plxv2__panel .playrox-podium__avatar img { width: 50px; height: 50px; }
	.plxv2__panel .playrox-podium__slot--1 .playrox-podium__avatar img { width: 64px; height: 64px; }
	.plxv2__panel .playrox-podium__medal { width: 24px; height: 24px; font-size: 12px; margin-bottom: -12px; }
	.plxv2__panel .playrox-podium__slot--1 .playrox-podium__medal { width: 28px; height: 28px; font-size: 13px; margin-bottom: -13px; }

	/* Names + values: truncate, never overflow the slot. */
	.plxv2__panel .playrox-podium__name {
		margin-top: 10px; font-size: 12px; max-width: 100%;
		overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	}
	.plxv2__panel .playrox-podium__value { font-size: 13px; }

	/* Reward pill: smaller, wraps under the name, doesn't collide. */
	.plxv2__panel .playrox-podium__reward {
		font-size: 10px; padding: 3px 8px; margin-top: 6px;
		max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	}

	/* Pedestal bars: keep proportional, no stretching. */
	.plxv2__panel .playrox-podium__bar { margin-top: 12px; font-size: 16px; }
	.plxv2__panel .playrox-podium__slot--1 .playrox-podium__bar { height: 60px; }
	.plxv2__panel .playrox-podium__slot--2 .playrox-podium__bar { height: 44px; }
	.plxv2__panel .playrox-podium__slot--3 .playrox-podium__bar { height: 32px; }

	/* List rows: tighten so score + reward pill fit without overlap. */
	.plxv2__panel .playrox-board__row { gap: 10px; padding: 12px 12px; flex-wrap: nowrap; }
	.plxv2__panel .playrox-board__avatar img { width: 34px; height: 34px; }
	.plxv2__panel .playrox-board__name { font-size: 13px; }
	.plxv2__panel .playrox-board__score { font-size: 15px; }
	.plxv2__panel .playrox-board__reward { font-size: 11px; padding: 4px 9px; white-space: nowrap; }
}

/* ==== V2 fix: hide Sign Out card on mobile (settings/account) ========= */
@media (max-width: 900px) {
	.plxv2__panel .plxs__railcard--signout,
	.plxv2__panel .plxs__railcard:has(.plxs__signout),
	.plxv2__panel .plxs__signout,
	.plxv2__panel .plxs__signout-text { display: none !important; }
}

/* ==== V2 fix: padding for Display Name / Sign-in Method sections ====== */
.plxv2__panel .plxs__section { padding: 8px 22px; }
.plxv2__panel .plxs__row { padding: 16px 4px; }
@media (max-width: 900px) {
	.plxv2__panel .plxs__section { padding: 8px 16px; }
	.plxv2__panel .plxs__row { padding: 15px 6px; }
}

/* ==== News tab — reference look (stats bar + Explore More) =========== */
.plxv2-news__views i, .plxv2-news__date i { opacity: 0.9; }

/* Per-category section spacing. */
.plxv2-newscat { margin-bottom: 22px; }
.plxv2-newscat:last-of-type { margin-bottom: 0; }
.plxv2-newscat.is-hidden { display: none; }

/* View All button (opens the category / front page). */
.plxv2-news__more {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
	padding: 11px 20px; border-radius: 999px;
	background: var(--v2-panel); border: 1px solid var(--v2-line);
	color: #ffffff !important; font-size: 13.5px; font-weight: 700; text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.plxv2-news__more, .plxv2-news__more:visited, .plxv2-news__more:hover, .plxv2-news__more:active { color: #ffffff !important; }
.plxv2-news__more:hover { border-color: var(--v2-line-strong); background: var(--v2-panel2); }
.plxv2-news__more i { font-size: 12px; color: var(--v2-green) !important; }
@media (max-width: 640px) {
	.plxv2-news__more { width: 100%; justify-content: center; margin-top: 12px; }
}

/* Bottom activity stats bar. */
.plxv2-newsstats {
	display: flex; align-items: center; gap: 14px;
	margin-top: 18px; padding: 16px 18px;
	background: var(--v2-panel); border: 1px solid var(--v2-line); border-radius: 16px;
	text-decoration: none; color: var(--v2-text);
}
.plxv2-newsstats__item { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.plxv2-newsstats__ic {
	width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.plxv2-newsstats__ic--time { background: rgba(47,214,122,0.14); color: var(--v2-green); }
.plxv2-newsstats__ic--earn { background: rgba(47,214,122,0.14); color: var(--v2-green); }
.plxv2-newsstats__body { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.plxv2-newsstats__label { color: var(--v2-muted); font-size: 12.5px; }
.plxv2-newsstats__value { color: #fff; font-size: 20px; font-weight: 800; }
.plxv2-newsstats__sub { color: var(--v2-muted); font-size: 11.5px; }
.plxv2-newsstats__chev {
	flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--v2-line); color: var(--v2-muted); font-size: 13px;
}
.plxv2-newsstats:hover .plxv2-newsstats__chev { color: #fff; border-color: var(--v2-line-strong); }
@media (max-width: 600px) {
	.plxv2-newsstats { padding: 14px; gap: 8px; }
	.plxv2-newsstats__ic { width: 42px; height: 42px; font-size: 16px; }
	.plxv2-newsstats__value { font-size: 18px; }
	.plxv2-newsstats__item { gap: 10px; }
}

/* ==== V2 fix: Display name / Sign-in method block padding ============= */
.plxv2__panel .playrox-account__block { padding-left: 18px; padding-right: 18px; }
.plxv2__panel .playrox-account__block > .plxacct-signin { padding: 4px 0; }
@media (max-width: 900px) {
	.plxv2__panel .playrox-account__block { padding-left: 14px; padding-right: 14px; padding-top: 6px; }
}

/* ==== Premium custom icons (Icon Lobby) ============================== */
.plx-icoimg { display: inline-block; object-fit: contain; vertical-align: -0.15em; }
/* Per-icon sizing driven by CSS variables so the Customizer can live-tune
   them; the fallback keeps sensible defaults when a size isn't set. */
.plx-ico--coins    { width: var(--plxico-coins-w, 20px);    height: var(--plxico-coins-h, 20px); }
.plx-ico--crystals { width: var(--plxico-crystals-w, 20px); height: var(--plxico-crystals-h, 20px); }
.plx-ico--xp       { width: var(--plxico-xp-w, 20px);       height: var(--plxico-xp-h, 20px); }
.plx-ico--games    { width: var(--plxico-games-w, 22px);    height: var(--plxico-games-h, 22px); }
.plx-ico--playtime { width: var(--plxico-playtime-w, 22px); height: var(--plxico-playtime-h, 22px); }
.plx-ico--rank     { width: var(--plxico-rank-w, 22px);     height: var(--plxico-rank-h, 22px); }
.plxv2__pstat .plx-icoimg, .plxs__pstat .plx-icoimg { vertical-align: middle; }
.plxv2-mission__reward .plx-icoimg { vertical-align: -0.15em; }

/* Coins image — responsive to the surrounding text size in the header pill,
   header stats and the top-up balance so it always fits the space. */
.plxv2__coinpill .plx-icoimg { width: auto; height: 1.05em; vertical-align: -0.14em; }
.plxd__hstat-ic .plx-icoimg { width: auto; height: 1.1em; }
.plxd__topup-total-val .plx-icoimg { width: auto; height: 1.05em; vertical-align: -0.14em; }

/* ==== Coming Soon locks ============================================== */
.plxv2-soon {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 60px 24px; min-height: 340px;
	background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
	border-radius: 18px;
}
.plxv2-soon__icon {
	width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font-size: 32px; color: #22c55e; margin-bottom: 18px;
	background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.4);
	box-shadow: 0 0 26px rgba(34,197,94,0.25);
}
.plxv2-soon__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #fff; }
.plxv2-soon__badge {
	display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px;
	background: linear-gradient(150deg, #22c55e, rgb(16 152 66 / 90%)); color: #fff;
	font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.plxv2-soon__text { margin: 0; max-width: 420px; color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.5; }

/* Nav lock badge. */
.plxv2__navitem.is-locked { position: relative; }
.plxv2__navlock { margin-left: auto; font-size: 11px; opacity: 0.6; }
.plxv2__navitem.is-locked span { opacity: 0.72; }
.plxv2__mobilenav-item.is-locked { opacity: 0.7; }

/* Locked "+" top-up button. */
.plxv2__coinadd--locked { opacity: 0.85; cursor: default; }
.plxv2__coinadd--locked:hover { filter: none; }

/* Coming-soon toast. */
.plxv2-toast {
	position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
	background: #0f1c14; color: #fff; border: 1px solid rgba(34,197,94,0.5);
	padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 100000; opacity: 0;
	transition: opacity 0.28s ease, transform 0.28s ease; pointer-events: none;
}
.plxv2-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.plxv2-toast i { color: #22c55e; margin-right: 6px; }

/* ==== Card surface ====================================================
   One translucent teal surface for every card on the profile page. Applied
   to the card selectors rather than the --v2-panel variable, because that
   variable is shared by 22 rules including the search bar, coin pill, icon
   buttons and carousel arrows — recolouring it would restyle the whole
   chrome, not just the cards.
   ===================================================================== */

.plxv2__profile,
.plxv2__nav,
.plxv2-card,
.plxv2__panel .plxd__card,
.plxv2__panel .plxd__block {
	background: #0e5d5936;
	border: 1px solid rgb(255 255 255 / 30%);
	border-radius: var(--v2-radius);
}

.plxv2__profile,
.plxv2-card,
.plxv2__panel .plxd__card,
.plxv2__panel .plxd__block {
	padding: 16px;
}

/* The nav is a list wrapper, not a padded card — its rows carry their own
   padding, so 16px here would double-inset every menu item. */
.plxv2__nav { padding: 8px; }

/* Instant games header on phones: the track is swipeable, so the prev/next
   arrows are redundant and crowd the heading. "View All" stays. */
@media (max-width: 720px) {
	.plxv2-games__arrow { display: none !important; }
	.plxv2-games__navbtns { gap: 0; }
}
