@font-face {
  font-family: 'Roca One';
  src: url('./assets/fonts/RocaOne-Lt.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  --font-display: 'Roca One', 'Forum', serif;
  --font-body: 'Futura PT', 'Futura', 'Century Gothic', 'Manrope', sans-serif;
}
/* Supply licensed Cyrillic Futura webfonts here when available. */
@font-face {
  font-family: 'Account Futura';
  src: local('Futura PT Book'), local('FuturaPT-Book'), local('Futura Book'), local('Futura');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Account Futura';
  src: local('Futura PT Demi'), local('FuturaPT-Demi'), local('Futura Medium');
  font-weight: 600 700;
  font-display: swap;
}
.account-body {
  --account-font: 'Account Futura', 'Futura PT', Futura, 'Century Gothic', var(--font-body);
  --account-text: #25232b;
  --account-muted: #615e6b;
  --account-accent: #6248d6;
  background: #f6f5fa;
  color: var(--account-text);
  font-family: var(--account-font);
  font-size: 16px;
  line-height: 1.5;
}
.account *,
.account *::before,
.account *::after,
.account-body .age-gate * {
  font-family: var(--account-font) !important;
  letter-spacing: normal;
}
.account h1,
.account h2,
.account h3,
.account h4,
.account-body .age-gate h2 {
  font-family: var(--font-display) !important;
}
html[data-theme='dark'] .account-body,
html[data-theme='dark'] .account {
  background: #241733;
  color: #f2e4f3;
}
html[data-theme='dark'] .reader-card,
html[data-theme='dark'] .orders__stat,
html[data-theme='dark'] .orders__empty,
html[data-theme='dark'] .order-card {
  background: #352347;
  border-color: rgba(236, 199, 246, 0.18);
  color: #f2e4f3;
}
html[data-theme='dark'] .orders h1,
html[data-theme='dark'] .reader-card h2,
html[data-theme='dark'] .orders__stat strong,
html[data-theme='dark'] .order-card h3,
html[data-theme='dark'] .order-card h4 {
  color: #f2e4f3;
}
html[data-theme='dark'] .orders__stat--primary {
  background: #6c4fa9;
}
html[data-theme='dark'] .reader-card__note,
html[data-theme='dark'] .orders__count,
html[data-theme='dark'] .orders__empty p,
html[data-theme='dark'] .order-card__author {
  color: #d8c2e1;
}
.account-body .site-header {
  font-family: var(--font-body);
  line-height: normal;
}
.account-body .age-gate h2 {
  font-size: 30px;
  line-height: 1.2;
}
.account-body .age-gate p,
.account-body .age-gate__button {
  font-size: 16px;
}
.account {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: 112px clamp(24px, 4vw, 64px) 64px;
  color: var(--account-text);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.92), transparent 28%), #f6f5fa;
}
.account__inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: auto;
}
.account__sky {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.account__sky::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(circle, rgba(98, 72, 214, 0.58) 0 1px, transparent 1.6px);
  background-size: 62px 62px;
  background-position: 10px 19px;
  mask-image: linear-gradient(90deg, #000, transparent 35%, transparent 65%, #000);
}
.account__ring {
  position: absolute;
  border: 1px solid rgba(98, 72, 214, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(98, 72, 214, 0.025),
    0 0 0 68px rgba(98, 72, 214, 0.018);
}
.account__ring--one {
  width: min(48vw, 680px);
  aspect-ratio: 1;
  top: -25%;
  right: -13%;
  transform: rotate(18deg) scaleY(0.54);
}
.account__ring--two {
  width: min(36vw, 510px);
  aspect-ratio: 1;
  bottom: -20%;
  left: -12%;
  transform: rotate(-28deg) scaleY(0.58);
}
.account__ring--three {
  width: 260px;
  aspect-ratio: 1;
  top: 38%;
  right: 3%;
  opacity: 0.55;
  transform: rotate(62deg) scaleY(0.42);
}
.account__star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: rgba(98, 72, 214, 0.48);
  font-size: var(--s);
  line-height: 1;
  text-shadow: 0 0 12px rgba(98, 72, 214, 0.3);
}
.account__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}
.reader-card {
  min-height: 660px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 32px 20px 24px;
  background: #fff;
  border: 1px solid #e4e2ea;
  border-radius: 16px;
}
.reader-card__avatar {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--account-accent);
  background: #eeeafb;
  border-radius: 50%;
}
.reader-card h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}
.reader-card__intro {
  margin: 6px 0 32px;
  text-align: center;
  color: var(--account-muted);
  font-size: 16px;
}
.reader-card__orders,
.reader-card__catalog {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 16px;
}
.reader-card__orders {
  background: #eeeafb;
  color: #5438c5;
  font-weight: 600;
}
.reader-card__catalog {
  margin-top: 8px;
  color: var(--account-text);
}
.reader-card__catalog:hover {
  background: #f6f5fa;
}
.reader-card__note {
  margin: auto 0 0;
  padding: 26px 4px 0;
  color: var(--account-muted);
  font-size: 14px;
  line-height: 1.6;
}
.orders {
  min-width: 0;
  scroll-margin-top: 100px;
}
.orders__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  min-height: 42px;
}
.orders h1 {
  margin: 0;
  color: var(--account-text);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
}
.orders__count {
  color: var(--account-muted);
  font-size: 16px;
}
.orders__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.orders__stat {
  min-height: 112px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid #e4e2ea;
  background: #fff;
  color: #514b61;
  font-size: 16px;
}
.orders__stat strong {
  align-self: end;
  color: var(--account-accent);
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
}
.orders__stat--primary {
  background: var(--account-accent);
  border-color: var(--account-accent);
  color: white;
}
.orders__stat--primary strong {
  color: white;
}
.orders__preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.orders__preview p {
  margin: 0;
  color: var(--account-muted);
  font-size: 14px;
}
.orders__preview button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d6d0e7;
  border-radius: 8px;
  background: #fff;
  color: #5438c5;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.orders__preview button:hover {
  background: #eeeafb;
}
.orders__preview button span {
  margin-left: 10px;
}
.orders__empty {
  min-height: 350px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e4e2ea;
  border-radius: 14px;
}
.orders__empty-book {
  width: 88px;
  height: 72px;
  margin-bottom: 22px;
  color: #8274ae;
}
.orders__empty h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}
.orders__empty p {
  margin: 12px 0 24px;
  color: var(--account-muted);
  font-size: 16px;
  line-height: 1.6;
}
.account__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 12px 22px;
  min-height: 46px;
  border-radius: 8px;
  background: var(--account-accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
}
.account__button:hover {
  background: #5037be;
}
.order-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #e4e2ea;
  border-radius: 14px;
}
.order-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e9e7ee;
}
.order-card__example {
  color: var(--account-muted);
  font-size: 14px;
}
.order-card h3 {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}
.order-card__status {
  padding: 8px 14px;
  border-radius: 7px;
  color: #285945;
  background: #e9f5ee;
  font-size: 15px;
  font-weight: 600;
}
.order-card__book {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: 24px 0;
}
.order-card__book img {
  display: block;
  width: 80px;
  height: auto;
  border-radius: 3px;
}
.order-card__author {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--account-muted);
}
.order-card h4 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 600;
}
.order-card h4 a:hover {
  color: var(--account-accent);
}
.order-card__quantity {
  margin: 10px 0 0;
  color: var(--account-muted);
  font-size: 15px;
}
.order-card__price {
  color: var(--account-muted);
  font-size: 15px;
}
.order-card__journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.order-card__journey li {
  position: relative;
  padding-top: 14px;
  border-top: 3px solid #e8e5ef;
  color: var(--account-muted);
  font-size: 14px;
}
.order-card__journey .is-done,
.order-card__journey .is-current {
  border-color: var(--account-accent);
  color: #5438c5;
}
.order-card__journey .is-current {
  font-weight: 600;
}
.order-card__details {
  border-top: 1px solid #e9e7ee;
  padding-top: 4px;
}
.order-card__details summary {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
}
.order-card__details summary::-webkit-details-marker {
  display: none;
}
.order-card__details summary span {
  color: var(--account-accent);
  font-size: 24px;
}
.order-card__details[open] summary span {
  transform: rotate(45deg);
}
.order-card__details dl {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.6;
}
.order-card__details dl div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}
.order-card__details dt {
  color: var(--account-muted);
}
.order-card__details dd {
  margin: 0;
  text-align: right;
}
.order-card__details > p {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--account-muted);
}
.account [hidden] {
  display: none !important;
}
.account a:focus-visible,
.account button:focus-visible,
.account summary:focus-visible {
  outline: 2px solid var(--account-accent);
  outline-offset: 4px;
}
.account__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .account__layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
  }
  .order-card__book {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 18px;
  }
  .order-card__book img {
    width: 70px;
  }
  .order-card__price {
    grid-column: 2;
  }
  .orders__stat {
    padding: 18px;
  }
}
@media (max-width: 760px) {
  .account {
    padding: 100px 20px 40px;
  }
  .account__layout {
    grid-template-columns: 1fr;
  }
  .reader-card {
    min-height: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0 14px;
  }
  .reader-card__avatar {
    grid-row: 1/3;
    width: 52px;
    height: 52px;
    margin: 0;
  }
  .reader-card h2,
  .reader-card__intro {
    text-align: left;
  }
  .reader-card__intro {
    margin: 4px 0 18px;
  }
  .reader-card__orders,
  .reader-card__catalog,
  .reader-card__note {
    grid-column: 1/-1;
  }
  .reader-card__note {
    padding: 16px 0 0;
  }
  .orders h1 {
    font-size: 27px;
  }
  .orders__stats {
    gap: 10px;
  }
  .orders__stat {
    padding: 14px 12px;
    font-size: 14px;
    min-height: 100px;
  }
  .orders__preview {
    flex-wrap: wrap;
    gap: 12px;
  }
  .order-card {
    padding: 20px;
  }
  .order-card__top {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .order-card__details dl div {
    flex-direction: column;
    gap: 3px;
  }
  .order-card__details dd {
    text-align: left;
  }
  .order-card__journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
}
@media (max-width: 760px) {
  .account__ring--one {
    width: 540px;
    top: -10%;
    right: -340px;
  }
  .account__ring--two {
    width: 420px;
    bottom: -12%;
    left: -300px;
  }
  .account__ring--three {
    display: none;
  }
}
