:root {
  --px-orange: #ff5618;
  --px-orange-dark: #e9440d;
  --px-navy: #10213a;
  --px-copy: #53647b;
  --px-line: #d7e2ec;
  --px-soft: #f3f7fa;
  --px-green: #19b96c;
}

body:has(.profile-command-page[data-profile-premium-deck="ready"]) {
  background:
    radial-gradient(circle at 50% -5%, rgba(175, 211, 239, .28), transparent 34%),
    linear-gradient(rgba(198, 218, 235, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 218, 235, .14) 1px, transparent 1px),
    #f7fafc !important;
  background-size: auto, 48px 48px, 48px 48px, auto !important;
}

.profile-command-page[data-profile-premium-deck="ready"] {
  display: block !important;
  width: min(1640px, calc(100% - 24px)) !important;
  max-width: none !important;
  margin: 14px auto 48px !important;
  padding: 0 !important;
}

.profile-px-shell,
.profile-px-main,
.profile-px-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.profile-inbox-list a.is-opening-chat {
  pointer-events: none;
  opacity: .72;
  cursor: progress;
}

.profile-px-shell {
  gap: 14px;
}

.profile-px-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 405px;
  align-items: start;
  gap: 14px;
}

.profile-px-main,
.profile-px-side {
  gap: 12px;
}

.profile-px-shell :is(.profile-command-hero, .profile-command-grid, .profile-inbox) {
  grid-area: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.profile-px-shell > .profile-command-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .72fr) 250px !important;
  align-items: center !important;
  min-height: 280px !important;
  padding: 27px 30px !important;
  border: 1px solid #cbd9e6 !important;
  border-radius: 7px 24px 7px 24px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 46px rgba(18, 39, 65, .11) !important;
}

.profile-px-shell > .profile-command-hero::before,
.profile-px-main > .profile-command-grid::before,
.profile-px-side > section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    linear-gradient(var(--px-orange), var(--px-orange)) left top / 46px 3px no-repeat,
    linear-gradient(var(--px-orange), var(--px-orange)) left top / 3px 46px no-repeat,
    linear-gradient(#afc1d2, #afc1d2) right top / 80px 1px no-repeat,
    linear-gradient(var(--px-orange), var(--px-orange)) right bottom / 58px 3px no-repeat,
    linear-gradient(var(--px-orange), var(--px-orange)) right bottom / 3px 40px no-repeat;
}

.profile-px-shell > .profile-command-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 42%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.18) 24%, rgba(255,255,255,.73)),
    url("/assets/page-heroes/profile-editorial-head-v1.png") center 44% / cover no-repeat;
  opacity: .5;
  mask-image: linear-gradient(90deg, transparent, #000 17%, #000 94%, transparent);
}

.profile-px-shell .profile-command-cover {
  opacity: .18 !important;
}

.profile-px-shell .profile-command-identity {
  z-index: 5;
  grid-template-columns: 165px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 24px !important;
}

.profile-px-shell .profile-command-avatar-shell {
  width: 160px !important;
  height: 180px !important;
}

.profile-px-shell .profile-command-avatar {
  width: 146px !important;
  height: 166px !important;
  border: 5px solid #fff !important;
  border-radius: 8px 29px 8px 29px !important;
  box-shadow: 0 0 0 2px #172940, 0 14px 30px rgba(15, 34, 58, .22) !important;
}

.profile-px-shell .profile-command-avatar > img:first-child {
  border-radius: 5px 25px 5px 25px !important;
}

.profile-px-shell .profile-name-row h1 {
  color: var(--px-navy);
  font-size: clamp(36px, 3.4vw, 54px) !important;
  letter-spacing: -.04em;
}

.profile-px-shell .profile-role-badge,
.profile-px-shell .profile-premium-badge {
  border-radius: 6px 2px !important;
  box-shadow: 0 5px 15px rgba(255, 86, 24, .13);
}

