.profile-tier-showcase {
  position: relative;
  margin-top: 12px;
  padding: clamp(18px, 2.4vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(229, 169, 61, .28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 0%, rgba(229, 169, 61, .14), transparent 24rem),
    linear-gradient(145deg, rgba(8, 29, 47, .98), rgba(3, 15, 27, .99));
  box-shadow: 0 24px 62px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .045);
}

.profile-tier-showcase > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin-bottom: 18px;
}

.profile-tier-showcase > header h2 {
  margin: 7px 0 0;
  color: var(--cream);
  font: 600 clamp(24px, 2.6vw, 38px)/1.08 var(--serif);
}

.profile-tier-showcase > header p {
  max-width: 780px;
  margin: 9px 0 0;
  color: #9caebe;
  line-height: 1.6;
}

.profile-tier-current {
  display: grid;
  min-width: 150px;
  gap: 5px;
  justify-items: end;
  color: var(--muted);
  font: 500 8px/1.35 var(--mono);
  text-transform: uppercase;
}

.profile-tier-current strong {
  padding: 7px 12px;
  border: 1px solid rgba(245, 205, 120, .45);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(229, 169, 61, .1);
  font-size: 11px;
}

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

.tier-preview-card {
  position: relative;
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(111, 159, 194, .24);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(11, 36, 57, .98), rgba(4, 18, 31, .99));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .035);
}

.tier-preview-card.tier-scout {
  border-color: rgba(229, 169, 61, .32);
  background:
    radial-gradient(circle at 100% 0%, rgba(229, 169, 61, .11), transparent 17rem),
    linear-gradient(160deg, rgba(14, 34, 52, .99), rgba(5, 17, 29, .99));
}

.tier-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tier-preview-head span,
.tier-preview-head small {
  font: 600 8px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tier-preview-head span { color: var(--gold-2); }
.tier-preview-head small { color: #7890a5; }
.tier-preview-card.is-open .tier-preview-head small { color: var(--green); }

.tier-preview-card h2 {
  margin: 13px 0 7px;
  color: var(--cream);
  font: 600 clamp(20px, 2vw, 27px)/1.12 var(--serif);
}

.tier-preview-card > p {
  min-height: 42px;
  margin: 0;
  color: #98aabc;
  line-height: 1.55;
}

.tier-preview-window {
  position: relative;
  min-height: 148px;
  margin: 17px 0;
  overflow: hidden;
  border: 1px solid rgba(111, 159, 194, .24);
  border-radius: 8px;
  background:
    linear-gradient(rgba(111, 159, 194, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 159, 194, .045) 1px, transparent 1px),
    rgba(3, 16, 28, .9);
  background-size: 34px 34px;
}

.tier-preview-silhouette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 17px;
  transition: filter .2s ease, opacity .2s ease;
}

.tier-preview-window.is-obscured .tier-preview-silhouette {
  filter: blur(5px);
  opacity: .38;
  transform: scale(1.025);
}

.tier-preview-metric {
  min-height: 52px;
  padding: 9px;
  border: 1px solid rgba(111, 159, 194, .2);
  border-radius: 6px;
  background: rgba(10, 35, 55, .82);
}

.tier-preview-metric span {
  color: #8ea3b7;
  font: 500 7px/1 var(--mono);
  text-transform: uppercase;
}

.tier-preview-metric i {
  display: block;
  width: 58%;
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

.tier-preview-bars {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 9px;
  height: 48px;
  padding: 0 7px;
}

.tier-preview-bars i {
  flex: 1;
  height: 38%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--gold-2), rgba(229, 169, 61, .24));
}

.tier-preview-bars i:nth-child(2) { height: 78%; }
.tier-preview-bars i:nth-child(3) { height: 56%; }
.tier-preview-bars i:nth-child(4) { height: 92%; }

.tier-preview-lock,
.tier-preview-open {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 18px;
  text-align: center;
}

.tier-preview-lock {
  color: var(--gold-2);
  background: rgba(3, 15, 27, .28);
  text-shadow: 0 2px 18px #020a13;
}

.tier-preview-lock span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(245, 205, 120, .55);
  border-radius: 50%;
  background: rgba(3, 15, 27, .86);
  font-size: 20px;
  box-shadow: 0 0 24px rgba(229, 169, 61, .18);
}

.tier-preview-lock strong,
.tier-preview-open strong {
  font: 600 10px/1.3 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tier-preview-open {
  inset: auto 12px 10px auto;
  display: flex;
  gap: 6px;
  padding: 6px 9px;
  color: var(--green);
  border: 1px solid rgba(39, 230, 142, .25);
  border-radius: 999px;
  background: rgba(3, 20, 29, .88);
}

.tier-preview-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier-preview-card li {
  position: relative;
  padding-left: 16px;
  color: #bdc9d4;
  font-size: 10px;
  line-height: 1.4;
}

.tier-preview-card li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "●";
}

