.pg-page,
.pg-page * {
  box-sizing: border-box;
}

.pg-page {
  overflow-x: clip;
  color: #aaa8b3;
  background: #09090b;
  font-family: "Poppins", sans-serif;
}

.pg-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.pg-hero {
  position: relative;
  padding: 48px 0 70px;
  border-bottom: 1px solid #29282e;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    radial-gradient(circle at 18% 25%, rgba(109, 93, 252, 0.12), transparent 34%),
    #0b0b0e;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.pg-hero-glow {
  position: absolute;
  top: -220px;
  right: 2%;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 115, 255, 0.17), transparent 69%);
  pointer-events: none;
}

.pg-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  color: #696772;
  font-size: 0.65rem;
}

.pg-breadcrumbs a {
  color: #9896a2;
  text-decoration: none;
}

.pg-breadcrumbs i {
  font-size: 0.43rem;
}

.pg-breadcrumbs span {
  overflow: hidden;
  max-width: 320px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 72px;
}

.pg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pg-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid #3a3744;
  border-radius: 8px;
  color: #9f96e9;
  background: #191720;
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pg-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #f5f4f9;
  font-size: clamp(2.65rem, 5.2vw, 4.85rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.pg-subtitle {
  margin: 17px 0 0;
  color: #aca7c3;
  font-size: 0.76rem;
  font-weight: 600;
}

.pg-hero-answer {
  max-width: 760px;
  margin: 22px 0 0;
  color: #94919d;
  font-size: 0.82rem;
  line-height: 1.85;
}

.pg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.pg-hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  color: #fff;
  background: #6d5dfc;
  box-shadow: 0 13px 32px rgba(109, 93, 252, 0.2);
  font-size: 0.68rem;
  font-weight: 650;
  text-decoration: none;
}

.pg-hero-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #716f79;
  font-size: 0.62rem;
}

.pg-hero-actions > span i {
  color: #8f84e7;
}

.pg-plan-card {
  overflow: hidden;
  padding: 24px;
  border: 1px solid #403b50;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(109, 93, 252, 0.13), transparent 32%),
    rgba(20, 19, 25, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.pg-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a99fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pg-plan-head i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #4c4562;
  border-radius: 9px;
  background: #24202f;
}

.pg-plan-card h2 {
  margin: 18px 0 10px;
  color: #f2f0f6;
  font-size: 1.55rem;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.pg-plan-card > p {
  margin: 0;
  color: #898691;
  font-size: 0.66rem;
  line-height: 1.7;
}

.pg-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 17px 0;
  border-top: 1px solid #34313c;
  border-bottom: 1px solid #34313c;
  list-style: none;
}

.pg-plan-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa7b3;
  font-size: 0.63rem;
}

.pg-plan-card li i {
  color: #9d92f4;
  font-size: 0.56rem;
}

.pg-plan-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.pg-plan-price div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pg-plan-price strong {
  color: #fff;
  font-size: 1.75rem;
  letter-spacing: -0.05em;
}

.pg-plan-price span,
.pg-plan-price p {
  color: #77747f;
  font-size: 0.57rem;
}

.pg-plan-price p {
  margin: 0 0 5px;
}

.pg-plan-card > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  margin-top: 15px;
  border-radius: 9px;
  color: #fff;
  background: #6d5dfc;
  font-size: 0.67rem;
  font-weight: 650;
  text-decoration: none;
}

.pg-plan-card > small {
  display: block;
  margin-top: 10px;
  color: #605e68;
  font-size: 0.52rem;
  text-align: center;
}

.pg-content-area {
  padding: 64px 0 96px;
  background:
    radial-gradient(circle at 92% 15%, rgba(109, 93, 252, 0.045), transparent 24%),
    #09090b;
}

.pg-content-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 54px;
}

.pg-sidebar {
  position: sticky;
  top: 90px;
}

.pg-toc {
  overflow: hidden;
  border: 1px solid #302f36;
  border-radius: 15px;
  background: #111115;
}

.pg-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 17px 13px;
  border-bottom: 1px solid #29282f;
}

.pg-toc-head > span {
  color: #9e94ec;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pg-toc-head button {
  display: none;
  border: 0;
  color: #aaa7b3;
  background: transparent;
  font: inherit;
  font-size: 0.63rem;
}

.pg-toc nav {
  max-height: calc(100vh - 205px);
  padding: 9px 7px;
  overflow-y: auto;
  scrollbar-color: #3c3848 transparent;
  scrollbar-width: thin;
}