.profile-px-shell .player-profile-identity > p {
  max-width: 510px;
  color: #516179 !important;
  font-size: 10px !important;
  line-height: 1.6;
}

.profile-px-shell .profile-meta {
  font-size: 8px !important;
}

.profile-px-shell .profile-command-actions {
  display: none !important;
}

.profile-px-shell .profile-command-metrics {
  z-index: 5;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  background: rgba(255, 255, 255, .86) !important;
  border: 1px solid rgba(205, 219, 232, .96);
  border-radius: 12px 4px;
  padding: 12px !important;
  box-shadow: 0 14px 30px rgba(18, 39, 65, .08);
}

.profile-px-shell :is(.profile-command-level, .profile-command-trust) {
  min-height: 142px !important;
  background: linear-gradient(145deg, #fff, #f7fafc) !important;
  border: 1px solid #dce5ed !important;
  border-radius: 10px 3px !important;
  padding: 10px !important;
}

.profile-px-shell .profile-command-level > div,
.profile-px-shell .profile-command-trust > div {
  width: 72px !important;
  height: 72px !important;
}

.profile-px-shell .profile-command-community {
  grid-column: 1 / -1;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.profile-px-hero-status {
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-left: 18px;
}

.profile-px-eyebrow,
.profile-px-summary header span,
.profile-px-side header > span,
.profile-px-customizer header span {
  color: var(--px-orange);
  letter-spacing: .09em;
  font-size: 7px;
  font-weight: 950;
}

.profile-px-hero-status > strong {
  color: var(--px-green);
  font-size: 10px;
}

.profile-px-hero-status > strong i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--px-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(25, 185, 108, .12);
}

.profile-px-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.profile-px-role-list b {
  color: #40516a;
  background: rgba(255,255,255,.9);
  border: 1px solid #d3deea;
  border-radius: 6px 2px;
  padding: 6px 8px;
  font-size: 6px;
}

.profile-px-hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.profile-px-hero-actions :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px 2px;
  font-size: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.profile-px-hero-actions a {
  color: #fff;
  background: linear-gradient(135deg, #ff6824, #eb410c);
  border: 1px solid #df3b08;
  box-shadow: 0 10px 23px rgba(239, 72, 15, .2);
}

.profile-px-hero-actions button {
  color: #273951;
  background: rgba(255,255,255,.94);
  border: 1px solid #cbd8e5;
}

.profile-px-hero-status > small {
  color: #7b899b;
  font-size: 6px;
  line-height: 1.45;
}

.profile-px-tabs {
  display: flex;
  min-height: 50px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--px-line);
  border-radius: 7px 18px 3px 3px;
  overflow-x: auto;
  box-shadow: 0 9px 25px rgba(18, 39, 65, .055);
}

.profile-px-tabs button {
  flex: 1;
  min-width: 116px;
  color: #53637a;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 12px;
  font-size: 7px;
  font-weight: 850;
  cursor: pointer;
}

.profile-px-tabs button.active {
  color: var(--px-orange);
  background: linear-gradient(180deg, transparent, #fff4ee);
  border-bottom-color: var(--px-orange);
}

.profile-px-summary {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--px-line);
  border-radius: 4px 16px 4px 16px;
  padding: 15px;
  box-shadow: 0 10px 28px rgba(18, 39, 65, .06);
}

.profile-px-summary > header,
.profile-px-side > section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e8ef;
}

.profile-px-summary > header > div {
  display: grid;
  gap: 3px;
}

.profile-px-summary > header strong,
.profile-px-customizer header strong {
  color: var(--px-navy);
  font-size: 13px;
}

.profile-px-summary > header small {
  color: #8491a2;
  font-size: 6px;
}

.profile-px-summary > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.profile-px-summary article {
  position: relative;
  min-height: 102px;
  background: linear-gradient(145deg, #fff, #f7fafc);
  border: 1px solid #dce5ed;
  border-radius: 11px 3px;
  padding: 14px;
  overflow: hidden;
}

.profile-px-summary article i {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--px-orange);
}

