.price-history-page {
  --ph-ink: var(--headingColor);
  --ph-muted: var(--contentColor);
  --ph-border: var(--borderColor);
  --ph-surface: var(--whiteColor);
  --ph-soft: var(--bodyBg1);
  --ph-primary: var(--primaryColor);
  --ph-accent: #ffb51c;
  min-height: 70vh;
  color: var(--ph-ink);
  background: var(--bodyBg);
}

.price-history-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 17%, rgba(76, 219, 255, 0.2), transparent 25%),
    linear-gradient(125deg, #071b4c 0%, #083d83 52%, #0876bf 100%);
}

.price-history-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 35px;
  padding-bottom: 75px;
}

.price-history-hero__orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.price-history-hero__orb--one {
  top: -260px;
  right: -90px;
  width: 600px;
  height: 600px;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.025), 0 0 0 92px rgba(255, 255, 255, 0.018);
}

.price-history-hero__orb--two {
  bottom: -265px;
  left: 34%;
  width: 440px;
  height: 440px;
  border-color: rgba(91, 222, 255, 0.12);
}

.price-history-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 58px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 650;
}

.price-history-breadcrumb a {
  color: #fff !important;
}

.price-history-breadcrumb i {
  color: #6edfff;
}

.price-history-hero__content {
  max-width: 810px;
}

.price-history-kicker {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--ph-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.price-history-hero .price-history-kicker {
  color: #6bdfff;
}

.price-history-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-family: var(--headingFont);
  font-size: clamp(40px, 5.2vw, 70px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.price-history-hero h1 span {
  color: #73e1ff;
}

.price-history-hero__content > p {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.8;
}

.price-history-search {
  display: flex;
  max-width: 840px;
  align-items: center;
  gap: 9px;
  margin-top: 31px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(2, 24, 62, 0.4);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.price-history-search__input {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
}

.price-history-search__input i {
  flex: 0 0 auto;
  color: #79e3ff;
  font-size: 20px;
}

.price-history-search input {
  width: 100%;
  height: 54px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  box-shadow: none;
}

.price-history-search input::placeholder {
  color: rgba(255, 255, 255, 0.63);
}

.price-history-search button,
.price-history-filters button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--ph-primary);
  border-radius: 11px;
  background: var(--ph-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.price-history-search button:hover,
.price-history-filters button:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(0, 160, 255, 0.2);
  transform: translateY(-1px);
}

.price-history-hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 27px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 750;
}

.price-history-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.price-history-hero__trust i {
  color: #70e2ff;
  font-size: 17px;
}

.price-history-content {
  padding: 66px 0 110px;
}

.price-history-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 25px;
}

.price-history-anchor {
  scroll-margin-top: 100px;
}

.price-history-summary h2,
.price-history-list__heading h2,
.price-history-state h2 {
  margin: 0;
  color: var(--ph-ink);
  font-family: var(--headingFont);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.price-history-summary p {
  margin: 8px 0 0;
  color: var(--ph-muted);
  font-size: 13px;
}

.price-history-summary__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.price-history-summary__stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 13px;
  border: 1px solid var(--ph-border);
  border-radius: 11px;
  background: var(--ph-surface);
  color: var(--ph-muted);
  font-size: 11px;
  font-weight: 750;
}

.price-history-summary__stats strong {
  color: var(--ph-primary);
  font-size: 17px;
  font-weight: 900;
}

.price-history-summary__stats .is-positive strong {
  color: #d78200;
}

.price-history-summary__stats .is-negative strong {
  color: #e54d62;
}

.price-history-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
  align-items: end;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--ph-border);
  border-radius: 18px;
  background: var(--ph-surface);
  box-shadow: 0 12px 34px rgba(23, 61, 105, 0.055);
}

.price-history-filter-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.price-history-filter-heading > div {
  min-width: 0;
}

.price-history-filter-heading strong,
.price-history-filter-heading small {
  display: block;
}

.price-history-filter-heading strong {
  color: var(--ph-ink);
  font-size: 13px;
  font-weight: 850;
}

.price-history-filter-heading small {
  margin-top: 4px;
  color: var(--ph-muted);
  font-size: 10px;
}