.pg-toc nav a {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: start;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 8px;
  color: #777580;
  font-size: 0.57rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.pg-toc nav a span {
  color: #514f58;
  font-family: monospace;
  font-size: 0.55rem;
}

.pg-toc nav a:hover,
.pg-toc nav a.active {
  color: #cec9ed;
  background: #201c2a;
}

.pg-toc nav a.active span {
  color: #9e91fa;
}

.pg-back-library {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 17px;
  border-top: 1px solid #29282f;
  color: #9f96e9;
  font-size: 0.59rem;
  font-weight: 600;
  text-decoration: none;
}

.pg-article {
  min-width: 0;
}

.pg-section {
  padding: 0 0 46px;
  scroll-margin-top: 100px;
}

.pg-section + .pg-section {
  padding-top: 45px;
  border-top: 1px solid #28272d;
}

.pg-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 23px;
}

.pg-section-head > span {
  color: #766bea;
  font-family: monospace;
  font-size: 0.63rem;
}

.pg-section-head h2 {
  margin: 0;
  color: #f0eff4;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.pg-prose > p {
  margin: 0 0 18px;
  color: #9996a2;
  font-size: 0.77rem;
  line-height: 1.95;
}

.pg-prose > p:last-child {
  margin-bottom: 0;
}

.pg-prose h3 {
  margin: 30px 0 12px;
  color: #d8d5e0;
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.pg-list {
  display: grid;
  gap: 10px;
  margin: 19px 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: pattern-step;
}

.pg-list li {
  position: relative;
  min-height: 35px;
  padding: 8px 12px 8px 42px;
  border: 1px solid #2e2d34;
  border-radius: 9px;
  color: #96939e;
  background: #111115;
  font-size: 0.71rem;
  line-height: 1.65;
}

.pg-list.is-bulleted li::before {
  position: absolute;
  top: 13px;
  left: 17px;
  width: 7px;
  height: 7px;
  border: 2px solid #8174e9;
  border-radius: 50%;
  content: "";
}

.pg-list.is-numbered li {
  counter-increment: pattern-step;
}

.pg-list.is-numbered li::before {
  position: absolute;
  top: 8px;
  left: 10px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #49415e;
  border-radius: 6px;
  color: #a99fff;
  background: #1e1a28;
  content: counter(pattern-step);
  font-size: 0.53rem;
  font-weight: 700;
}

.pg-table-wrap {
  margin: 21px 0 8px;
  overflow-x: auto;
  border: 1px solid #34323a;
  border-radius: 13px;
  background: #111115;
}

.pg-table-wrap table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.pg-table-wrap th,
.pg-table-wrap td {
  padding: 13px 15px;
  border-right: 1px solid #2c2b31;
  border-bottom: 1px solid #2c2b31;
  text-align: left;
  vertical-align: top;
}

.pg-table-wrap th:last-child,
.pg-table-wrap td:last-child {
  border-right: 0;
}

.pg-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.pg-table-wrap th {
  color: #bbb5e5;
  background: #1c1924;
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.pg-table-wrap td {
  color: #8d8a95;
  font-size: 0.65rem;
  line-height: 1.6;
}

.pg-meta-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.pg-meta-grid > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid #302e36;
  border-radius: 10px;
  background: #111115;
}

.pg-meta-grid dt {
  color: #8d83df;
  font-size: 0.6rem;
  font-weight: 650;
}

.pg-meta-grid dd {
  margin: 0;
  color: #96939f;
  font-size: 0.65rem;
  line-height: 1.6;
}

.pg-section.is-quick {
  margin-bottom: 45px;
  padding: 27px 29px 29px;
  border: 1px solid #443e58;
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(109, 93, 252, 0.11), transparent 32%),
    #15131a;
}

.pg-section.is-quick + .pg-section {
  border-top: 0;
}

.pg-section.is-quick .pg-section-head {
  margin-bottom: 16px;
}

.pg-section.is-quick .pg-prose > p:first-child {
  color: #c1bdc9;
  font-size: 0.82rem;
}

.pg-section.is-tradediary {
  margin: 0 0 45px;
  padding: 28px;
  border: 1px solid #443d5c;
  border-radius: 17px;
  background:
    radial-gradient(circle at 0% 100%, rgba(109, 93, 252, 0.11), transparent 34%),
    #15131b;
}

.pg-section.is-tradediary + .pg-section {
  border-top: 0;
}

.pg-inline-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  padding: 17px 18px;
  border: 1px solid #403a53;
  border-radius: 11px;
  background: #1c1924;
}

.pg-inline-action div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pg-inline-action strong {
  color: #ddd9e7;
  font-size: 0.7rem;
}

.pg-inline-action span {
  color: #7d7987;
  font-size: 0.59rem;
}

.pg-inline-action a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: #6d5dfc;
  font-size: 0.61rem;
  font-weight: 650;
  text-decoration: none;
}

.pg-inline-promo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin: 0 0 48px;
  padding: 24px 25px;
  border: 1px solid #47405f;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 50%, rgba(109, 93, 252, 0.12), transparent 28%),
    linear-gradient(120deg, #1a1722, #121216);
}

