/*
  Profile legacy UI module.
  Extracted from the former modules/20-home-news-profile.css; keep after 20-home-news-profile.css.
*/

/* -------------------------
   Profile page (local)
-------------------------- */
.profileLayout{
  display:grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 980px){
  .profileLayout{ grid-template-columns: 1fr; }
}

.profileAside{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.profileTabsWrap{
  margin-bottom: 12px;
}

.profileCard{
  border:1px solid var(--border);
  border-radius: var(--r);
  background: rgba(0,0,0,.16);
  padding: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow:hidden; /* likes-glow clipping */
}

.profileCard__top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 8px;
}
.profileAvatarBig{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border:1px solid var(--border);
  object-fit: cover;
}
.profileCard__name{ font-weight: 1000; font-size: 16px; }
.profileCard__meta{ display:flex; flex-wrap:wrap; gap:6px; }

.profileQuickActions{ display:flex; gap:8px; margin-top:8px; }
.profileQuickActions .btn{ flex:1; justify-content:center; }

.profileMain .card__head{ padding-bottom: 10px; }

/* -------------------------
   Profile: mini profile + levels tab
-------------------------- */
.profileHeadRight{ display:flex; justify-content:flex-end; align-items:flex-end; }
.profileMiniTop{ min-width: 280px; max-width: 420px; }
@media (max-width: 720px){
  .profileMiniTop{ min-width: 0; max-width: 100%; }
}