.price-history-filter-icon {
  display: inline-grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border-radius: 11px;
  background: rgba(0, 160, 255, 0.1);
  color: var(--ph-primary);
  font-size: 17px;
}

.price-history-filters label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.price-history-filters label > span {
  color: var(--ph-ink);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-history-filters select {
  width: 100%;
  height: 43px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--ph-border);
  border-radius: 9px;
  outline: 0;
  background: var(--ph-soft);
  color: var(--ph-ink);
  font-size: 12px;
  box-shadow: none;
}

.price-history-filters select:focus {
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 3px rgba(0, 160, 255, 0.1);
}

.price-history-filters select option {
  background: var(--ph-surface);
  color: var(--ph-ink);
}

.price-history-filters button {
  min-height: 43px;
  padding: 0 15px;
  font-size: 11px;
}

.price-history-list {
  margin-top: 48px;
}

.price-history-list__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 17px;
}

.price-history-list__heading h2 {
  font-size: 28px;
}

.price-history-list__heading > span {
  color: var(--ph-muted);
  font-size: 11px;
  font-weight: 700;
}

.price-history-table {
  overflow: hidden;
  border: 1px solid var(--ph-border);
  border-radius: 17px;
  background: var(--ph-surface);
  box-shadow: 0 10px 32px rgba(23, 61, 105, 0.055);
}

.price-history-table__head,
.price-history-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) minmax(105px, 0.65fr) minmax(105px, 0.65fr) minmax(110px, 0.65fr) minmax(100px, 0.55fr);
  gap: 18px;
  align-items: center;
}

.price-history-table__head {
  padding: 13px 21px;
  border-bottom: 1px solid var(--ph-border);
  background: var(--ph-soft);
  color: var(--ph-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-history-row {
  position: relative;
  padding: 18px 21px;
  border-bottom: 1px solid var(--ph-border);
  transition: background 0.2s ease;
}

.price-history-row:last-child {
  border-bottom: 0;
}

.price-history-row:hover {
  background: rgba(0, 160, 255, 0.035);
}

.price-history-row.is-increase {
  box-shadow: inset 3px 0 0 #e3a008;
}

.price-history-row.is-decrease {
  box-shadow: inset 3px 0 0 #e54d62;
}

.price-history-row.is-baseline {
  box-shadow: inset 3px 0 0 var(--ph-primary);
}

.price-history-row__service,
.price-history-row__amount,
.price-history-row__change,
.price-history-row__date {
  min-width: 0;
}

.price-history-row__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.price-history-row__badges span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 160, 255, 0.1);
  color: var(--ph-primary);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.price-history-row__service strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ph-ink);
  font-family: var(--headingFont);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-history-row__service small,
.price-history-row__amount small,
.price-history-row__change small,
.price-history-row__date small {
  display: block;
  color: var(--ph-muted);
  font-size: 9px;
  line-height: 1.45;
}

