/*
 * Account shell guard layer
 * Live-safe, account-only rules that reduce selector collisions without
 * touching cart, checkout, gateway, or wallet transaction behavior.
 */

.woocommerce-account {
  --tcgw-shell-bg: linear-gradient(180deg, #111722 0%, #0c121d 100%);
  --tcgw-shell-bg-soft: linear-gradient(180deg, rgba(31,45,68,.92) 0%, rgba(13,22,35,.92) 100%);
  --tcgw-shell-surface: linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,.015) 100%);
  --tcgw-shell-border: rgba(255,255,255,.08);
  --tcgw-shell-border-soft: rgba(255,255,255,.06);
  --tcgw-shell-text: #e8eefc;
  --tcgw-shell-text-strong: #fff;
  --tcgw-shell-text-soft: #9fb0ce;
  --tcgw-shell-accent: #6f57ff;
  --tcgw-shell-accent-strong: #5039dd;
  --tcgw-shell-highlight: #ffd36b;
  --tcgw-shell-link: #9dd6ff;
  --tcgw-shell-shadow: 0 12px 26px rgba(0,0,0,.14);
  --tcgw-shell-shadow-strong: 0 18px 40px rgba(0,0,0,.22);
}

.woocommerce-account .tcgw-account-snapshot,
.woocommerce-account .tcgw-account-lobby,
.woocommerce-account .tcgw-account-lobby-grid,
.woocommerce-account .tcgw-account-lobby-strip {
  isolation: isolate;
}

.woocommerce-account .tcgw-account-snapshot,
.woocommerce-account .tcgw-account-lobby-grid,
.woocommerce-account .tcgw-account-lobby-strip,
.woocommerce-account .tcgw-account-snapshot__overview,
.woocommerce-account .tcgw-account-snapshot__tab-panels,
.woocommerce-account .tcgw-account-snapshot__tab-panel,
.woocommerce-account .tcgw-account-snapshot__play-pane,
.woocommerce-account .tcgw-account-snapshot__discover-grid,
.woocommerce-account .tcgw-account-snapshot__badge-grid,
.woocommerce-account .tcgw-account-snapshot__community-grid,
.woocommerce-account .tcgw-account-lobby-list,
.woocommerce-account .tcgw-account-lobby-list__item {
  min-width: 0;
}

.woocommerce-account .tcgw-account-snapshot__hero-chips,
.woocommerce-account .tcgw-account-snapshot__hero-actions,
.woocommerce-account .tcgw-account-snapshot__actions,
.woocommerce-account .tcgw-account-snapshot__leaderboard-periods,
.woocommerce-account .tcgw-account-snapshot__tabs,
.woocommerce-account .tcgw-account-snapshot__collection-track {
  overscroll-behavior-x: contain;
}

.woocommerce-account .tcgw-account-snapshot a:focus-visible,
.woocommerce-account .tcgw-account-snapshot button:focus-visible,
.woocommerce-account .tcgw-account-lobby-grid a:focus-visible,
.woocommerce-account .tcgw-account-lobby-grid button:focus-visible,
.woocommerce-account .tcgw-account-lobby-strip a:focus-visible,
.woocommerce-account .tcgw-account-lobby-strip button:focus-visible {
  outline: 2px solid var(--tcgw-shell-highlight);
  outline-offset: 2px;
}

.woocommerce-account .tcgw-account-snapshot__hero-chips::-webkit-scrollbar,
.woocommerce-account .tcgw-account-snapshot__hero-actions::-webkit-scrollbar,
.woocommerce-account .tcgw-account-snapshot__actions::-webkit-scrollbar,
.woocommerce-account .tcgw-account-snapshot__leaderboard-periods::-webkit-scrollbar,
.woocommerce-account .tcgw-account-snapshot__tabs::-webkit-scrollbar,
.woocommerce-account .tcgw-account-snapshot__collection-track::-webkit-scrollbar {
  height: 8px;
}

.woocommerce-account .tcgw-account-snapshot__hero-chips::-webkit-scrollbar-thumb,
.woocommerce-account .tcgw-account-snapshot__hero-actions::-webkit-scrollbar-thumb,
.woocommerce-account .tcgw-account-snapshot__actions::-webkit-scrollbar-thumb,
.woocommerce-account .tcgw-account-snapshot__leaderboard-periods::-webkit-scrollbar-thumb,
.woocommerce-account .tcgw-account-snapshot__tabs::-webkit-scrollbar-thumb,
.woocommerce-account .tcgw-account-snapshot__collection-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce-account .tcgw-account-snapshot *,
  .woocommerce-account .tcgw-account-lobby-strip *,
  .woocommerce-account .tcgw-account-lobby-grid * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Group 5 Part 2 — alias current Home panel to legacy Play panel layout
   and harden long-content rendering inside the account/community shell. */

.woocommerce-account .tcgw-account-snapshot__tab-panel[data-snapshot-panel="home"]:not([hidden]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr) !important;
  align-items: start !important;
}

.woocommerce-account .tcgw-account-snapshot__tab-panel[data-snapshot-panel="home"] .tcgw-account-snapshot__actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 12px !important;
  align-content: start !important;
  margin: 0 !important;
}