.profile-px-summary article.tone-blue i { background: #2875de; }
.profile-px-summary article.tone-violet i { background: #7257d9; }
.profile-px-summary article.tone-green i { background: #16ad65; }

.profile-px-summary article span,
.profile-px-summary article small {
  display: block;
  color: #738196;
  font-size: 7px;
}

.profile-px-summary article strong {
  display: block;
  color: var(--px-navy);
  margin: 9px 0 7px;
  font-size: 26px;
}

.profile-px-main > .profile-command-grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-content: start !important;
  gap: 11px !important;
  background: rgba(255,255,255,.74) !important;
  border: 1px solid var(--px-line) !important;
  border-radius: 7px 20px 7px 20px !important;
  padding: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 13px 34px rgba(18, 39, 65, .07);
}

.profile-px-main .profile-command-card {
  min-height: 0 !important;
  border: 1px solid #dce5ed !important;
  border-radius: 11px 3px !important;
  box-shadow: 0 7px 18px rgba(18, 39, 65, .045) !important;
}

.profile-px-main .profile-command-game { grid-column: span 7 !important; }
.profile-px-main .profile-command-schedule { grid-column: span 5 !important; }
.profile-px-main :is(.profile-command-badges, .profile-command-history) { grid-column: span 6 !important; }
.profile-px-main .profile-command-clip,
.profile-px-main .profile-command-commendations,
.profile-px-main .profile-command-program-editor { grid-column: 1 / -1 !important; }

.profile-px-side > section {
  position: relative;
  border: 1px solid var(--px-line) !important;
  border-radius: 6px 18px 6px 18px !important;
  background: rgba(255,255,255,.94) !important;
  padding: 14px !important;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18, 39, 65, .075);
}

.profile-px-side > .profile-inbox {
  min-height: 390px !important;
  max-height: 490px !important;
}

.profile-px-side > .profile-inbox > header {
  margin-bottom: 10px;
}

.profile-px-side .profile-inbox-list {
  max-height: 365px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.profile-px-side .profile-inbox-list > a {
  min-height: 58px;
  border: 1px solid transparent;
  border-bottom-color: #e4ebf1;
  border-radius: 9px 3px;
}

.profile-px-side .profile-inbox-list > a:hover {
  background: #fff5ef;
  border-color: #ffc4a7;
}

.profile-px-trust > header b {
  color: var(--px-green);
  font-size: 6px;
}

.profile-px-score {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin: 14px 0;
}

.profile-px-score > strong {
  color: var(--px-green);
  font-size: 43px;
  line-height: .9;
}

.profile-px-score > span {
  color: #78869a;
  font-size: 9px;
}

.profile-px-score small {
  display: block;
  color: var(--px-navy);
  margin-top: 5px;
  font-size: 8px;
  font-weight: 850;
}

.profile-px-bars {
  display: grid;
  gap: 7px;
}

.profile-px-bars p {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #66758a;
  font-size: 6px;
}

.profile-px-bars p > i {
  height: 5px;
  background: #e5edf2;
  border-radius: 99px;
  overflow: hidden;
}

.profile-px-bars p > i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #14a860, #31cf82);
}

.profile-px-trust footer {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #e2e9ef;
  color: #637287;
  font-size: 7px;
}

.profile-px-trust footer strong {
  color: var(--px-orange);
}

.profile-px-bot {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 152px;
}

.profile-px-bot > img {
  align-self: end;
  width: 118px;
  height: 135px;
  object-fit: contain;
}

.profile-px-bot > div {
  display: grid;
  align-content: center;
  gap: 8px;
}

.profile-px-bot header {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-px-bot header strong {
  color: var(--px-navy);
  font-size: 11px;
}

.profile-px-bot header span {
  color: #fff;
  background: linear-gradient(135deg, #ff6824, #e9410b);
  border-radius: 4px 2px;
  padding: 4px 6px;
  font-size: 5px;
  font-weight: 900;
}

.profile-px-bot p {
  color: #55657b;
  background: #f7fafc;
  border: 1px solid #dce5ed;
  border-radius: 8px 3px;
  margin: 0;
  padding: 8px 9px;
  font-size: 7px;
  line-height: 1.5;
}

.profile-px-bot nav {
  display: flex;
  gap: 6px;
}

.profile-px-bot nav a {
  color: #34465f;
  background: #fff;
  border: 1px solid #d3dfeb;
  border-radius: 6px 2px;
  padding: 6px 8px;
  font-size: 6px;
  font-weight: 850;
  text-decoration: none;
}

.profile-px-customizer > header > div {
  display: grid;
  gap: 3px;
}

.profile-px-customizer > header > b {
  color: #fff;
  background: var(--px-orange);
  border-radius: 5px 2px;
  padding: 5px 8px;
  font-size: 6px;
}

.profile-px-avatar-tools {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 13px 0;
}

.profile-px-avatar-preview {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--px-orange);
}

.profile-px-avatar-tools span,
.profile-px-tool-label {
  display: block;
  color: #53637a;
  margin-bottom: 7px;
  font-size: 7px;
  font-weight: 850;
}

.profile-px-avatar-tools section,
.profile-px-backgrounds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.profile-px-avatar-tools section img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.profile-px-backgrounds img {
  width: 100%;
  height: 57px;
  object-fit: cover;
  border: 1px solid #d8e3ed;
  border-radius: 6px 2px;
}

.profile-px-customizer > button {
  width: 100%;
  min-height: 36px;
  color: #fff;
  background: linear-gradient(135deg, #ff6824, #e9410b);
  border: 1px solid #df3b08;
  border-radius: 8px 2px;
  margin-top: 12px;
  font-size: 7px;
  font-weight: 900;
  cursor: pointer;
}

body:has(.profile-command-page[data-profile-premium-deck="ready"]) .clutchbot-widget {
  display: none !important;
}

@media (max-width: 1370px) {
  .profile-px-shell > .profile-command-hero {
    grid-template-columns: minmax(0, 1.15fr) 300px 225px !important;
    padding: 22px !important;
  }

  .profile-px-dashboard {
    grid-template-columns: minmax(0, 1fr) 365px;
  }

  .profile-px-shell .profile-command-identity {
    grid-template-columns: 135px minmax(0, 1fr) !important;
  }

  .profile-px-shell .profile-command-avatar-shell {
    width: 132px !important;
    height: 151px !important;
  }

  .profile-px-shell .profile-command-avatar {
    width: 120px !important;
    height: 139px !important;
  }
}

@media (max-width: 1080px) {
  .profile-px-shell > .profile-command-hero {
    grid-template-columns: minmax(0, 1fr) 300px !important;
  }

  .profile-px-hero-status {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr 300px;
    align-items: center;
    padding: 10px 0 0;
  }

  .profile-px-role-list,
  .profile-px-hero-status > small {
    display: none;
  }

  .profile-px-hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-px-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-px-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-px-side > .profile-inbox {
    grid-row: span 2;
  }
}

@media (max-width: 720px) {
  .profile-command-page[data-profile-premium-deck="ready"] {
    width: calc(100% - 12px) !important;
  }

  .profile-px-shell > .profile-command-hero,
  .profile-px-side {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .profile-px-shell .profile-command-identity {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .profile-px-shell .profile-command-avatar-shell {
    width: 100px !important;
    height: 116px !important;
  }

  .profile-px-shell .profile-command-avatar {
    width: 90px !important;
    height: 106px !important;
  }

  .profile-px-shell .profile-command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .profile-px-hero-status {
    display: flex;
  }

  .profile-px-role-list,
  .profile-px-hero-status > small {
    display: flex;
  }

  .profile-px-summary > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-px-main :is(.profile-command-game, .profile-command-schedule, .profile-command-badges, .profile-command-history) {
    grid-column: 1 / -1 !important;
  }
}

/* v180 — Hero dışındaki profil metinlerini gerçek okuma boyutuna getirir. */
.profile-px-dashboard .profile-px-tabs button {
  font-size: 13px !important;
}

.profile-px-dashboard :is(.profile-px-eyebrow, .profile-px-summary header span, .profile-px-side header > span, .profile-px-customizer header span) {
  font-size: 11px !important;
}

.profile-px-dashboard .profile-px-summary > header strong,
.profile-px-dashboard .profile-px-customizer header strong {
  font-size: 17px !important;
}

.profile-px-dashboard .profile-px-summary > header small {
  font-size: 11px !important;
}

.profile-px-dashboard .profile-px-summary article span,
.profile-px-dashboard .profile-px-summary article small {
  font-size: 12px !important;
  line-height: 1.45;
}

.profile-px-dashboard .profile-px-summary article strong {
  font-size: 30px !important;
}

.profile-px-main .profile-command-card > header h2,
.profile-px-main .profile-command-program-editor h2 {
  font-size: 16px !important;
}

.profile-px-main .profile-command-card > header :is(a, button),
.profile-px-main .profile-command-program-editor :is(a, button) {
  font-size: 12px !important;
}

.profile-px-main .profile-command-card :is(p, small, time, label),
.profile-px-main .profile-command-program-editor :is(p, small, time, label) {
  font-size: 12px !important;
  line-height: 1.5;
}

.profile-px-main .profile-command-card :is(article, footer, .profile-command-game-stats, .profile-command-friends, .profile-command-praise) span {
  font-size: 12px !important;
}

.profile-px-main .profile-command-card :is(article, .profile-command-game-stats, .profile-command-praise) strong {
  font-size: 14px !important;
  line-height: 1.35;
}

.profile-px-main .profile-command-card-link {
  min-height: 40px;
  font-size: 12px !important;
}

.profile-px-side .profile-inbox > header h2 {
  font-size: 19px !important;
}

.profile-px-side .profile-inbox > header p,
.profile-px-side .profile-inbox > header input {
  font-size: 12px !important;
  line-height: 1.45;
}

.profile-px-side .profile-inbox-list > a strong {
  font-size: 13px !important;
}

.profile-px-side .profile-inbox-list > a :is(small, time),
.profile-px-side .profile-inbox-empty :is(strong, span) {
  font-size: 11px !important;
  line-height: 1.4;
}

.profile-px-side .profile-px-trust > header b,
.profile-px-side .profile-px-customizer > header > b {
  font-size: 10px !important;
}

.profile-px-side .profile-px-score > span {
  font-size: 13px !important;
}

.profile-px-side .profile-px-score small {
  font-size: 12px !important;
}

.profile-px-side .profile-px-bars p,
.profile-px-side .profile-px-trust footer {
  font-size: 11px !important;
}

.profile-px-side .profile-px-bot header strong {
  font-size: 15px !important;
}

.profile-px-side .profile-px-bot header span {
  font-size: 9px !important;
}

.profile-px-side .profile-px-bot p,
.profile-px-side .profile-px-bot nav a {
  font-size: 11px !important;
}

.profile-px-side .profile-px-avatar-tools span,
.profile-px-side .profile-px-tool-label,
.profile-px-side .profile-px-customizer > button {
  font-size: 11px !important;
}

@media (max-width: 720px) {
  .profile-px-dashboard .profile-px-tabs button {
    min-width: 128px;
    font-size: 12px !important;
  }

  .profile-px-main .profile-command-card > header h2,
  .profile-px-main .profile-command-program-editor h2 {
    font-size: 15px !important;
  }

  .profile-px-main .profile-command-card :is(p, small, time, label),
  .profile-px-main .profile-command-card :is(article, footer, .profile-command-game-stats, .profile-command-friends, .profile-command-praise) span {
    font-size: 11px !important;
  }
}
