/*
  Economy widgets module.
  Extracted from the former modules/30-market-economy.css; keep after 30-market-economy.css.
*/

/* =========================
   Home dashboard
   ========================= */
.homeHero{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; padding: 16px; }
@media (max-width: 980px){ .homeHero{ grid-template-columns: 1fr; } }

.homeHero__brand{ margin-bottom: 10px; }
.homeHero__title{ font-size: 26px; font-weight: 950; letter-spacing:.2px; }
.homeHero__sub{ color: var(--text700); font-size: 13px; margin-top: 4px; }

.homeKpis{ display:flex; flex-wrap:wrap; gap: 8px; margin-top: 10px; }
.homeActions{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 14px; }
.homeIpLine{ margin-top: 12px; }

.homeIpNote{ margin-left: 8px; opacity: .85; }

.homeOnlineList{ display:flex; flex-direction:column; gap: 8px; padding: 12px; }
.homeOnlineRow{ display:flex; align-items:center; gap: 10px; padding: 10px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.16); cursor:pointer; }
.homeOnlineRow:hover{ border-color: rgba(255,255,255,.18); background: rgba(0,0,0,.22); transform: translateY(-1px); }
.homeOnlineAva{ width: 34px; height: 34px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.homeOnlineName{ font-weight: 900; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.homeOnlineStatus{ margin-left: auto; font-size: 12px; color: var(--text700); font-weight: 800; }

.homeQuickGrid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.homeQuick{ display:flex; align-items:center; gap: 12px; padding: 12px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.14); }
.homeQuick:hover{ border-color: rgba(240,140,40,.35); background: rgba(240,140,40,.06); transform: translateY(-1px); }
.homeQuick__icon{ width: 38px; height: 38px; display:flex; align-items:center; justify-content:center; border-radius: 14px; background: rgba(0,0,0,.20); border: 1px solid rgba(255,255,255,.10); }
.homeQuick__text{ display:flex; flex-direction:column; gap: 2px; min-width: 0; }
.homeModeSwitch{ margin-top: 10px; }
.homeModeSwitch .modeSwitch{ justify-content: flex-start; }

/* =========================
   Profile sections
   ========================= */
.profileSection{ margin-top: 12px; }
.profileSection__head{ display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; }
.profileSection__title{ font-weight: 950; letter-spacing:.2px; }
.profileMyShopsList{ margin-top: 10px; display:flex; flex-direction:column; gap: 8px; }
.profileMyShopRow{ display:flex; align-items:center; justify-content:space-between;
 gap: 12px; padding: 10px 12px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.14); }