.woocommerce-account .tcgw-account-snapshot__tab-panel[data-snapshot-panel="home"] .tcgw-account-snapshot__actions::before {
  content: "Quick Actions";
  display: block;
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.woocommerce-account .tcgw-account-snapshot__tab-panel[data-snapshot-panel="home"] .tcgw-account-snapshot__actions a {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 16px !important;
  max-width: 100%;
}

.woocommerce-account .tcgw-account-snapshot__head-stat,
.woocommerce-account .tcgw-account-snapshot__discover-info,
.woocommerce-account .tcgw-account-snapshot__discover-name,
.woocommerce-account .tcgw-account-snapshot__discover-meta,
.woocommerce-account .tcgw-account-snapshot__discover-price,
.woocommerce-account .tcgw-account-snapshot__discover-score,
.woocommerce-account .tcgw-account-lobby-list__body,
.woocommerce-account .tcgw-account-lobby-list__body strong,
.woocommerce-account .tcgw-account-lobby-list__body span,
.woocommerce-account .tcgw-account-lobby-strip__body,
.woocommerce-account .tcgw-account-lobby-strip__value,
.woocommerce-account .tcgw-account-lobby-strip__meta,
.woocommerce-account .tcgw-account-lobby-activity__item strong,
.woocommerce-account .tcgw-account-lobby-activity__item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.woocommerce-account .tcgw-account-snapshot__discover-card,
.woocommerce-account .tcgw-account-lobby-list__item,
.woocommerce-account .tcgw-account-lobby-strip__card,
.woocommerce-account .tcgw-account-lobby-card {
  box-sizing: border-box;
}

.woocommerce-account .tcgw-account-snapshot img,
.woocommerce-account .tcgw-account-lobby-grid img,
.woocommerce-account .tcgw-account-lobby-strip img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .woocommerce-account .tcgw-account-snapshot__tab-panel[data-snapshot-panel="home"]:not([hidden]) {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .woocommerce-account .tcgw-account-snapshot__tab-panel[data-snapshot-panel="home"] > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .woocommerce-account .tcgw-account-snapshot__tab-panel[data-snapshot-panel="home"] .tcgw-account-snapshot__actions {
    grid-template-columns: 1fr !important;
  }
}

/* Group 5 Part 3 — scoped sizing and chip/button overflow guards
   Keeps the account/community shell self-contained without touching
   cart, checkout, gateway, or wallet transaction behavior. */

.woocommerce-account .tcgw-account-snapshot,
.woocommerce-account .tcgw-account-snapshot *,
.woocommerce-account .tcgw-account-lobby-strip,
.woocommerce-account .tcgw-account-lobby-strip *,
.woocommerce-account .tcgw-account-lobby-grid,
.woocommerce-account .tcgw-account-lobby-grid * {
  box-sizing: border-box;
}

.woocommerce-account .tcgw-account-snapshot__hero-chip,
.woocommerce-account .tcgw-account-snapshot__leaderboard-period,
.woocommerce-account .tcgw-account-snapshot__tab,
.woocommerce-account .tcgw-account-snapshot__collection-btn,
.woocommerce-account .tcgw-account-snapshot__collection-link,
.woocommerce-account .tcgw-account-snapshot__profile-cta,
.woocommerce-account .tcgw-account-snapshot__referral-cta,
.woocommerce-account .tcgw-account-snapshot__mission-cta,
.woocommerce-account .tcgw-account-lobby-strip__link,
.woocommerce-account .tcgw-account-lobby-card__head a,
.woocommerce-account .tcgw-account-lobby-alerts__chip,
.woocommerce-account .tcgw-account-lobby-list__pill {
  max-width: 100%;
}

.woocommerce-account .tcgw-account-snapshot__hero-chip,
.woocommerce-account .tcgw-account-snapshot__leaderboard-period,
.woocommerce-account .tcgw-account-snapshot__tab,
.woocommerce-account .tcgw-account-lobby-alerts__chip,
.woocommerce-account .tcgw-account-lobby-list__pill,
.woocommerce-account .tcgw-account-lobby-strip__link,
.woocommerce-account .tcgw-account-lobby-card__head a {
  min-width: 0;
}

.woocommerce-account .tcgw-account-snapshot__collection-image,
.woocommerce-account .tcgw-account-snapshot__discover-image,
.woocommerce-account .tcgw-account-lobby-list__thumb img {
  display: block;
}

.woocommerce-account .tcgw-account-snapshot__head-stats,
.woocommerce-account .tcgw-account-snapshot__community-shell-stats,
.woocommerce-account .tcgw-account-snapshot__referral-stats,
.woocommerce-account .tcgw-account-lobby-alerts {
  align-items: stretch;
}

@media (max-width: 767px) {
  .woocommerce-account .tcgw-account-snapshot__hero-chip,
  .woocommerce-account .tcgw-account-snapshot__leaderboard-period,
  .woocommerce-account .tcgw-account-snapshot__tab,
  .woocommerce-account .tcgw-account-lobby-alerts__chip,
  .woocommerce-account .tcgw-account-lobby-list__pill,
  .woocommerce-account .tcgw-account-lobby-strip__link,
  .woocommerce-account .tcgw-account-lobby-card__head a {
    white-space: normal !important;
    text-align: center;
  }
}

/* Group 5 Part 4 — scoped account-shell scroll, media, and grid hardening
   Keeps account/community layouts resilient without touching checkout,
   cart totals, gateways, wallet transactions, or pricing display. */

.woocommerce-account .tcgw-account-snapshot__collection-track,
.woocommerce-account .tcgw-account-snapshot__tabs,
.woocommerce-account .tcgw-account-snapshot__leaderboard-periods,
.woocommerce-account .tcgw-account-snapshot__hero-actions,
.woocommerce-account .tcgw-account-snapshot__hero-chips {
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 12px;
}

.woocommerce-account .tcgw-account-snapshot__leaderboard-list,
.woocommerce-account .tcgw-account-snapshot__inbox-list,
.woocommerce-account .tcgw-account-lobby-activity,
.woocommerce-account .tcgw-account-mega-list,
.woocommerce-account .tcgw-account-activity-rail {
  min-width: 0;
}

.woocommerce-account .tcgw-account-snapshot__leaderboard-item,
.woocommerce-account .tcgw-account-snapshot__inbox-item,
.woocommerce-account .tcgw-account-lobby-activity__item,
.woocommerce-account .tcgw-account-mega-list__item,
.woocommerce-account .tcgw-account-activity-rail__item,
.woocommerce-account .tcgw-account-command__card,
.woocommerce-account .tcgw-account-mission-card,
.woocommerce-account .tcgw-account-walletbox {
  min-width: 0;
  max-width: 100%;
}

.woocommerce-account .tcgw-account-snapshot__leaderboard-name,
.woocommerce-account .tcgw-account-snapshot__message,
.woocommerce-account .tcgw-account-snapshot__insights-sub,
.woocommerce-account .tcgw-account-snapshot__hero-sub,
.woocommerce-account .tcgw-account-mega-list__name,
.woocommerce-account .tcgw-account-command__meta,
.woocommerce-account .tcgw-account-lobby-welcome__meta,
.woocommerce-account .tcgw-account-walletbox__balance,
.woocommerce-account .tcgw-account-walletbox__stats {
  overflow-wrap: anywhere;
}

.woocommerce-account .tcgw-account-snapshot__discover-image,
.woocommerce-account .tcgw-account-snapshot__collection-image,
.woocommerce-account .tcgw-account-lobby-list__thumb,
.woocommerce-account .tcgw-account-command__icon {
  overflow: hidden;
  flex-shrink: 0;
}

.woocommerce-account .tcgw-account-snapshot__discover-image img,
.woocommerce-account .tcgw-account-snapshot__collection-image img,
.woocommerce-account .tcgw-account-lobby-list__thumb img,
.woocommerce-account .tcgw-account-command__icon img {
  width: 100%;
  height: auto;
  display: block;
}

.woocommerce-account .tcgw-account-snapshot__graph,
.woocommerce-account .tcgw-account-snapshot__graph-rows,
.woocommerce-account .tcgw-account-snapshot__graph-row,
.woocommerce-account .tcgw-account-snapshot__community-shell-stats,
.woocommerce-account .tcgw-account-command__grid,
.woocommerce-account .tcgw-account-mission-grid,
.woocommerce-account .tcgw-account-supergrid {
  min-width: 0;
}

@media (max-width: 767px) {
  .woocommerce-account .tcgw-account-command__grid,
  .woocommerce-account .tcgw-account-mission-grid,
  .woocommerce-account .tcgw-account-supergrid,
  .woocommerce-account .tcgw-account-snapshot__community-shell-stats,
  .woocommerce-account .tcgw-account-walletbox__stats {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-account .tcgw-account-snapshot__leaderboard-item,
  .woocommerce-account .tcgw-account-snapshot__inbox-item,
  .woocommerce-account .tcgw-account-lobby-activity__item,
  .woocommerce-account .tcgw-account-mega-list__item,
  .woocommerce-account .tcgw-account-activity-rail__item {
    align-items: flex-start;
  }
}

.woocommerce-account .tcgw-account-snapshot__subtabs{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	margin:0 0 16px;
}
.woocommerce-account .tcgw-account-snapshot__subtab{
	border:1px solid rgba(255,255,255,.12);
	background:rgba(255,255,255,.04);
	color:inherit;
	padding:10px 14px;
	border-radius:999px;
	cursor:pointer;
	font:inherit;
}
.woocommerce-account .tcgw-account-snapshot__subtab.is-active{
	background:rgba(255,255,255,.12);
	border-color:rgba(255,255,255,.24);
}
.woocommerce-account .tcgw-account-snapshot__community-panels,
.woocommerce-account .tcgw-account-snapshot__community-panel{
	min-width:0;
}
.woocommerce-account .tcgw-account-snapshot__trust-stats{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:12px;
	margin:14px 0 18px;
}
.woocommerce-account .tcgw-account-snapshot__trust-stat{
	padding:14px;
	border-radius:18px;
	background:rgba(255,255,255,.05);
	border:1px solid rgba(255,255,255,.08);
}
.woocommerce-account .tcgw-account-snapshot__trust-stat b{
	display:block;
	font-size:1.2rem;
	margin-bottom:6px;
}
.woocommerce-account .tcgw-account-snapshot__trust-list{
	margin:0;
	padding-left:18px;
	display:grid;
	gap:8px;
}
.woocommerce-account .tcgw-account-snapshot__trust-footnote{
	margin-top:14px;
	opacity:.8;
}
.woocommerce-account .tcgw-account-chat{
	display:grid;
	gap:14px;
}
.woocommerce-account .tcgw-account-chat__messages{
	max-height:420px;
	overflow:auto;
	display:grid;
	gap:12px;
	padding-right:6px;
}
.woocommerce-account .tcgw-account-chat__message{
	display:grid;
	grid-template-columns:42px minmax(0,1fr);
	gap:10px;
	align-items:start;
}
.woocommerce-account .tcgw-account-chat__avatar{
	width:42px;
	height:42px;
	border-radius:999px;
	object-fit:cover;
	display:block;
}
.woocommerce-account .tcgw-account-chat__avatar--fallback{
	display:grid;
	place-items:center;
	background:rgba(255,255,255,.08);
	font-weight:700;
}
.woocommerce-account .tcgw-account-chat__bubble{
	min-width:0;
	padding:12px 14px;
	border-radius:18px;
	background:rgba(255,255,255,.05);
	border:1px solid rgba(255,255,255,.08);
}
.woocommerce-account .tcgw-account-chat__meta{
	display:flex;
	justify-content:space-between;
	gap:12px;
	font-size:.88rem;
	margin-bottom:6px;
}
.woocommerce-account .tcgw-account-chat__meta span{
	opacity:.7;
	white-space:nowrap;
}
.woocommerce-account .tcgw-account-chat__bubble p{
	margin:0;
	overflow-wrap:anywhere;
}
.woocommerce-account .tcgw-account-chat__form{
	display:grid;
	gap:10px;
}
.woocommerce-account .tcgw-account-chat__form textarea{
	min-height:88px;
	resize:vertical;
	width:100%;
	border-radius:16px;
	padding:12px 14px;
	background:rgba(255,255,255,.04);
	border:1px solid rgba(255,255,255,.12);
	color:inherit;
}
.woocommerce-account .tcgw-account-chat__actions{
	display:flex;
	justify-content:space-between;
	gap:12px;
	align-items:center;
	flex-wrap:wrap;
}
.woocommerce-account .tcgw-account-chat__hint{
	opacity:.7;
	font-size:.9rem;
}
.woocommerce-account .tcgw-account-chat__send{
	border:0;
	border-radius:999px;
	padding:10px 16px;
	font:inherit;
	cursor:pointer;
	background:rgba(255,255,255,.14);
	color:inherit;
}
.woocommerce-account .tcgw-account-chat__form.is-busy .tcgw-account-chat__send{
	opacity:.6;
	pointer-events:none;
}
@media (max-width: 767px){
	.woocommerce-account .tcgw-account-snapshot__trust-stats{
		grid-template-columns:1fr;
	}
	.woocommerce-account .tcgw-account-chat__meta{
		flex-direction:column;
		align-items:flex-start;
		gap:4px;
	}
}

/* Big Part 8 — command deck + dashboard jump rail */
.tcgw-account-snapshot .tcgw-account-commanddeck {
	margin: 0 0 20px;
	padding: 16px;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(18, 24, 38, 0.96), rgba(28, 16, 44, 0.9));
	border: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}
.tcgw-account-snapshot .tcgw-account-commanddeck__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.tcgw-account-snapshot .tcgw-account-commanddeck__head h3 {
	margin: 2px 0 0;
	font-size: 1.05rem;
	line-height: 1.15;
}
.tcgw-account-snapshot .tcgw-account-commanddeck__eyebrow {
	display: inline-block;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .72;
}
.tcgw-account-snapshot .tcgw-account-commanddeck__skin {
	appearance: none;
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.06);
	color: inherit;
	padding: 10px 14px;
	border-radius: 999px;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	white-space: nowrap;
}
.tcgw-account-snapshot .tcgw-account-commanddeck__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}
.tcgw-account-snapshot .tcgw-account-commanddeck__item {
	appearance: none;
	text-decoration: none;
	text-align: left;
	border: 1px solid rgba(255,255,255,0.08);
	background: rgba(255,255,255,0.04);
	color: inherit;
	padding: 14px;
	border-radius: 18px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	min-width: 0;
	transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tcgw-account-snapshot .tcgw-account-commanddeck__item:hover,
.tcgw-account-snapshot .tcgw-account-commanddeck__item:focus-visible,
.tcgw-account-snapshot .tcgw-account-commanddeck__item.is-active {
	transform: translateY(-2px);
	border-color: rgba(255,255,255,0.2);
	background: rgba(255,255,255,0.08);
	box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}
.tcgw-account-snapshot .tcgw-account-commanddeck__item.is-primary {
	background: linear-gradient(135deg, rgba(255, 180, 40, 0.20), rgba(255,255,255,0.08));
	border-color: rgba(255, 200, 70, 0.24);
}
.tcgw-account-snapshot .tcgw-account-commanddeck__icon {
	flex: 0 0 38px;
	height: 38px;
	border-radius: 12px;
	display: inline-grid;
	place-items: center;
	background: rgba(255,255,255,0.08);
	font-size: 18px;
}
.tcgw-account-snapshot .tcgw-account-commanddeck__body {
	display: grid;
	gap: 4px;
	min-width: 0;
}
.tcgw-account-snapshot .tcgw-account-commanddeck__body strong,
.tcgw-account-snapshot .tcgw-account-commanddeck__body small {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}
.tcgw-account-snapshot .tcgw-account-commanddeck__body small {
	opacity: .74;
	font-size: 12px;
	line-height: 1.3;
}
.tcgw-account-snapshot .tcgw-account-snapshot__subtabs {
	position: sticky;
	top: 0;
	z-index: 2;
	backdrop-filter: blur(10px);
	padding: 8px;
	border-radius: 18px;
	background: rgba(10, 14, 24, 0.62);
	margin-bottom: 14px;
}
.tcgw-account-snapshot .tcgw-account-snapshot__community-panel {
	animation: tcgwCommunityPanelIn .18s ease;
}
@keyframes tcgwCommunityPanelIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1100px) {
	.tcgw-account-snapshot .tcgw-account-commanddeck__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 782px) {
	.tcgw-account-snapshot .tcgw-account-commanddeck__head {
		flex-direction: column;
		align-items: stretch;
	}
	.tcgw-account-snapshot .tcgw-account-commanddeck__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tcgw-account-snapshot .tcgw-account-commanddeck__skin {
		width: 100%;
	}
}
@media (max-width: 560px) {
	.tcgw-account-snapshot .tcgw-account-commanddeck__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* Big Part 9: dashboard layout overhaul */
.woocommerce-account .tcgw-account-snapshot__overview {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
	gap: 16px;
	align-items: stretch;
	margin-bottom: 14px;
}
.woocommerce-account .tcgw-account-snapshot__head,
.woocommerce-account .tcgw-account-snapshot__hero {
	height: 100%;
	margin: 0;
}
.woocommerce-account .tcgw-account-snapshot__head {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.woocommerce-account .tcgw-account-snapshot__hero {
	display: grid;
	grid-template-rows: auto auto 1fr;
	align-content: start;
}
.woocommerce-account .tcgw-account-snapshot__tabs {
	position: sticky;
	top: 12px;
	z-index: 5;
	backdrop-filter: blur(12px);
	background: rgba(10,14,24,0.72);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 18px;
	padding: 8px;
	margin: 0 0 16px;
	box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}
.woocommerce-account .tcgw-account-snapshot__tab-panels {
	margin-top: 0;
}
.woocommerce-account .tcgw-account-snapshot [data-play-pane="home"] {
	display: grid;
	gap: 16px;
}
.woocommerce-account .tcgw-account-lobby-strip {
	order: 1;
	margin: 0;
}
.woocommerce-account .tcgw-account-lobby-grid {
	order: 2;
}
.woocommerce-account .tcgw-account-supergrid {
	order: 3;
	margin-top: 0;
}
.woocommerce-account .tcgw-account-commanddeck {
	order: 1;
}
.woocommerce-account .tcgw-account-snapshot__hero-title,
.woocommerce-account .tcgw-account-snapshot__head-kicker {
	letter-spacing: .12em;
}
.woocommerce-account .tcgw-account-snapshot__hero-chip {
	background: rgba(255,255,255,0.05);
	border-color: rgba(255,255,255,0.1);
}
.woocommerce-account .tcgw-account-snapshot__hero-actions a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.woocommerce-account .tcgw-account-lobby-welcome {
	margin-bottom: 12px;
}
.woocommerce-account .tcgw-account-lobby-welcome__meta {
	max-width: 62ch;
}
.woocommerce-account .tcgw-account-lobby-card--alerts {
	display: none;
}
.woocommerce-account .tcgw-account-lobby-grid {
	grid-template-columns: minmax(0,1fr) minmax(0,1fr);
}
.woocommerce-account .tcgw-account-commanddeck__grid {
	grid-template-columns: repeat(4,minmax(0,1fr));
}
.woocommerce-account .tcgw-account-commanddeck__item {
	min-height: 96px;
}
.woocommerce-account .tcgw-account-snapshot__subtabs {
	position: sticky;
	top: 78px;
}
@media (max-width: 1100px) {
	.woocommerce-account .tcgw-account-snapshot__overview {
		grid-template-columns: 1fr;
	}
	.woocommerce-account .tcgw-account-commanddeck__grid {
		grid-template-columns: repeat(3,minmax(0,1fr));
	}
}
@media (max-width: 782px) {
	.woocommerce-account .tcgw-account-snapshot__tabs {
		top: 8px;
	}
	.woocommerce-account .tcgw-account-snapshot__subtabs {
		top: 66px;
	}
	.woocommerce-account .tcgw-account-commanddeck__grid,
	.woocommerce-account .tcgw-account-lobby-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 640px) {
	.woocommerce-account .tcgw-account-commanddeck__grid,
	.woocommerce-account .tcgw-account-lobby-grid,
	.woocommerce-account .tcgw-account-lobby-strip {
		grid-template-columns: 1fr;
	}
	.woocommerce-account .tcgw-account-snapshot__head-stats {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
}

/* Group 10 visibility pass: surface community/trust/chat signals earlier */
.woocommerce-account .tcgw-account-livebridge {
	display: grid;
	grid-template-columns: repeat(4, minmax(0,1fr));
	gap: 14px;
	margin: 0 0 16px;
}
.woocommerce-account .tcgw-account-livebridge__card {
	appearance: none;
	border: 1px solid rgba(255,255,255,0.08);
	background: linear-gradient(180deg, rgba(20,26,42,0.94) 0%, rgba(12,16,24,0.96) 100%);
	border-radius: 18px;
	padding: 16px 18px;
	text-align: left;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: 0 16px 36px rgba(0,0,0,0.24);
	cursor: pointer;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.woocommerce-account .tcgw-account-livebridge__card:hover,
.woocommerce-account .tcgw-account-livebridge__card:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(115,93,255,0.5);
	box-shadow: 0 18px 40px rgba(10,8,28,0.34);
}
.woocommerce-account .tcgw-account-livebridge__card.is-live {
	background: linear-gradient(180deg, rgba(62,46,155,0.95) 0%, rgba(25,16,64,0.98) 100%);
}
.woocommerce-account .tcgw-account-livebridge__eyebrow {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-weight: 700;
	color: rgba(255,255,255,0.72);
}
.woocommerce-account .tcgw-account-livebridge__card strong {
	font-size: 15px;
	line-height: 1.28;
}
.woocommerce-account .tcgw-account-livebridge__card small {
	font-size: 12px;
	line-height: 1.45;
	color: rgba(255,255,255,0.74);
}
.woocommerce-account .tcgw-account-commanddeck {
	display: block;
	visibility: visible;
}
.woocommerce-account .tcgw-account-activity-rail__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	flex-wrap: wrap;
}
.woocommerce-account .tcgw-account-activity-rail__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(115,93,255,0.12);
	border: 1px solid rgba(115,93,255,0.24);
	font-size: 12px;
	font-weight: 700;
	color: #f3f5ff;
}
.woocommerce-account .tcgw-account-activity-rail__actions {
	display: inline-flex;
	gap: 10px;
	flex-wrap: wrap;
}
.woocommerce-account .tcgw-account-activity-rail__action {
	appearance: none;
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.04);
	color: #fff;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.woocommerce-account .tcgw-account-activity-rail__action:hover,
.woocommerce-account .tcgw-account-activity-rail__action:focus-visible {
	border-color: rgba(115,93,255,0.44);
	background: rgba(115,93,255,0.14);
}
@media (max-width: 1200px) {
	.woocommerce-account .tcgw-account-livebridge {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
}
@media (max-width: 767px) {
	.woocommerce-account .tcgw-account-livebridge {
		grid-template-columns: minmax(0,1fr);
	}
}


/* Group 11 chat-first polish */
.woocommerce-account .tcgw-account-supergrid__chatpreview{
	margin-top:16px;
}
.woocommerce-account .tcgw-account-chat--preview{
	background:linear-gradient(180deg, rgba(10,14,32,.82), rgba(7,11,24,.92));
	border:1px solid rgba(120,132,255,.18);
	border-radius:22px;
	padding:16px;
}
.woocommerce-account .tcgw-account-chat__messages--preview{
	max-height:340px;
	min-height:180px;
	padding-right:4px;
}
.woocommerce-account .tcgw-account-chat__message{
	align-items:flex-end;
}
.woocommerce-account .tcgw-account-chat__bubble{
	max-width:min(100%, 720px);
	background:rgba(12,18,38,.96);
	border:1px solid rgba(122,138,255,.16);
	box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.woocommerce-account .tcgw-account-chat__message:nth-child(even) .tcgw-account-chat__bubble{
	background:linear-gradient(180deg, rgba(63,42,153,.78), rgba(31,22,76,.92));
	border-color:rgba(144,122,255,.28);
}
.woocommerce-account .tcgw-account-chat__starter{
	display:flex;
	flex-direction:column;
	justify-content:center;
	min-height:180px;
	border:1px dashed rgba(126,139,255,.18);
	border-radius:18px;
	padding:18px;
	color:#cad6ff;
	background:rgba(9,13,28,.62);
}
.woocommerce-account .tcgw-account-chat__starter strong{
	font-size:18px;
	margin-bottom:6px;
	color:#fff;
}
.woocommerce-account .tcgw-account-chat__preview-actions{
	display:flex;
	justify-content:flex-end;
	margin-top:12px;
}
.woocommerce-account .tcgw-account-chat__jump{
	border:0;
	border-radius:999px;
	padding:12px 18px;
	font-weight:700;
	background:linear-gradient(135deg,#6d4cff,#8a63ff);
	color:#fff;
	cursor:pointer;
	box-shadow:0 10px 24px rgba(109,76,255,.24);
}
.woocommerce-account .tcgw-account-livebridge__card small,
.woocommerce-account .tcgw-account-snapshot__trust-footnote,
.woocommerce-account .tcgw-account-mega-copy{
	word-break:break-word;
}

/* Group 12 clarity + chat placement */
.woocommerce-account .tcgw-account-livebridge__card{
	text-decoration:none;
	cursor:pointer;
}
.woocommerce-account .tcgw-account-livebridge__card strong{
	line-height:1.15;
}
.woocommerce-account .tcgw-account-supergrid__chatpreview{
	grid-column:1 / -1;
	margin-top:0;
}
.woocommerce-account .tcgw-account-chat__preview-actions{
	justify-content:space-between;
	align-items:center;
	gap:12px;
}
.woocommerce-account .tcgw-account-chat__jump,
.woocommerce-account .tcgw-account-activity-rail__action{
	cursor:pointer;
}


.woocommerce-account .tcgw-account-lobby-card__jump {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	padding:10px 14px;
	border-radius:999px;
	background:linear-gradient(135deg,#6f57ff 0%,#5039dd 100%);
	border:1px solid rgba(111,87,255,.42);
	color:#fff;
	font-weight:700;
	font-size:12px;
	cursor:pointer;
	box-shadow:0 8px 18px rgba(88,66,255,.2);
}
.woocommerce-account .tcgw-account-lobby-card__jump:hover,
.woocommerce-account .tcgw-account-lobby-card__jump:focus-visible {
	transform:translateY(-1px);
	outline:none;
}
.woocommerce-account .tcgw-account-lobby-alerts__chip {
	cursor:pointer;
}


/* Group 15 fix: stop community content flashing on first paint and keep the main tab rail visible */
.woocommerce-account .tcgw-account-snapshot--booting .tcgw-account-commanddeck,
.woocommerce-account .tcgw-account-snapshot--booting .tcgw-account-snapshot__leaderboard,
.woocommerce-account .tcgw-account-snapshot--booting .tcgw-account-snapshot__community-trust,
.woocommerce-account .tcgw-account-snapshot--booting .tcgw-account-snapshot__community-chat,
.woocommerce-account .tcgw-account-snapshot--booting .tcgw-account-snapshot__freehub,
.woocommerce-account .tcgw-account-snapshot--booting .tcgw-account-snapshot__graph,
.woocommerce-account .tcgw-account-snapshot--booting .tcgw-account-snapshot__grid,
.woocommerce-account .tcgw-account-snapshot--booting .tcgw-account-snapshot__insights,
.woocommerce-account .tcgw-account-snapshot--booting .tcgw-account-snapshot__alertshell {
  display: none !important;
}

.woocommerce-account .tcgw-account-snapshot__tabs {
  position: sticky;
  top: 10px;
  z-index: 12;
  margin: 0 0 14px !important;
  padding: 8px !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(10,14,24,0.88);
  backdrop-filter: blur(10px);
}

.woocommerce-account .tcgw-account-snapshot__tab-panels {
  min-width: 0;
}

.woocommerce-account .tcgw-account-snapshot__community-panel[hidden] {
  display: none !important;
}


/* Group 16 fix: keep community hub and top tab rail visible */
.woocommerce-account .tcgw-account-lobby-card--community {
  display: block !important;
}

.woocommerce-account .tcgw-account-snapshot__tabs {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 58px;
  align-items: center;
}

.woocommerce-account .tcgw-account-snapshot__tabs .tcgw-account-snapshot__tab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  visibility: visible !important;
  opacity: 1 !important;
}

.woocommerce-account .tcgw-account-commanddeck {
  display: block !important;
}

.woocommerce-account .tcgw-account-snapshot__community-panels {
  min-width: 0;
}


/* Group 18: use tab switching by visibility, not full dashboard node re-homing */
.woocommerce-account .tcgw-account-snapshot[data-active-top-tab="home"] .tcgw-account-snapshot__tab-panels {
  margin-top: 0;
}

.woocommerce-account .tcgw-account-snapshot #tcgw-panel-home {
  display: none !important;
}

.woocommerce-account .tcgw-account-snapshot__tab-panels > [hidden] {
  display: none !important;
}

/* Home content blocks live directly in the shell */


/* Keep top tabs obvious and panel content tight */



/* Group 20 – real non-home tab shells and empty states */
.woocommerce-account .tcgw-account-tab-shell {
  display: grid;
  gap: 18px;
}
.woocommerce-account .tcgw-account-tab-shell__head {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(12,19,36,0.98), rgba(9,13,24,0.96));
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.woocommerce-account .tcgw-account-tab-shell__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #89a8ff;
  font-weight: 800;
}
.woocommerce-account .tcgw-account-tab-shell__head h3 {
  margin: 0 0 8px;
}
.woocommerce-account .tcgw-account-tab-shell__head p {
  margin: 0;
  color: rgba(255,255,255,0.74);
}
.woocommerce-account .tcgw-account-tab-shell__body {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.woocommerce-account .tcgw-account-tab-shell__empty {
  padding: 20px 22px;
  border: 1px dashed rgba(137,168,255,0.22);
  border-radius: 18px;
  background: rgba(9,14,26,0.78);
}
.woocommerce-account .tcgw-account-tab-shell__empty h4 {
  margin: 0 0 8px;
}
.woocommerce-account .tcgw-account-tab-shell__empty p {
  margin: 0;
  color: rgba(255,255,255,0.74);
}
.woocommerce-account .tcgw-account-snapshot__community-panel {
  display: grid;
  gap: 18px;
}


/* Group 21 – Community shell structure */
.woocommerce-account .tcgw-account-community-shell {
  display: grid;
  gap: 18px;
}
.woocommerce-account .tcgw-account-community-shell__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10,18,35,0.98), rgba(7,12,24,0.96));
  box-shadow: 0 10px 34px rgba(0,0,0,0.24);
}
.woocommerce-account .tcgw-account-community-shell__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8fb3ff;
  font-weight: 800;
}
.woocommerce-account .tcgw-account-community-shell__hero h3 {
  margin: 0 0 8px;
}
.woocommerce-account .tcgw-account-community-shell__hero p {
  margin: 0;
  color: rgba(255,255,255,0.74);
}
.woocommerce-account .tcgw-account-community-shell__stats {
  display: grid;
  gap: 12px;
}
.woocommerce-account .tcgw-account-community-stat {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(13,20,37,0.9);
}
.woocommerce-account .tcgw-account-community-stat__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9fb7ff;
  font-weight: 800;
}
.woocommerce-account .tcgw-account-community-stat strong {
  display: block;
}
@media (max-width: 900px) {
  .woocommerce-account .tcgw-account-community-shell__hero {
    grid-template-columns: 1fr;
  }
}


