.pk-performance-dashboard {
  position: relative;
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(62px, 8vw, 118px);
}

.pk-dashboard-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  color: #101418;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48)),
    radial-gradient(circle at 10% 4%, rgba(255, 90, 31, 0.18), transparent 32%),
    radial-gradient(circle at 84% 16%, rgba(38, 121, 255, 0.2), transparent 32%);
  box-shadow: 0 42px 110px rgba(21, 23, 26, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.pk-dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 20, 24, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 24, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 74%);
  pointer-events: none;
}

.pk-dashboard-titlebar,
.pk-dashboard-grid {
  position: relative;
  z-index: 2;
}

.pk-dashboard-titlebar {
  display: grid;
  gap: 8px;
  max-width: 900px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.pk-dashboard-kicker {
  margin: 0;
  color: #5c6671;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pk-dashboard-titlebar h2 {
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 6.25rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.pk-title-orange {
  color: #ff5a1f;
}

.pk-title-black {
  color: #111418;
}

.pk-dashboard-titlebar p:last-child {
  max-width: 760px;
  margin: 0;
  color: #43505d;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 750;
  line-height: 1.55;
}

.pk-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.pk-dashboard-command-panel,
.pk-dashboard-ui,
.pk-stat-card,
.pk-graph-card,
.pk-score,
.pk-mini-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 54px rgba(25, 35, 48, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(132%);
  -webkit-backdrop-filter: blur(20px) saturate(132%);
}

.pk-dashboard-command-panel {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 560px;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)), radial-gradient(circle at 50% 34%, rgba(35, 110, 255, 0.18), transparent 40%);
}

.pk-orbit-widget {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.94) 0 24%, transparent 25%),
    conic-gradient(from 0deg, rgba(255, 90, 31, 0.96), rgba(39, 120, 255, 0.9), rgba(17, 20, 24, 0.8), rgba(255, 90, 31, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  animation: pkOrbitGlow 9.6s ease-in-out infinite;
}

.pk-orbit-widget::before,
.pk-orbit-widget::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(22, 34, 48, 0.18);
}

.pk-orbit-widget::before {
  inset: 32px;
}

.pk-orbit-widget::after {
  inset: 70px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.78);
}

.pk-orbit-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.64));
  box-shadow: 0 28px 70px rgba(17, 20, 24, 0.16), inset 0 1px 0 #fff;
}

.pk-orbit-core b {
  color: #ff5a1f;
  font-size: 2.6rem;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.pk-orbit-core small {
  color: #293542;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pk-orbit-widget i {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #17202a;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(20, 28, 38, 0.12);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  transform: rotate(var(--angle)) translateX(122px) rotate(calc(var(--angle) * -1));
}

.pk-mini-metrics,
.pk-stat-grid,
.pk-score-row {
  display: grid;
  gap: 10px;
}

.pk-mini-metrics {
  grid-template-columns: repeat(3, 1fr);
}

.pk-mini-metrics div {
  display: grid;
  gap: 3px;
  min-height: 84px;
  padding: 14px;
  border-radius: 20px;
}

.pk-mini-metrics span,
.pk-stat-card strong {
  color: #111418;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.pk-mini-metrics span {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.pk-mini-metrics small,
.pk-borough-strip span,
.pk-stat-card small,
.pk-score small {
  color: #5e6975;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
}

.pk-borough-strip,
.pk-dashboard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pk-borough-strip span,
.pk-dashboard-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(33, 46, 61, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.pk-dashboard-cta-row {
  display: flex;
  justify-content: center;
  margin: 4px auto 0;
}

.pk-dashboard-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  min-height: 54px;
  padding: 15px 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: #102033;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48)),
    radial-gradient(circle at 18% 20%, rgba(255, 90, 31, 0.18), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 46px rgba(32, 48, 68, 0.14);
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 950;
  letter-spacing: 0.045em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
}

.pk-dashboard-ui {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 28px;
  width: 100%;
}

.pk-dashboard-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64707d;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pk-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff5a1f;
}

.pk-live-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff5a1f;
  box-shadow: 0 0 0 7px rgba(255, 90, 31, 0.14);
  animation: pkPulse 3.2s ease-in-out infinite;
}

.pk-stat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pk-stat-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 15px;
  border-radius: 22px;
}

.pk-stat-card > span {
  color: #687380;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pk-stat-card strong {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 0.9;
}

.pk-stat-card:nth-child(1) strong,
.pk-stat-card:nth-child(3) strong {
  color: #ff5a1f;
}

.pk-graph-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 16px;
  border-radius: 24px;
}

.pk-graph-card::before {
  content: "";
  position: absolute;
  inset: 52px 16px 58px;
  background-image: linear-gradient(rgba(17, 20, 24, 0.08) 1px, transparent 1px);
  background-size: 100% 34px;
  pointer-events: none;
}

.pk-graph-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: #111418;
  font-weight: 950;
}

.pk-graph-head span {
  color: #5a6572;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pk-graph-head strong {
  color: #2476ff;
}

.pk-graph-card svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 170px;
  margin-top: 10px;
  overflow: visible;
}