.tier-preview-cta,
.tier-preview-included {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 17px;
  padding: 0 14px;
  border: 1px solid rgba(245, 205, 120, .48);
  border-radius: 7px;
  font: 600 9px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tier-preview-cta {
  color: #07101c;
  background: linear-gradient(145deg, #f7d579, #d99a32);
  box-shadow: 0 10px 24px rgba(189, 117, 23, .2);
}

.tier-preview-included {
  color: var(--green);
  border-color: rgba(39, 230, 142, .25);
  background: rgba(39, 230, 142, .055);
}

.profile-tier-note {
  margin: 14px 0 0;
  color: #70869a;
  font: 400 8px/1.55 var(--mono);
}

@media (max-width: 820px) {
  .page {
    padding-right: 8px;
    padding-left: 8px;
  }

  .profile-breadcrumb {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .profile-hero,
  .player-intelligence-hero {
    display: grid !important;
    grid-template-areas:
      "photo title"
      "score score";
    grid-template-columns: 108px minmax(0, 1fr) !important;
    gap: 14px !important;
    min-height: 0 !important;
    padding: 16px !important;
  }

  .player-intelligence-hero {
    grid-template-columns: 126px minmax(0, 1fr) !important;
  }

  .profile-hero .profile-photo {
    grid-area: photo;
    width: 108px !important;
    height: 108px !important;
    margin: 0 !important;
    align-self: start !important;
    border: 1px solid rgba(245, 205, 120, .38) !important;
    border-radius: 12px !important;
    background: radial-gradient(circle at 50% 30%, #183c56, #061522 72%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
  }

  .player-intelligence-hero .profile-photo {
    width: 126px !important;
    height: 158px !important;
  }

  .profile-hero .profile-title {
    grid-area: title;
    min-width: 0;
    align-self: center;
  }

  .profile-hero .profile-title h1,
  .player-intelligence-hero .profile-title h1 {
    margin: 7px 0 9px;
    font-size: clamp(27px, 8.5vw, 39px);
    line-height: .98;
    overflow-wrap: anywhere;
  }

  .profile-hero .identity-meta,
  .profile-club-line {
    gap: 6px;
    font-size: 11px;
    line-height: 1.45;
  }

  .profile-club-line img {
    width: 23px;
    height: 23px;
  }

  .profile-hero .profile-meta {
    gap: 6px;
    margin-top: 11px;
  }

  .profile-hero .profile-meta span {
    padding: 4px 6px;
    border: 1px solid rgba(111, 159, 194, .18);
    border-radius: 999px;
    background: rgba(3, 17, 30, .56);
    font-size: 7px;
  }

  .profile-hero .profile-score {
    grid-area: score;
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 14px;
    width: 100%;
    margin: 0 !important;
    padding: 11px 13px;
    text-align: left;
  }

  .profile-hero .profile-score strong {
    grid-row: 1 / span 2;
    grid-column: 2;
    margin: 0;
    font-size: 27px;
  }

  .profile-hero .profile-score small {
    font-size: 8px;
  }

  .profile-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .profile-kpi {
    min-height: 92px;
    padding: 14px 12px;
    border-right: 1px solid var(--line-cool) !important;
    border-bottom: 1px solid var(--line-cool);
  }

  .profile-kpi:nth-child(even) { border-right: 0 !important; }
  .profile-kpi:nth-last-child(-n + 2) { border-bottom: 0; }
  .profile-kpi strong { font-size: clamp(17px, 5.5vw, 23px); }

  .profile-tabs {
    top: 64px;
    margin-right: -8px;
    margin-left: -8px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scrollbar-width: none;
  }

  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tabs button { min-height: 48px; padding: 0 17px; }

  .profile-overview-grid,
  .profile-chart-grid,
  .market-profile-grid,
  .content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .profile-chart-grid > *,
  .profile-overview-grid > *,
  .content-grid > * {
    min-width: 0;
  }

  .spider-chart,
  .profile-bar-chart,
  .profile-bubble-chart,
  .profile-area-chart {
    min-height: 200px;
  }

  .profile-bubble-chart svg,
  .profile-area-chart svg,
  .spider-chart svg {
    max-width: 100%;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-tier-showcase {
    margin-right: -1px;
    margin-left: -1px;
    padding: 18px 13px;
  }

  .profile-tier-showcase > header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .profile-tier-current {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-items: start;
    gap: 8px;
  }

  .profile-tier-current small { margin-left: auto; }
  .profile-tier-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 430px) {
  .profile-hero,
  .player-intelligence-hero {
    grid-template-columns: 102px minmax(0, 1fr) !important;
    gap: 11px !important;
    padding: 13px !important;
  }

  .player-intelligence-hero {
    grid-template-columns: 116px minmax(0, 1fr) !important;
  }

  .profile-hero .profile-photo {
    width: 102px !important;
    height: 102px !important;
  }

  .player-intelligence-hero .profile-photo {
    width: 116px !important;
    height: 148px !important;
  }

  .profile-hero .profile-title h1,
  .player-intelligence-hero .profile-title h1 {
    font-size: clamp(25px, 8vw, 33px);
  }

  .profile-hero .eyebrow { font-size: 7px; }
  .profile-hero .profile-meta span:nth-child(n + 3) { display: none; }

  .profile-kpi {
    min-height: 86px;
    padding: 12px 10px;
  }

  .profile-kpi .label,
  .profile-kpi small {
    font-size: 7px;
  }

  .metric-grid,
  .mini-grid,
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .metric-card {
    min-height: 84px;
    padding: 11px;
  }

  .metric-card strong { font-size: 18px; }
  .profile-heatmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-summary > div { grid-template-columns: minmax(82px, .8fr) minmax(0, 1.2fr); }

  .tier-preview-card > p { min-height: 0; }
  .tier-preview-window { min-height: 134px; }
  .profile-tier-current small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tier-preview-silhouette,
  .profile-bubble-chart circle {
    transition: none;
  }
}