.profileMyShopName{ font-weight: 900; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.profileMyShopMeta{ color: var(--text700); font-size: 12px; font-weight: 800; white-space: nowrap; }
.profileQuickActions{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 10px; }

/* My Bases tab */
.baseMiniList{ display:flex; flex-direction:column; gap: 10px; }
.baseMiniRow{ display:flex; align-items:center; gap: 10px; padding: 10px 12px; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.14); text-decoration:none; color: inherit; }
.baseMiniRow:hover{ border-color: rgba(240,140,40,.32); background: rgba(240,140,40,.06); transform: translateY(-1px); }
.baseMiniRow__img{ width: 84px; height: 52px; border-radius: 12px; overflow:hidden; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); }
.baseMiniRow__img img{ width:100%; height:100%; object-fit: cover; display:block; }
.baseMiniRow__main{ display:flex; flex-direction:column; gap: 2px; min-width: 0; }
.baseMiniRow__title{ font-weight: 950; letter-spacing: .2px; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.baseMiniRow__meta{ font-size: 12px; color: var(--text700); font-weight: 800; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }

.baseMiniRowWrap{ display:flex; gap: 10px; align-items: stretch; }
.baseMiniRowWrap .baseMiniRow{ flex: 1; min-width: 0; }
.baseMiniRowActions{ display:flex; align-items:center; }
.baseMiniRowActions .btn{ white-space: nowrap; }
.baseMiniRowActions .btn[disabled]{ opacity: .55; cursor: not-allowed; }
@media (max-width: 520px){
  .baseMiniRowWrap{ flex-direction: column; }
  .baseMiniRowActions{ justify-content: flex-end; }
}



/* Economy widget */
.ecoBig{ display:flex; flex-direction:column; gap:4px; padding:10px 12px; border:1px solid var(--border); border-radius: var(--r2); background: rgba(0,0,0,.14); }
.ecoBig__label{ font-size:12px; color: var(--text700); }
.ecoBig__value{ font-size:22px; font-weight:800; letter-spacing:.3px; }
.ecoGrid{ display:grid; grid-template-columns:1fr; gap:8px; margin-top:10px; }
.ecoHint{ margin-top:10px; display:flex; align-items:center; gap:10px; }
.ecoHint .btn-ghost{ padding:6px 10px; }



/* Rich tiers */
.richable[data-rich-tier]{
  position: relative;
}

.richable[data-rich-tier]::after{
  content: attr(data-rich-label);
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  letter-spacing: .2px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  opacity: .92;
  pointer-events: none;
}

@keyframes richPulse {
  0% { filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
  50% { filter: drop-shadow(0 0 10px rgba(255,255,255,.12)); }
  100% { filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
}

.rich-20000 { box-shadow: 0 0 0 1px rgba(120, 200, 255, .12) inset; }
.rich-20000::after { background: rgba(120,200,255,.10); border-color: rgba(120,200,255,.18); }

.rich-50000 { box-shadow: 0 0 0 1px rgba(120, 255, 170, .12) inset; }
.rich-50000::after { background: rgba(120,255,170,.10); border-color: rgba(120,255,170,.18); }

.rich-100000 { box-shadow: 0 0 0 1px rgba(100, 255, 255, .14) inset; }
.rich-100000::after { background: rgba(100,255,255,.10); border-color: rgba(100,255,255,.20); }

.rich-300000 { animation: richPulse 3.5s ease-in-out infinite; box-shadow: 0 0 0 1px rgba(255, 210, 120, .14) inset; }
.rich-300000::after { background: rgba(255,210,120,.10); border-color: rgba(255,210,120,.22); }

.rich-500000 { animation: richPulse 2.8s ease-in-out infinite; box-shadow: 0 0 0 1px rgba(255, 120, 210, .16) inset; }
.rich-500000::after { background: rgba(255,120,210,.10); border-color: rgba(255,120,210,.24); }

/* Rich pill in profile */
.richPill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.richPill-20000 { border-color: rgba(120,200,255,.22); background: rgba(120,200,255,.10); }
.richPill-50000 { border-color: rgba(120,255,170,.22); background: rgba(120,255,170,.10); }
.richPill-100000 { border-color: rgba(100,255,255,.22); background: rgba(100,255,255,.10); }
.richPill-300000 { border-color: rgba(255,210,120,.26); background: rgba(255,210,120,.10); }
.richPill-500000 { border-color: rgba(255,120,210,.28); background: rgba(255,120,210,.10); }

/* Economy totals cards */
.totalsGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px){
  .totalsGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .totalsGrid{ grid-template-columns: 1fr; }
}
.metricCard{
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  padding: 12px;
}
.metricName{ font-size: 12px; opacity: .75; }
.metricVal{ font-size: 22px; font-weight: 800; margin-top: 4px; }
.metricHint{ font-size: 12px; opacity: .6; margin-top: 4px; }

/* Rich grids */
.richGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
@media (max-width: 980px){ .richGrid{ grid-template-columns: 1fr; } }

.richCard{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  text-align:left;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  cursor:pointer;
}
.richCard:hover{ border-color: rgba(255,255,255,.12); }

.richAvatar{ width: 36px; height: 36px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; }
.richAvatar img{ width:100%; height:100%; object-fit: cover; display:block; }

.richMeta{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.richName{ font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.richLabel{ font-size: 12px; opacity: .75; }

.richRank{ margin-left:auto; opacity: .55; font-weight: 700; }

/* Stats rich list */
.richTopGrid{
  display:flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.richRow{
  display:flex;
  justify-content:space-between;
   align-items: center;
  gap: 10px;
  width:100%;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  cursor:pointer;
}
.richRow:hover{ border-color: rgba(255,255,255,.12); }
.richRowLeft{ display:flex; align-items:center; gap:10px; min-width:0; }
.richRowRank{ width: 26px; opacity:.6; text-align:right; }
.richRowAvatar{ width: 28px; height: 28px; border-radius: 10px; overflow:hidden; flex:0 0 auto; }
.richRowAvatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.richRowName{ font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.richRowBadge{ font-size: 12px; opacity:.75; }
.richRowRight{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.richRowAmount{ font-weight:800; }


/* Mini table (profile rads) */
.miniTable{ display:flex; flex-direction:column; gap:6px; }
.miniRow{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.miniKey{ opacity:.7; font-size:12px; }
.miniVal{ font-weight:800; }
.miniNote{ opacity:.55; font-size:12px; }

/* Events table (profile rads) */
.eventsTable{ display:flex; flex-direction:column; gap:8px; }
.evRow{
  display:grid;
  grid-template-columns: 120px 90px 1.2fr 1fr;
  gap: 10px;
  align-items:center;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
}
@media (max-width: 820px){
  .evRow{ grid-template-columns: 110px 80px 1fr; }
  .evWhere{ display:none; }
}
.evTs{ font-size:12px; opacity:.65; }
.evAmt{ font-weight:900; }
.evMeta{ font-size:12px; opacity:.8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.evWhere{ font-size:12px; opacity:.65; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.heatVal{ opacity: .75; margin-top: 2px; }


/* -------------------------
   Player page (Stage 1: HERO)
   ------------------------- */
.playerPage .panel__head { margin-bottom: 14px; }

.playerHero__card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:14px;
  border-radius:16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.playerHero__avatar{
  width:84px;
  height:84px;
  border-radius:14px;
  overflow:hidden;
  flex:0 0 auto;
  background: rgba(255,255,255,0.06);
}
.playerHero__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.playerHero__body{ flex:1 1 auto; min-width:0; }

.playerHero__top{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
   flex-wrap:wrap;
}

.playerHero__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.playerLikes{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.likeBtn{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font-size:14px;
  cursor:pointer;
  padding:0;
  line-height:1;
  opacity:0.9;
  transform: translateY(-0.5px);
}
.likeBtn:hover{ opacity:1; }
.likeBtn:disabled{ cursor:not-allowed; opacity:0.5; }
.likeBtn.is-on{ filter: drop-shadow(0 0 10px rgba(196,59,47,.35)); }
.likeBtn.is-loading{ opacity:0.6; }

.likeCount{
  font-weight:900;
  font-size:12px;
  opacity:0.9;
}

/* -------------------------
   Likes-based profile glow (dynamic intensity)
   - JS sets CSS vars: --lg-i (0..1), --lg-o, --lg-a, --lg-wa, --lg-glow, --lg-blur, --lg-speed, --lg-pulse
   - Applied to clickable player cards ([data-player-open]) and player hero card (.playerHero__card)
   ------------------------- */
.likeGlow{
  position:relative;
  isolation:isolate;
  contain: paint;
  /*
    IMPORTANT: the glow uses blurred/animated pseudo-elements.
    On compact tiles/rows (rank tiles, monitoring lists) it can visually spill outside.
    We clip it to the card bounds to keep the effect perfectly "inside".
    (Element's own box-shadow is NOT clipped by overflow.)
  */
  overflow:hidden;
}
.likeGlow::before{
  content:'';
  position:absolute;
  inset: calc(-2px + var(--lg-c,0) * 3px);
  border-radius:inherit;
  pointer-events:none;
  z-index:0;
}
.likeGlow::before{
  /*
    Single pseudo-element on purpose:
    Some cards (e.g. podium #1) already use ::after, so we avoid collisions.
    Layer 1-2: stationary inner glow
    Layer 3: moving shine (we animate only the 3rd layer via background-position)
  */
  background:
    radial-gradient(circle at 18% 18%, rgba(196,59,47,var(--lg-a,.20)) 0%, rgba(196,59,47,0) 60%),
    radial-gradient(circle at 82% 82%, rgba(255,255,255,var(--lg-wa,.10)) 0%, rgba(255,255,255,0) 58%),
    linear-gradient(120deg,
      rgba(196,59,47,0) 0%,
      rgba(196,59,47,.30) 38%,
      rgba(255,255,255,.58) 50%,
      rgba(196,59,47,.30) 62%,
      rgba(196,59,47,0) 100%);
  background-size: 100% 100%, 100% 100%, var(--lg-shine-size, 220% 220%);
  background-position: 0 0, 0 0, var(--lg-shine-start, -140% 0);
  opacity: var(--lg-o, 0);
  filter: blur(calc(var(--lg-blur, 14px) * (1 - var(--lg-c,0) * .42)));
  mix-blend-mode: screen;
  animation:
    likeShine var(--lg-speed, 9s) linear infinite,
    likePulse var(--lg-pulse, 4.6s) ease-in-out infinite;
}
.likeGlow > *{
  position:relative;
  z-index:1;
}


/* ------------------------------------------------------------
   Likes glow РІР‚вЂќ compact player rows (monitoring/telemetry + home online)
   Problem: the sweeping shine/blur can visually "spill" outside narrow rows,
   especially inside scroll containers (telemetry list / monitoring widget).
   Fix: clip glow to row bounds + slightly tighten blur/glow for these rows.
------------------------------------------------------------ */
.telemetryRow.likeGlow,
.homeOnlineRow.likeGlow{
  /* Override base .likeGlow clipping: compact rows use inset:0 pseudo-element,
     so we don't need overflow:hidden (it can trigger scroll-container artifacts). */
  overflow: visible;
  /* IMPORTANT: do NOT use padding-box here.
     padding-box makes the background stop at the padding edge, which visually
     looks like the row "shrinks" (the border becomes a visible inner gutter),
     especially noticeable on the Home page where panels are flush-aligned.
     border-box keeps the fill consistent with non-glow rows. */
  background-clip: border-box;
  isolation: auto;
}

/* Keep the moving shine inside the rounded shape */
.telemetryRow.likeGlow::before,
.homeOnlineRow.likeGlow::before{
  /* Small rows live inside scroll/overflow containers: keep glow cheap + stable */
  inset: 0;
  filter: none;
  mix-blend-mode: normal;
  contain: none;
  /* Lightweight shimmer + pulse (no blur, no blend) to avoid "squeeze" artifacts on Home */
  animation:
    likeRowShine var(--lg-speed, 8s) linear infinite,
    likeRowPulse var(--lg-pulse, 4.2s) ease-in-out infinite;
  background-image:
    radial-gradient(120% 80% at 10% 50%, rgba(255,255,255,.16), rgba(255,255,255,0) 55%),
    linear-gradient(90deg, rgba(255,120,80,0), rgba(255,120,80,.55), rgba(255,120,80,0));
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, -140% 0;
  /* Opacity scaled by intensity (via JS var --lg-i) */
  opacity: calc(0.08 + var(--lg-i,0) * 0.42);
}


/* Compact rows: disable paint containment to avoid rendering artifacts inside
   scroll containers (home sidebar). Overflow is already clipped by the row. */
.telemetryRow.likeGlow,
.homeOnlineRow.likeGlow{
  contain: none;
}

/* No ::after here (we use a single pseudo element for compatibility). */


/* ------------------------------------------------------------
   Likes glow РІР‚вЂќ rank tiles/rows (Top lists)
   Top-3 podium cards are big (and already overflow:hidden).
   The tiles/rows below are smaller and sit close to each other,
   so we tighten the blur/glow a bit to prevent any visual "leak".
------------------------------------------------------------ */
.rankTile.likeGlow,
.rankRow.likeGlow,
.topCard.likeGlow{
  overflow:hidden;
}

.rankTile.likeGlow::before,
.rankRow.likeGlow::before,
.topCard.likeGlow::before{
  inset:0;
  filter: blur(calc(var(--lg-blur, 14px) * .55));
  opacity: calc(var(--lg-o, 0) * .94);
}

/* Vote modal rows are compact too */
.voteRow.likeGlow::before{
  inset:0;
  filter: blur(calc(var(--lg-blur, 14px) * .55));
  opacity: calc(var(--lg-o, 0) * .94);
}

/* (single pseudo element, so no ::after overrides) */


/* Avatar glow (chat + online lists + cards)
   - same JS vars: --lg-i, --lg-a, --lg-wa, --lg-glow, --lg-pulse
   - applied to: .webchatAvatar, .homeOnlineAva, .telemetryAvatar, .podiumCard__ava, .rankTile__ava, .playerHero__avatar, etc.
*/
.likeGlowAva{
  box-shadow:
    0 0 calc(var(--lg-glow, 18px) * .70) rgba(196,59,47,var(--lg-a,.20)),
    0 0 calc(var(--lg-glow, 18px) * .38) rgba(255,255,255,var(--lg-wa,.10));
  filter: saturate(calc(1 + var(--lg-i,0) * .85)) brightness(calc(1 + var(--lg-i,0) * .28));
  transition: box-shadow .22s ease, filter .22s ease;
  will-change: box-shadow, filter, transform;
  animation: likeAvaPulse var(--lg-pulse, 4.6s) ease-in-out infinite;
}

/* Compact avatar contexts: keep the aura tight so it doesn't touch tile edges */
.rankRow__ava.likeGlowAva,
.telemetryAvatar.likeGlowAva,
.homeOnlineAva.likeGlowAva{
  box-shadow:
    0 0 calc(var(--lg-glow, 18px) * .55) rgba(196,59,47,var(--lg-a,.20)),
    0 0 calc(var(--lg-glow, 18px) * .30) rgba(255,255,255,var(--lg-wa,.10));
}

/* Telemetry/Home compact lists: keep aura static (no pulsing) to avoid flicker/"squeeze" in scroll rows */
.telemetryAvatar.likeGlowAva,
.homeOnlineAva.likeGlowAva{
  animation: none;
  will-change: box-shadow, filter;
}
.rankTile__ava.likeGlowAva{
  box-shadow:
    0 0 calc(var(--lg-glow, 18px) * .45) rgba(196,59,47,var(--lg-a,.20)),
    0 0 calc(var(--lg-glow, 18px) * .24) rgba(255,255,255,var(--lg-wa,.10));
}
@media (prefers-reduced-motion: reduce){
  .likeGlowAva{ animation: none; }
  .likeGlow::before{ animation: none; }
}
@keyframes likeAvaPulse{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(calc(1 + var(--lg-i,0) * .035)); }
}

@keyframes likeShine{
  0%{ background-position: 0 0, 0 0, var(--lg-shine-start, -140% 0); }
  100%{ background-position: 0 0, 0 0, var(--lg-shine-end, 140% 0); }
}
@keyframes likePulse{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.006); }
}

/* Safe shimmer for compact monitoring rows (no blur / no blend-mode).
   We animate background-position only on the 2nd layer (linear gradient) and a gentle opacity pulse.
   This avoids the Chromium scroll-container artifacts that were visible on the Home page. */
@keyframes likeRowShine{
  0%{ background-position: 0 0, -140% 0; }
  100%{ background-position: 0 0, 140% 0; }
}
@keyframes likeRowPulse{
  0%,100%{ opacity: calc(0.07 + var(--lg-i,0) * 0.32); }
  50%{ opacity: calc(0.12 + var(--lg-i,0) * 0.52); }
}


.playerHero__name{
  font-size:20px;
  font-weight:700;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:100%;
}

.playerHero__status{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.playerHero__meta{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
}
.playerHero__metaItem{
  display:flex;
  gap:8px;
  align-items:baseline;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(255,255,255,0.06);
  padding:8px 10px;
  border-radius:12px;
}
.playerHero__metaItem .k{
  opacity:0.75;
  font-size:12px;
}
.playerHero__metaItem .v{
  font-weight:700;
  font-size:14px;
}

/* ---------------------------------
   Player page: tabs (plugin-like)
----------------------------------*/
.playerTabs{
  margin-top:14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.playerTabBtn{
  appearance:none;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: inherit;
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:0.06em;
  text-transform:uppercase;
  cursor:pointer;
}
.playerTabBtn:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}
.playerTabBtn.is-active{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}

.playerTabPanels{ margin-top:12px; }
.playerTabPanel__head{ margin: 2px 0 10px; }
.playerTabPanel__head .h2{ font-size:16px; font-weight:900; }

/* Resources simple sections */
.playerResources{ display:flex; flex-direction:column; gap:14px; }
.simpleSection{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.10);
  border-radius:14px;
  padding:12px;
}
.simpleSection__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
   gap:10px;
  margin-bottom:10px;
}
.simpleSection__title{ font-weight:900; }
.simpleSection__total{ opacity:0.75; font-size:12px; }
.simpleSection__grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap:10px; }

/* Building panel */
.playerBuilding{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:14px;
}
.playerBuilding.playerBuilding--one{ grid-template-columns: 1fr; }

.buildingSubHead{
  margin: 12px 0 8px;
  font-weight: 900;
  font-size: 13px;
  opacity: .85;
}
.buildingHero{
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.10), rgba(0,0,0,0.08));
  border-radius:20px;
  padding:16px;
  min-height:220px;
}
.buildingHero__title{ font-weight:900; font-size:16px; }
.buildingHero__hint{ opacity:0.75; margin-top:6px; font-size:12px; }
.buildingList{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.10);
  border-radius:20px;
  padding:12px;
}
.buildingRow{ display:flex; align-items:center; gap:10px; padding:8px 6px; }
.buildingRow__icon{ width:28px; height:28px; border-radius:8px; overflow:hidden; flex:0 0 auto; background: rgba(255,255,255,0.04); }
.buildingRow__icon img{ width:100%; height:100%; object-fit:contain; display:block; }
.buildingRow__name{ font-weight:800; }
.buildingRow__barWrap{ flex:1 1 auto; }
.buildingRow__bar{ height:8px; border-radius:999px; background: rgba(255,255,255,0.08); overflow:hidden; }
.buildingRow__bar > span{ display:block; height:100%; background: rgba(255,255,255,0.22); }
.buildingRow__meta{ text-align:right; min-width:74px; }
.buildingRow__meta .v{ font-weight:900; }
.buildingRow__meta .p{ opacity:0.75; font-size:12px; }

/* Accuracy panel */
.playerAccuracy{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.accuracyCard{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.10);
  border-radius:20px;
  padding:12px;
}
.accuracySilhouette{
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(110% 120% at 50% 0%, rgba(255,255,255,0.08), rgba(0,0,0,0.10));
  border-radius:20px;
  padding:12px;
  position:relative;
  min-height:260px;
}
.accTag{
  position:absolute;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,0.30);
  border:1px solid rgba(255,255,255,0.10);
  font-size:12px;
  font-weight:900;
}
.accTag small{ opacity:0.75; font-weight:700; }

.accTag--head{ top: 12px; left: 50%; transform: translateX(-50%); }
.accTag--chest{ top: 70px; left: 18px; }
.accTag--stomach{ top: 110px; right: 18px; }
.accTag--arms{ top: 160px; left: 18px; }
.accTag--legs{ bottom: 18px; left: 50%; transform: translateX(-50%); }

@media (max-width: 900px){
  .playerBuilding{ grid-template-columns: 1fr; }
  .playerAccuracy{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .playerHero__card{ padding:12px; }
  .playerHero__avatar{ width:72px; height:72px; border-radius:16px; }
  .playerHero__name{ font-size:18px; }
}





/* Player panels: Building & Accuracy (v111 polish) */
.statTiles--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.statTile__icon--ghost{ width:36px; height:36px; border-radius:14px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.10); }

.buildingList--panel{ margin-top: 12px; }

.accuracyGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:start;
}
.accuracyMain, .accuracyBreakdown{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.10);
  border-radius:20px;
  padding:12px;
}
.accBreakHead{ font-weight: 900; margin-bottom: 10px; }