.miniProfile{
  display:flex; gap:10px; align-items:center;
  padding:9px 11px;
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(0,0,0,.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.miniProfile__ava{ width:44px; height:44px; border-radius:14px; border:1px solid var(--border); object-fit:cover; flex:0 0 auto; }
.miniProfile__main{ min-width:0; flex:1 1 auto; display:flex; flex-direction:column; gap:4px; }
.miniProfile__name{ font-weight:1000; font-size:14px; line-height:1.15; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.miniProfile__meta{ font-size:11px; opacity:.75; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.miniProfile__lvlRow{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.miniProfile__lvlTitle{ font-size:12px; opacity:.9; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width: 220px; }
.miniProfile__bar{ height:8px; border-radius:999px; overflow:hidden; background: rgba(255,255,255,.08); }
.miniProfile__barFill{ display:block; height:100%; background: var(--accent); }
.miniProfile__hint{ font-size:11px; opacity:.72; }

/* Mini-profile: compact preview of next level reward */
.miniProfile__next{ margin-top: 6px; }
.miniProfile__nextTitle{ font-size:11px; opacity:.78; margin-bottom: 6px; }
.miniProfile__nextRewards{ display:flex; flex-wrap:wrap; gap:6px; }
.miniProfile .lvlReward.lvlReward--mini{
  padding: 4px 8px;
  font-size: 11px;
  gap: 6px;
}
.miniProfile .lvlReward.lvlReward--mini .lvlReward__ico{ width:16px; height:16px; border-radius:5px; }

.lvlTop{ display:grid; grid-template-columns: 1.05fr .95fr; gap:12px; }
@media (max-width: 900px){
  .lvlTop{ grid-template-columns:1fr; }
}
.lvlTop__main, .lvlTop__side{
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background: rgba(0,0,0,.10);
}
.lvlTop__kicker{ font-size:11px; opacity:.75; font-weight:950; letter-spacing:.08em; text-transform:uppercase; }
.lvlTop__value{ font-size:22px; font-weight:1100; margin-top:4px; }
.lvlTop__meta{ margin-top:2px; font-size:12px; opacity:.88; }
.lvlTop__xp{ margin-top:10px; font-size:12px; opacity:.82; }
.lvlNextRewards{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }

/* support lvlBar markup variants */
.lvlBar__fill{ display:block; height:100%; background: rgba(240,140,40,.62); }

.lvlGrid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap:12px; }
@media (max-width: 760px){
  .lvlGrid{ grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
.lvlCard{
  padding:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background: rgba(255,255,255,.03);
  display:flex; flex-direction:column; gap:8px;
}
.lvlCard__head{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.lvlCard__lvl{ font-weight:1100; letter-spacing:.02em; }
.lvlCard__state{ font-size:11px; padding:4px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.10); opacity:.92; white-space:nowrap; }
.lvlCard--done .lvlCard__state{ border-color: rgba(89, 218, 146, .35); background: rgba(89, 218, 146, .10); }
.lvlCard--current{ border-color: rgba(240,140,40,.50); box-shadow: 0 0 0 3px rgba(240,140,40,.10); }
.lvlCard__title{ font-weight:1000; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lvlCard__req{ font-size:12px; opacity:.82; }
.lvlCard__rewards{ margin-top:2px; display:flex; flex-wrap:wrap; gap:8px; }

.lvlReward{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
  font-size:12px;
}
.lvlReward--off{ opacity:.55; filter:saturate(.6); }
.lvlReward__ico{ width:18px; height:18px; border-radius:6px; object-fit:cover; border:1px solid rgba(255,255,255,.10); }
.lvlReward__ico--emoji{ width:auto; height:auto; border:none; }

/* Mode switch (PVE/PVP) */
.modeSwitch{ margin-top:10px; display:inline-flex; gap:6px; padding:6px; border:1px solid var(--border); border-radius:12px; background: var(--surface-2); }
.modeSwitch__btn{ cursor:pointer; padding:8px 12px; border-radius:10px; border:1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text900); font-weight:900; letter-spacing:.02em; }
.modeSwitch__btn:hover{ background: rgba(255,255,255,.08); }
.modeSwitch__btn.is-active{ border-color: rgba(255,106,0,.45); background: linear-gradient(180deg, rgba(255,106,0,.20), rgba(255,106,0,.08)); }


/* Likes tab (profile) */
.profileLikesToolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.profileLikesToolbar .modeSwitch{ margin-top: 0; }
.profileLikesSearch{ display:flex; gap:8px; align-items:center; min-width: 240px; flex: 1 1 320px; justify-content:flex-end; }
.profileLikesSearch .input{ max-width: 520px; width: 100%; }
.profileLikesSummary{ display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }

/* -------------------------
   Profile inventory (rewards)
-------------------------- */
.invList{ display:flex; flex-direction:column; gap:10px; }
.invItem{ display:flex; gap:12px; align-items:flex-start; justify-content:space-between; padding:12px; border:1px solid rgba(255,255,255,.08); border-radius:14px; background: rgba(255,255,255,.03); }
.invItem__main{ min-width:0; flex:1 1 auto; }
.invItem__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.invItem__left{ flex:0 0 auto; display:flex; align-items:center; }
.invItem__icon{ width:34px; height:34px; border-radius:10px; object-fit:cover; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); }
.invItem__icon--empty{ width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); }
.invItem__code{ flex:1 1 auto; min-width:0; font-weight:700; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.invItem__sub{ margin-top:4px; font-size:12px; opacity:.92; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.invItem__meta{ margin-top:6px; font-size:12px; opacity:.7; }
.invItem__actions{ flex:0 0 auto; display:flex; align-items:flex-start; gap:8px; }
@media (max-width: 640px){
  .invItem{ flex-direction:column; }
  .invItem__actions{ width:100%; justify-content:flex-end; }
}

/* Inventory v2 (profile): grid tiles/slots (minimal UI: image + name + claim + date) */
.invGrid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap:12px; }
@media (max-width: 760px){
  .invGrid{ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
.invSlot{ position:relative; padding:12px; border:1px solid rgba(255,255,255,.08); border-radius:16px; background: rgba(255,255,255,.03); display:flex; flex-direction:column; gap:10px; min-height:148px; }
.invSlot__top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.invSlot__iconWrap{ width:54px; height:54px; flex:0 0 auto; border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); display:flex; align-items:center; justify-content:center; }
.invSlot__icon{ width:100%; height:100%; object-fit:cover; display:block; }
.invSlot__icon--empty{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:20px; }
.invSlot__badge{ font-size:11px; padding:4px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); opacity:.95; }
.invSlot__badge--ok{ border-color: rgba(89, 218, 146, .35); background: rgba(89, 218, 146, .10); }
.invSlot__badge--q{ border-color: rgba(242, 175, 64, .35); background: rgba(242, 175, 64, .10); }
.invSlot__badge--ghost{ opacity:.7; }
.invSlot__title{ font-weight:800; font-size:14px; line-height:1.15; min-height:34px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.invSlot__meta{ font-size:12px; opacity:.7; margin-top:auto; }
.invSlot__actions{ display:flex; justify-content:flex-end; }

/* -------------------------
   Profile achievements
-------------------------- */
.achCatalog{ display:flex; flex-direction:column; gap:12px; }
.achTileGrid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 150px));
  justify-content:start;
  gap:10px;
}
.achTile{
  position:relative;
  display:block;
  min-width:0;
  aspect-ratio:1 / 1;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.achTile:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
}
.achTile--locked{ opacity:.94; }
.achTile--locked .achTile__image{ filter: grayscale(.22) saturate(.88); }
.achTile--pending{ border-color: rgba(242,175,64,.28); }
.achTile--unlocked{ border-color: rgba(89,218,146,.22); }
.achTile--manual{ border-color: rgba(123,171,255,.22); }
.achTile__media{
  position:absolute;
  inset:0;
  display:block;
  background: radial-gradient(circle at 50% 24%, rgba(255,255,255,.10), rgba(255,255,255,.02) 55%, rgba(0,0,0,.24));
}
.achTile__image{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition: transform .22s ease;
}
.achTile:hover .achTile__image{ transform: scale(1.04); }
.achTile__image--empty{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:38px;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.12), rgba(255,255,255,.03) 48%, rgba(0,0,0,.18));
}
.achTile__shade{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.18) 32%, rgba(0,0,0,.62) 62%, rgba(0,0,0,.90) 100%);
  pointer-events:none;
}
.achTile__chips{
  position:absolute;
  top:8px;
  left:8px;
  right:8px;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:6px;
}
.achTile__pill{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:4px 7px;
  border-radius:999px;
  font-size:10px;
  line-height:1.1;
  font-weight:900;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,14,22,.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.achTile__pill--unlocked{ border-color: rgba(89,218,146,.34); background: rgba(27,93,55,.64); }
.achTile__pill--pending{ border-color: rgba(242,175,64,.34); background: rgba(119,74,14,.66); }
.achTile__pill--locked{ border-color: rgba(255,255,255,.16); background: rgba(19,24,36,.76); }
.achTile__pill--manual{ border-color: rgba(123,171,255,.34); background: rgba(35,58,105,.66); }
.achTile__pill--tier{ margin-left:auto; white-space:nowrap; }
.achTile__body{
  position:absolute;
  left:8px;
  right:8px;
  bottom:8px;
  z-index:2;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:0;
}
.achTile__body > *{ min-width:0; }
.achTile__titleBand{
  position:relative;
  padding:8px 10px;
  border-radius:12px;
  font-size:13px;
  line-height:1.16;
  font-weight:1000;
  color:#fff;
  background: rgba(8,11,18,.78);
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 20px rgba(0,0,0,.20);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height:34px;
}
.achTile:hover .achTile__titleBand{
  background: rgba(10,14,22,.88);
  border-color: rgba(255,255,255,.14);
}
.achTile__progress{
  font-size:11px;
  line-height:1.2;
  font-weight:800;
  color: rgba(255,255,255,.92);
  padding:0 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.achTile__bar{
  height:6px;
  border-radius:999px;
  overflow:hidden;
  background: rgba(255,255,255,.09);
}
.achTile__barFill{
  height:100%;
  border-radius:inherit;
  background: linear-gradient(90deg, rgba(255,106,0,.90), rgba(255,197,120,.94));
}
.achTile__foot{
  font-size:10px;
  line-height:1.15;
  opacity:.82;
  color: rgba(255,255,255,.82);
  padding:0 2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,.34);
}
.achTile__foot--muted{ opacity:.62; }
@media (max-width: 1280px){
  .achTileGrid{ grid-template-columns: repeat(auto-fill, minmax(146px, 146px)); }
}
@media (max-width: 760px){
  .achTileGrid{ grid-template-columns: repeat(auto-fill, minmax(140px, 140px)); }
  .achTile__titleBand{ font-size:12px; }
}
@media (max-width: 560px){
  .achTileGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achTile__titleBand{ font-size:12px; min-height:32px; }
}
/* Profile: referrals (MVP) */
.miniList{ display:grid; gap:10px; }
.miniRow{ display:grid; grid-template-columns: 1fr 1.2fr auto; gap:10px; align-items:center; padding:10px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,0.02); }
@media (max-width: 680px){ .miniRow{ grid-template-columns:1fr; gap:4px; } }