.pg-inline-promo-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #50486b;
  border-radius: 13px;
  color: #b6adff;
  background: #252033;
}

.pg-inline-promo > div:nth-child(2) > span {
  color: #a99fff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.pg-inline-promo h2 {
  margin: 4px 0 5px;
  color: #f0eef6;
  font-size: 1.1rem;
  letter-spacing: -0.035em;
}

.pg-inline-promo p {
  max-width: 520px;
  margin: 0;
  color: #85828e;
  font-size: 0.61rem;
  line-height: 1.6;
}

.pg-inline-promo > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 22px;
  border-left: 1px solid #393541;
}

.pg-inline-promo > div:last-child strong {
  color: #fff;
  font-size: 1.25rem;
}

.pg-inline-promo > div:last-child strong small,
.pg-inline-promo > div:last-child > span {
  color: #76737e;
  font-size: 0.55rem;
}

.pg-inline-promo > div:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #b4aaff;
  font-size: 0.59rem;
  font-weight: 650;
  text-decoration: none;
}

.pg-faq-list {
  display: grid;
  gap: 10px;
}

.pg-faq-list details {
  overflow: hidden;
  border: 1px solid #302f36;
  border-radius: 12px;
  background: #111115;
}

.pg-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  color: #c3c0ca;
  font-size: 0.71rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.pg-faq-list summary::-webkit-details-marker {
  display: none;
}

.pg-faq-list summary i {
  color: #8e83e6;
  font-size: 0.64rem;
  transition: transform 180ms ease;
}

.pg-faq-list details[open] summary i {
  transform: rotate(45deg);
}

.pg-faq-list details > div {
  padding: 0 19px 18px;
  border-top: 1px solid #29282f;
}

.pg-faq-list p {
  margin: 15px 0 0;
  color: #8f8c97;
  font-size: 0.69rem;
  line-height: 1.75;
}

.pg-section.is-takeaway {
  padding: 28px;
  border: 1px solid #3c3849;
  border-radius: 16px;
  background: #141319;
}

.pg-guide-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid #2b2a30;
}

.pg-guide-nav a {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 15px 17px;
  border: 1px solid #302f36;
  border-radius: 12px;
  color: inherit;
  background: #111115;
  text-decoration: none;
}

.pg-guide-nav a.is-next {
  align-items: flex-end;
  text-align: right;
}

.pg-guide-nav a span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8177d7;
  font-size: 0.56rem;
  font-weight: 650;
  text-transform: uppercase;
}

.pg-guide-nav a strong {
  color: #c5c2cc;
  font-size: 0.68rem;
  font-weight: 600;
}

@media (max-width: 1040px) {
  .pg-hero-grid {
    grid-template-columns: 1.25fr minmax(300px, 0.75fr);
    gap: 42px;
  }

  .pg-content-grid {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 34px;
  }

  .pg-inline-promo {
    grid-template-columns: auto 1fr;
  }

  .pg-inline-promo > div:last-child {
    grid-column: 1 / -1;
    align-items: flex-start;
    padding: 15px 0 0;
    border-top: 1px solid #393541;
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .pg-shell {
    width: min(100% - 30px, 1180px);
  }

  .pg-hero {
    padding: 34px 0 54px;
  }

  .pg-breadcrumbs {
    margin-bottom: 30px;
  }

  .pg-hero-grid,
  .pg-content-grid {
    grid-template-columns: 1fr;
  }

  .pg-hero h1 {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  .pg-plan-card {
    max-width: 560px;
  }

  .pg-content-area {
    padding-top: 30px;
  }

  .pg-sidebar {
    position: relative;
    z-index: 6;
    top: auto;
  }

  .pg-toc-head button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .pg-toc nav {
    display: none;
    max-height: 360px;
  }

  .pg-toc.is-open nav {
    display: block;
  }

  .pg-back-library {
    display: none;
  }
}

@media (max-width: 560px) {
  .pg-shell {
    width: min(100% - 24px, 1180px);
  }

  .pg-breadcrumbs span {
    display: none;
  }

  .pg-badges span:last-child {
    display: none;
  }

  .pg-plan-card {
    padding: 20px;
  }

  .pg-section {
    padding-bottom: 38px;
  }

  .pg-section + .pg-section {
    padding-top: 37px;
  }

  .pg-section.is-quick,
  .pg-section.is-tradediary,
  .pg-section.is-takeaway {
    padding: 21px 18px;
  }

  .pg-meta-grid > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .pg-inline-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .pg-inline-promo {
    grid-template-columns: 1fr;
    padding: 21px 18px;
  }

  .pg-inline-promo > div:last-child {
    grid-column: auto;
  }

  .pg-guide-nav {
    grid-template-columns: 1fr;
  }
}