.price-history-row__service small {
  overflow: hidden;
  margin-top: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-history-row__amount small,
.price-history-row__change small {
  margin-bottom: 4px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-history-row__amount strong {
  color: var(--ph-muted);
  font-size: 15px;
  font-weight: 800;
}

.price-history-row__amount span {
  color: var(--ph-muted);
  font-size: 9px;
  font-weight: 700;
}

.price-history-row__amount--current strong {
  color: var(--ph-ink);
}

.price-history-row__change {
  display: grid;
  grid-template-columns: 29px 1fr;
  align-items: center;
  column-gap: 7px;
}

.price-history-change-icon {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  font-size: 16px;
}

.price-history-row.is-increase .price-history-change-icon {
  background: rgba(227, 160, 8, 0.14);
  color: #c28100;
}

.price-history-row.is-decrease .price-history-change-icon {
  background: rgba(229, 77, 98, 0.13);
  color: #d13b50;
}

.price-history-row.is-baseline .price-history-change-icon {
  background: rgba(0, 160, 255, 0.12);
  color: var(--ph-primary);
}

.price-history-row__change strong {
  color: #c28100;
  font-size: 13px;
  font-weight: 900;
}

.price-history-row.is-decrease .price-history-row__change strong {
  color: #d13b50;
}

.price-history-row.is-baseline .price-history-row__change strong {
  color: var(--ph-primary);
}

.price-history-row__change small {
  grid-column: 2;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.price-history-row__date strong {
  display: block;
  color: var(--ph-ink);
  font-size: 12px;
  font-weight: 800;
}

.price-history-row__date small {
  margin-top: 4px;
}

.price-history-next {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.price-history-next a,
.price-history-state a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ph-primary) !important;
  font-size: 12px;
  font-weight: 850;
}

.price-history-state {
  margin-top: 42px;
  padding: 54px 25px;
  border: 1px solid var(--ph-border);
  border-radius: 18px;
  background: var(--ph-surface);
  text-align: center;
}

.price-history-state--error {
  border-color: rgba(229, 77, 98, 0.28);
}

.price-history-state__icon {
  display: inline-grid;
  width: 53px;
  height: 53px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 17px;
  background: rgba(0, 160, 255, 0.1);
  color: var(--ph-primary);
  font-size: 23px;
}

.price-history-state--error .price-history-state__icon {
  background: rgba(229, 77, 98, 0.1);
  color: #d13b50;
}

.price-history-state h2 {
  font-size: 27px;
}

.price-history-state p {
  max-width: 560px;
  margin: 11px auto 20px;
  color: var(--ph-muted);
  font-size: 13px;
  line-height: 1.8;
}

.price-history-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 160, 255, 0.2);
  border-radius: 13px;
  background: rgba(0, 160, 255, 0.05);
  color: var(--ph-muted);
}

.price-history-note > i {
  flex: 0 0 auto;
  color: var(--ph-primary);
  font-size: 20px;
}

.price-history-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.is_dark .price-history-page {
  --ph-surface: #111d35;
  --ph-soft: #172641;
  --ph-border: rgba(148, 178, 224, 0.2);
  --ph-ink: #f4f7ff;
  --ph-muted: #9db1d3;
}

.is_dark .price-history-table,
.is_dark .price-history-filters,
.is_dark .price-history-state,
.is_dark .price-history-summary__stats span {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.16);
}

@media (max-width: 1050px) {
  .price-history-filters {
    grid-template-columns: minmax(230px, 1fr) repeat(2, minmax(150px, 0.75fr)) auto;
  }

  .price-history-table__head,
  .price-history-row {
    grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(100px, 0.65fr)) minmax(105px, 0.7fr) minmax(90px, 0.55fr);
    gap: 12px;
  }
}

@media (max-width: 800px) {
  .price-history-summary {
    display: block;
  }

  .price-history-summary__stats {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .price-history-filters {
    grid-template-columns: 1fr 1fr;
  }

  .price-history-filter-heading {
    grid-column: 1 / -1;
  }

  .price-history-filters button {
    width: 100%;
  }

  .price-history-table {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .price-history-table__head {
    display: none;
  }

  .price-history-table__body {
    display: grid;
    gap: 10px;
  }

  .price-history-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 19px;
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    background: var(--ph-surface);
    box-shadow: 0 8px 24px rgba(23, 61, 105, 0.045);
  }

  .price-history-row__service {
    grid-column: 1 / -1;
  }

  .price-history-row__date {
    text-align: right;
  }
}

@media (max-width: 560px) {
  .price-history-hero__inner {
    padding-top: 25px;
    padding-bottom: 53px;
  }

  .price-history-breadcrumb {
    margin-bottom: 42px;
  }

  .price-history-hero h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .price-history-search {
    display: block;
    padding: 8px;
  }

  .price-history-search button {
    width: 100%;
  }

  .price-history-hero__trust {
    display: grid;
    gap: 9px;
  }

  .price-history-content {
    padding-top: 46px;
  }

  .price-history-filters {
    grid-template-columns: 1fr;
  }

  .price-history-filter-heading {
    grid-column: auto;
  }

  .price-history-list__heading {
    display: block;
  }

  .price-history-list__heading > span {
    display: block;
    margin-top: 8px;
  }
}