/* Group 23 – remove oversized quick jump block from Home */
.woocommerce-account .tcgw-account-commanddeck {
  display: none !important;
}


/* Group 24 – server-rendered non-home panels */
.woocommerce-account .tcgw-account-snapshot__tab-panel[data-snapshot-panel="home"] {
  display: none !important;
}
.woocommerce-account .tcgw-account-panel-stack,
.woocommerce-account .tcgw-account-board-grid,
.woocommerce-account .tcgw-account-trust-grid,
.woocommerce-account .tcgw-account-chat-list,
.woocommerce-account .tcgw-account-alert-list {
  display: grid;
  gap: 16px;
}
.woocommerce-account .tcgw-account-board-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.woocommerce-account .tcgw-account-panel-card {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,24,39,0.94), rgba(9,13,22,0.96));
  box-shadow: 0 12px 34px rgba(0,0,0,0.22);
}
.woocommerce-account .tcgw-account-panel-card__head {
  margin: 0 0 14px;
}
.woocommerce-account .tcgw-account-panel-card__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #9fb7ff;
  font-weight: 800;
}
.woocommerce-account .tcgw-account-panel-card__head h4 {
  margin: 0;
}
.woocommerce-account .tcgw-account-board-card {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(13,18,31,0.88);
}
.woocommerce-account .tcgw-account-board-card h5 {
  margin: 0 0 10px;
}
.woocommerce-account .tcgw-account-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.woocommerce-account .tcgw-account-board-list li,
.woocommerce-account .tcgw-account-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.woocommerce-account .tcgw-account-board-empty {
  margin: 0;
  color: rgba(255,255,255,0.74);
}
.woocommerce-account .tcgw-account-trust-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.woocommerce-account .tcgw-account-trust-card {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(13,18,31,0.88);
}
.woocommerce-account .tcgw-account-trust-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}
.woocommerce-account .tcgw-account-trust-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.8);
}
.woocommerce-account .tcgw-account-chat-row {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  gap: 12px;
  align-items: start;
}
.woocommerce-account .tcgw-account-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(115,93,255,0.22);
}
.woocommerce-account .tcgw-account-chat-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13,18,31,0.88);
  border: 1px solid rgba(255,255,255,0.08);
}
.woocommerce-account .tcgw-account-chat-bubble strong {
  display: block;
}
.woocommerce-account .tcgw-account-chat-meta {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  margin-top: 2px;
}
.woocommerce-account .tcgw-account-chat-bubble p {
  margin: 8px 0 0;
}
.woocommerce-account .tcgw-account-alert-list {
  gap: 12px;
}
.woocommerce-account .tcgw-account-alert-row {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13,18,31,0.88);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: inherit;
  flex-wrap: wrap;
}
.woocommerce-account .tcgw-account-alert-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9fb7ff;
  font-weight: 800;
  min-width: 100%;
}
@media (max-width: 900px) {
  .woocommerce-account .tcgw-account-board-grid,
  .woocommerce-account .tcgw-account-trust-grid {
    grid-template-columns: 1fr;
  }
}