/* Profile: referrals РІР‚вЂќ rewards + progress */
.refSteps{ display:grid; gap:12px; }
.refStep{ padding:12px; border:1px solid var(--border); border-radius:14px; background:rgba(255,255,255,0.02); }
.refStep__head{ display:flex; flex-direction:column; gap:4px; margin-bottom:10px; }
.refStep__title{ font-weight:1000; letter-spacing:.01em; }
.refStep__grid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media (max-width: 760px){ .refStep__grid{ grid-template-columns:1fr; } }
.refStep__col{ padding:10px; border:1px solid rgba(255,255,255,.08); border-radius:12px; background: rgba(0,0,0,.10); }
.refStep__colTitle{ font-weight:900; font-size:12px; opacity:.85; margin-bottom:8px; }

.refRewardList{ display:flex; flex-direction:column; gap:8px; }
.refReward{ display:flex; gap:10px; align-items:flex-start; padding:10px; border:1px solid rgba(255,255,255,.08); border-radius:12px; background: rgba(255,255,255,.03); }
.refReward__icon{ width:40px; height:40px; border-radius:12px; object-fit:cover; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); flex:0 0 auto; display:block; }
.refReward__icon--empty{ display:flex; align-items:center; justify-content:center; font-size:18px; }
.refReward__body{ min-width:0; flex:1 1 auto; }
.refReward__title{ font-weight:900; font-size:13px; line-height:1.2; }
.refReward__tag{ margin-top:2px; font-size:11px; opacity:.75; }