.accMeter{
  --size: 160px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: conic-gradient(rgba(255,255,255,0.28) calc(var(--acc) * 1%), rgba(255,255,255,0.08) 0);
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto;
  position:relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.accMeter__inner{
  width: calc(var(--size) - 26px);
  height: calc(var(--size) - 26px);
  border-radius: 999px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.10);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.accMeter__value{ font-size: 28px; font-weight: 1000; line-height: 1; }
.accMeter__label{ opacity: 0.75; font-weight: 800; margin-top: 4px; font-size: 12px; }

.accRow{ display:flex; align-items:center; justify-content:space-between;
 gap:10px; padding: 8px 0; }
.accRow + .accRow{ border-top: 1px solid rgba(255,255,255,0.06); }
.accRow__l{ display:flex; align-items:center; gap:8px; min-width: 120px; }
.accRow__dot{ width:8px; height:8px; border-radius:99px; background: rgba(255,255,255,0.20); }
.accRow__icon{ width:18px; height:18px; object-fit:contain; opacity:0.9; }
.accRow__name{ font-weight: 900; }
.accRow__pctInline{ font-weight: 900; opacity: 0.9; margin-left: 2px; }
.accRow__r{ display:flex; align-items:center; gap:10px; flex: 1 1 auto; justify-content:flex-end; }
.accRow__bar{ height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow:hidden; width: 160px; max-width: 45vw; }
.accRow__bar > span{ display:block; height:100%; background: rgba(255,255,255,0.22); }
.accRow__pct{ width: 46px; text-align:right; font-weight: 900; opacity: 0.85; }

@media (max-width: 900px){
  .statTiles--3{ grid-template-columns: 1fr; }
  .accuracyGrid{ grid-template-columns: 1fr; }
  .accRow__bar{ width: 100%; max-width: none; }
}

/* ---------------------------------
   Player page: quick tiles + sections
----------------------------------*/
.playerQuick { margin-top: 14px; }
.statTiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.statTiles.statTiles--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.playerSections { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }

.playerFeatured { margin-top: 14px; }
.playerFeatured__title { font-weight: 900; font-size: 14px; margin: 4px 0 10px; }
.itemTiles--featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.itemTile--featured .itemTile__img { height: 44px; }
.itemTile--featured .itemTile__img img { max-height: 44px; }

.playerSection { background: var(--bg800); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.playerSection__head { display: flex; align-items: baseline; justify-content:space-between;
 gap: 12px; margin-bottom: 12px; }

.playerSection__toggle{ appearance:none; border:1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: inherit; width: 28px; height: 28px; border-radius: 10px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; flex: 0 0 auto; }
.playerSection__toggle:hover{ background: rgba(255,255,255,0.09); }
.playerSection.is-collapsed .playerSection__toggle{ transform: rotate(-90deg); }

.playerSection.is-collapsed .playerSection__grid{ display:none; }
.playerSection.is-collapsed .playerSection__actions{ display:none !important; }

.playerGlobalSearch { margin: 12px 0 16px; }
.playerGlobalSearch .input { width: 100%; max-width: 520px; }

.playerSection__tools { display: flex; align-items: center; gap: 10px; }
.playerSection__title { font-weight: 900; letter-spacing: .2px; }
.playerSection__search{ flex: 1 1 auto; display:flex; justify-content:center; }
.playerSection__search .input{ width: 180px; padding: 7px 10px; border-radius: 12px; }
.input--sm{ padding:7px 10px; }
.playerSection__total { color: var(--text700); font-size: 12px; }

.playerSection__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.itemTile { background: var(--bg700); border: 1px solid var(--border); border-radius: 14px; padding: 10px; text-align: center; }
.itemTile__img { height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.itemTile__img img { max-height: 40px; max-width: 100%; object-fit: contain; }
.itemTile__value { font-weight: 900; font-size: 14px; }
.itemTile__label { margin-top: 4px; font-size: 11px; color: var(--text700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.playerSection__actions { margin-top: 10px; display: flex; justify-content: center; }

@media (max-width: 1100px) {
  .playerSection__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .statTiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .playerSection__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statTiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* v111 Step 11: Player global search chips + highlight */
.playerGlobalSearch__row { display: flex; gap: 10px; align-items: center; }
.playerGlobalSearch__onlyFound { display:flex; gap:6px; align-items:center; font-size: 12px; opacity: 0.9; user-select:none; }
.playerGlobalSearch__chips { margin-top: 8px; display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: inherit;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor:pointer;
  user-select:none;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.chip:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.chip.is-active{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}
.itemTile__label mark { background: rgba(255,255,255,0.16); padding: 0 2px; border-radius: 3px; }
.playerSection.is-empty .playerSection__total { opacity: 0.65; }


/* Rich list (Р вЂР С•Р С–Р В°РЎвЂљР ВµР С‘) РІР‚вЂќ make it look like a clean single-column list without duplicated label */
.topGrid.is-rich .topCard__right--rich{ display:none !important; }
.topGrid.is-rich .topCard--rich{ justify-content:flex-start; padding-right: 128px; }
.topGrid.is-rich .topCard--rich.richable[data-rich-tier]::after{
  top: 50%;
  transform: translateY(-50%);
}
.richable[data-rich-tier][data-rich-label=""]::after{ display:none; }


/* Economy wide mode: hide sidebar and use full width */
html.page-economy .grid{ grid-template-columns: 1fr; }
html.page-economy .grid > aside{ display:none !important; }

/* Economy global chart */
.eaChartWrap{
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  padding: 12px;
}
.eaChartTitle{ font-weight: 800; font-size: 14px; margin-bottom: 2px; }
.eaChartBar{ display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-top: 8px; }
.eaLegend{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.eaChip{
  display:inline-flex; gap:8px; align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  cursor:pointer;
  user-select:none;
  font-weight: 700;
  font-size: 12px;
}
.eaChip input{ accent-color: #fff; }
.eaChip.is-off{ opacity: .45; }
.eaDot{ width:10px; height:10px; border-radius: 3px; background: currentColor; box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; }
.eaDot--phys{ color: var(--ea-phys); }
.eaDot--sr{ color: var(--ea-sr); }
.eaDot--market{ color: var(--ea-market); }
.eaChart{ width: 100%; display:block; margin-top: 10px; border-radius: 12px; }
.eaTip{
  position: absolute;
  z-index: 50;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  font-size: 12px;
  pointer-events:none;
  transform: translate(-50%, -120%);
  min-width: 170px;
}
.eaTip b{ font-size: 13px; }