.pk-graph-fill {
  fill: url(#pkGraphFill);
}

.pk-graph-line {
  fill: none;
  stroke: #ff5a1f;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  filter: drop-shadow(0 12px 18px rgba(255, 90, 31, 0.25));
  animation: pkLineDraw 5.6s cubic-bezier(0.2, 0.9, 0.2, 1) forwards, pkLineBreathe 5.2s ease-in-out 5.6s infinite;
}

.pk-bars {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 8px;
  height: 58px;
  opacity: 0.68;
}

.pk-bars span {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--h);
  min-height: 24px;
  padding-bottom: 7px;
  border-radius: 999px 999px 6px 6px;
  color: #12345d;
  background: linear-gradient(180deg, rgba(36, 118, 255, 0.84), rgba(36, 118, 255, 0.2));
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  transform-origin: bottom;
  animation: pkBarGrow 2.4s ease-out both;
}

.pk-bars span:nth-child(2) { animation-delay: 0.64s; }
.pk-bars span:nth-child(3) { animation-delay: 0.64s; }
.pk-bars span:nth-child(4) { animation-delay: 0.48s; }
.pk-bars span:nth-child(5) { animation-delay: 0.64s; }
.pk-bars span:nth-child(6) { animation-delay: 0.8s; }

.pk-score-row {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2px;
}

.pk-score {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 142px;
  padding: 18px;
  border-radius: 22px;
  text-align: center;
}

.pk-score::before {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.84) 72%, transparent 74%), conic-gradient(#2476ff calc(var(--score) * 1%), rgba(17, 20, 24, 0.08) 0);
}

.pk-score span,
.pk-score small {
  position: relative;
  z-index: 2;
}

.pk-score span {
  color: #111418;
  font-size: 1.6rem;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.pk-score small {
  max-width: 90px;
  margin-top: 72px;
}

.pk-dashboard-tags span {
  color: #22303d;
  font-size: 0.78rem;
  font-weight: 900;
}

@keyframes pkLineDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes pkLineBreathe {
  50% {
    stroke-width: 10;
    filter: drop-shadow(0 16px 22px rgba(255, 90, 31, 0.34));
  }
}

@keyframes pkBarGrow {
  from {
    transform: scaleY(0.08);
    opacity: 0.2;
  }
}

@keyframes pkPulse {
  50% { box-shadow: 0 0 0 12px rgba(255, 90, 31, 0); }
}

@keyframes pkOrbitGlow {
  50% { filter: saturate(1.12) brightness(1.03); }
}

@media (max-width: 920px) {
  .pk-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .pk-dashboard-command-panel {
    min-height: 0;
  }

  .pk-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pk-performance-dashboard {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .pk-dashboard-card {
    border-radius: 20px;
    padding: 12px;
  }

  .pk-dashboard-titlebar {
    gap: 5px;
    margin-bottom: 12px;
  }

  .pk-dashboard-kicker {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .pk-dashboard-titlebar h2 {
    font-size: clamp(2.05rem, 10.5vw, 3.1rem);
    line-height: 0.88;
    letter-spacing: -0.085em;
  }

  .pk-dashboard-titlebar p:last-child {
    max-width: 34em;
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .pk-orbit-widget {
    min-height: 278px;
  }

  .pk-orbit-widget i {
    transform: rotate(var(--angle)) translateX(96px) rotate(calc(var(--angle) * -1));
  }

  .pk-dashboard-ui {
    gap: 8px;
    padding: 9px;
    border-radius: 18px;
  }

  .pk-dashboard-topline {
    font-size: 0.56rem;
    letter-spacing: 0.06em;
  }

  .pk-live-dot::before {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 5px rgba(255, 90, 31, 0.14);
  }

  .pk-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .pk-stat-card {
    min-height: 82px;
    padding: 9px;
    border-radius: 15px;
  }

  .pk-stat-card > span {
    font-size: 0.53rem;
    letter-spacing: 0.08em;
  }

  .pk-stat-card strong {
    font-size: 1.34rem;
  }

  .pk-stat-card small {
    font-size: 0.55rem;
    line-height: 1.12;
  }

  .pk-graph-card {
    min-height: 128px;
    padding: 9px;
    border-radius: 16px;
  }

  .pk-graph-card::before {
    inset: 34px 10px 36px;
    background-size: 100% 20px;
  }

  .pk-graph-head span,
  .pk-graph-head strong {
    font-size: 0.68rem;
  }

  .pk-graph-card svg {
    height: 78px;
    margin-top: 2px;
  }

  .pk-graph-line {
    stroke-width: 6;
  }

  .pk-bars {
    right: 10px;
    bottom: 9px;
    left: 10px;
    gap: 5px;
    height: 25px;
  }

  .pk-bars span {
    min-height: 18px;
    padding-bottom: 3px;
    font-size: 0.5rem;
  }

  .pk-score-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .pk-score {
    min-height: 86px;
    padding: 7px;
    border-radius: 15px;
  }

  .pk-score::before {
    width: 50px;
    height: 50px;
  }

  .pk-score span {
    font-size: 0.98rem;
  }

  .pk-score small {
    max-width: 70px;
    margin-top: 45px;
    font-size: 0.51rem;
    line-height: 1.05;
  }

  .pk-dashboard-tags {
    display: none;
  }
}