.refBar{ margin-top:8px; height:8px; border-radius:999px; overflow:hidden; background: rgba(255,255,255,.08); }
.refBar__fill{ height:100%; background: rgba(255,255,255,.55); }

/* Profile: referrals РІР‚вЂќ simplified UI */
.refTop{ display:flex; flex-direction:column; gap:8px; }
.refTop__row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.refTop__code{ font-size:14px; word-break:break-all; }

.refDetails summary{ cursor:pointer; user-select:none; font-weight:900; font-size:12px; opacity:.85; }
.refDetailsBox{ padding:10px; border:1px solid rgba(255,255,255,.08); border-radius:12px; background: rgba(0,0,0,.10); }
.refDetailsBox > summary{ cursor:pointer; font-weight:1000; }

.refSummary{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; align-items:flex-end; }
.refStatCard{ min-width:110px; padding:10px 12px; border:1px solid rgba(255,255,255,.10); border-radius:14px; background: rgba(255,255,255,.03); }
.refStatCard__label{ font-size:11px; opacity:.75; font-weight:900; }
.refStatCard__value{ font-size:20px; font-weight:1100; line-height:1.05; margin-top:2px; }
.refSummary__note{ padding:8px 10px; border-radius:12px; border:1px dashed rgba(255,255,255,.14); opacity:.9; font-size:12px; white-space:nowrap; }
@media (max-width: 760px){
  .refStatCard{ min-width:92px; }
  .refSummary__note{ white-space:normal; }
}

.refListSimple{ display:grid; gap:10px; }
.refRow{ padding:12px; border:1px solid var(--border); border-radius:14px; background: rgba(255,255,255,.02); }
.refRow__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.refRow__id{ font-size:14px; }

.refState{ font-size:11px; padding:4px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); opacity:.95; white-space:nowrap; }
.refState--ok{ border-color: rgba(89, 218, 146, .35); background: rgba(89, 218, 146, .10); }
.refState--bad{ border-color: rgba(255, 92, 92, .35); background: rgba(255, 92, 92, .10); }
.refState--mid{ border-color: rgba(242, 175, 64, .35); background: rgba(242, 175, 64, .08); }

.refRow__progress{ margin-top:8px; display:flex; flex-direction:column; gap:6px; }
.refMarks{ margin-top:8px; display:flex; gap:8px; flex-wrap:wrap; }
.refMark{ font-size:12px; opacity:.85; padding:4px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.10); }


.likeUserList{ display:flex; flex-direction:column; gap:10px; }
.likeUserRow{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  border-radius: var(--r);
}
.likeUserRow:hover{ border-color: rgba(255,255,255,.22); background: rgba(0,0,0,.22); transform: translateY(-1px); }
.likeUserRow__img{ width: 46px; height: 46px; border-radius: 14px; overflow:hidden; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.likeUserRow__img img{ width:100%; height:100%; object-fit:cover; display:block; }
.likeUserRow__main{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1 1 auto; }
.likeUserRow__title{ font-weight: 1000; white-space:nowrap; overflow:hidden; text-overflow: ellipsis; }
.likeUserRow__meta{ font-size: 12px; color: var(--text700); font-weight: 800; white-space:nowrap; overflow:hidden; text-overflow: ellipsis; }
.likeUserRow__actions{ display:flex; align-items:center; gap:10px; flex: 0 0 auto; }
.likeUserRow__actions .btn{ white-space: nowrap; }


.profileNav{
  display:flex;
  gap: 8px;
  border:1px solid var(--border);
  border-radius: var(--r);
  padding: 10px;
  background: rgba(0,0,0,.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Default (desktop): tabs on the left, as a vertical list */
.profileNav--side{
  flex-direction: column;
  align-items: stretch;
}
.profileNav--side .pTab{
  width: 100%;
  justify-content: space-between;
}

/* When the profile layout collapses to one column, tabs move to the top row */
@media (max-width: 980px){
  .profileNav--side{
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .profileNav--side .pTab{ width:auto; justify-content: flex-start; }
}

/* On very small screens, keep tabs in one row with horizontal scroll.
   This prevents a tall multi-row tabbar when many new tabs are added. */
@media (max-width: 560px){
  .profileNav--side{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.pTab{
  width:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-align:left;
  padding: 9px 12px;
  border-radius: var(--r);
  border:1px solid var(--control-border);
  background: rgba(255,255,255,.02);
  color: var(--text900);
  font-weight: 900;
  cursor:pointer;
  white-space: nowrap;
  text-decoration: none;
}
.pTab:hover{ border-color: var(--control-accent-border-active); }
.pTab.is-active{
  background: linear-gradient(180deg, rgba(255,106,0,.18), rgba(255,106,0,.06));
  border-color: var(--control-accent-border-active);
}

.profileMain{ display:flex; flex-direction:column; gap:12px; }
.pPanel{ display:none; }
.pPanel.is-active{ display:block; }

.card{
  border:1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: var(--card-pad);
}
.panel .card{ box-shadow: none; }
.card .panel{ box-shadow:none; }
.card__head{
  display:flex;
  justify-content:space-between;
   align-items:flex-start;
  gap:10px;
  margin-bottom: 10px;
}
.card__title{ font-weight: 1000; font-size: 16px; }

.profileCats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}
@media (max-width: 980px){
  .profileCats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .profileCats{ grid-template-columns: 1fr; }
}

.pCat{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding: 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.12);
  cursor: default;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.pCat:hover{ border-color: rgba(255,106,0,.45); }
.pCat__top{ display:flex; justify-content:space-between;
 align-items:center; gap:8px; }
.pCat__label{ font-weight: 900; color: var(--text900); }
.pCat__val{ font-weight: 1000; color: var(--text900); }

/* -------------------------
   Admin panel (minimal)
-------------------------- */
.adminWrap{ max-width: none; width: 100%; margin: 0; padding: var(--page-pad-x); }
.adminTop{ display:flex; justify-content:space-between;
 align-items:center; gap:10px; margin-bottom: 14px; }
.adminTitle{ font-weight: 1000; font-size: 20px; }
.adminGrid{ display:grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--grid-gap); align-items:start; }
.adminGrid > nav{ position: sticky; top: 14px; align-self:start; max-height: calc(100vh - 28px); overflow:auto; padding-right: 6px; }
.adminGrid > main{ min-width: 0; }
@media (max-width: 980px){ .adminGrid{ grid-template-columns: 1fr; } }
@media (max-width: 980px){ .adminGrid > nav{ position: static; max-height: none; overflow: visible; padding-right: 0; } }
.adminMenu{ display:flex; flex-direction:column; gap:8px; }
.adminMenu a{ display:block; padding:10px 12px; border-radius: var(--r); border:1px solid var(--border); background: rgba(255,255,255,.02); color: var(--text900); font-weight: 900; }
.adminMenu a:hover{ border-color: rgba(255,106,0,.45); }
.adminMenu a.is-active{ background: rgba(255,106,0,.10); border-color: rgba(255,106,0,.45); }
.adminTable{ width:100%; border-collapse: collapse; }
.adminTable th,.adminTable td{ padding:10px; border-bottom:1px solid var(--border); vertical-align:top; }
.adminTable th{ text-align:left; font-weight: 1000; color: var(--text700); }
.adminInput, .adminTextarea{
  width:100%;
  border-radius: var(--r);
  border:1px solid var(--control-border);
  background: rgba(255,255,255,.02);
  color: var(--text900);
  padding: 10px 12px;
}
.adminTextarea{ min-height: 220px; resize: vertical; }
.adminRow{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px){ .adminRow{ grid-template-columns: 1fr; } }

/* Typography accents */

.pill{ display:inline-flex; align-items:center; padding:6px 10px; border:1px solid var(--border); border-radius: var(--r); background: rgba(0,0,0,.18); font-weight: 900; }
.pillList{ display:flex; flex-wrap:wrap; gap: 6px; }
.pillList .pill{ margin: 0; }
.nickSample{ font-weight: 1000; }
.pill--success{ border-color: rgba(63,185,80,.55); background: rgba(63,185,80,.10); }
.pill--danger{ border-color: rgba(248,81,73,.55); background: rgba(248,81,73,.10); }
.pill--gold{ border-color: rgba(240,140,40,.55); background: rgba(240,140,40,.10); }

/* Small pills (used for LVL in dense rows) */
.pill--tiny{ padding:4px 8px; font-size:11px; }

/* Level inline pill helper */
.lvlPill{ white-space:nowrap; }
.rankTile__sub .lvlPill,
.podiumCard__sub .lvlPill{ flex:0 0 auto; }
.telemetryLeft .lvlPill{ margin-left:8px; }
.homeOnlineRow > .lvlPill{ margin-left:8px; }
.likeUserRow__actions .lvlPill,
.likesCard__actions .lvlPill{ margin-right:2px; }
.shopsPlayerSub .lvlPill{ margin-left:0; }

/* Level pill (progress system) */
.pill--lvl{ border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }

/* Level badge for player cards (DOM element, not pseudo-elements РІР‚вЂќ compatible with likeGlow/richable) */
.lvlable{ position: relative; }
.lvlBadge{
  position:absolute;
  top:8px;
  left:10px;
  font-size:11px;
  line-height:1;
  padding:6px 8px;
  border-radius:999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  opacity: .92;
  font-weight: 950;
  letter-spacing: .2px;
  pointer-events:none;
  user-select:none;
  z-index: 2;
}

/* Compact rows (monitoring/online/telemetry) */
.telemetryRow .lvlBadge,
.homeOnlineRow .lvlBadge{
  top:6px;
  left:10px;
  padding:4px 6px;
  font-size:10px;
}

/* Rank tiles: keep badge slightly tighter to avoid name overlap */
.rankTile .lvlBadge{ top:7px; left:10px; padding:5px 7px; }

/* Player hero: badge is injected as pill, so hide corner badge if someone forces it */
.playerHero__card .lvlBadge{ display:none; }

/* Profile: My Bases blocks */
.myBasesBlock{ margin-top: 10px; }
.myBasesBlock__head{ display:flex; flex-direction:column; gap: 4px; margin-bottom: 8px; }
.myBasesBlock__title{ font-weight: 900; letter-spacing:.2px; }
.baseMiniRow--winner{ border-color: rgba(240,140,40,.22) !important; }


