.account-page {
  --account-night: #061831;
  --account-ink: #0a2347;
  --account-cobalt: #155dc0;
  --account-aqua: #17b7c7;
  --account-lime: #c8f36a;
  --account-paper: #f4f8fa;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(23, 183, 199, 0.16), transparent 30%),
    linear-gradient(rgba(11, 72, 119, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 72, 119, 0.04) 1px, transparent 1px),
    var(--account-paper);
  background-size: auto, 46px 46px, 46px 46px, auto;
}

.account-orbit {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

.account-orbit-a {
  width: 520px;
  height: 520px;
  top: -270px;
  right: -120px;
  border: 1px solid rgba(23, 183, 199, 0.2);
  box-shadow: inset 0 0 120px rgba(23, 183, 199, 0.18);
}

.account-orbit-b {
  width: 360px;
  height: 360px;
  bottom: -210px;
  left: -160px;
  background: rgba(21, 93, 192, 0.11);
}

.account-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1220px, calc(100% - 32px));
  min-height: 76px;
  margin: 16px auto 0;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  background: rgba(244, 248, 250, 0.78);
  box-shadow: 0 12px 42px rgba(7, 27, 60, 0.07);
  backdrop-filter: blur(20px);
}

.account-header img {
  display: block;
  width: 154px;
}

.account-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.account-header nav a,
.account-header nav button,
.account-home-link {
  border: 0;
  color: #52677f;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.account-header nav button {
  padding: 10px 14px;
  border: 1px solid rgba(10, 35, 71, 0.12);
  border-radius: 12px;
}

.account-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.account-button:hover {
  transform: translateY(-2px);
}

.account-button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.account-button-primary {
  color: #fff;
  background: var(--account-ink);
  box-shadow: 0 14px 30px rgba(7, 27, 60, 0.16);
}

.account-button-secondary,
.account-button-google {
  border: 1px solid rgba(10, 35, 71, 0.14);
  color: var(--account-ink);
  background: rgba(255, 255, 255, 0.78);
}

.login-shell {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  padding: 76px 0 90px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.72fr);
  align-items: center;
  gap: 90px;
}

.login-manifesto,
.login-card {
  min-width: 0;
}

.login-manifesto h1 {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(48px, 6vw, 76px);
}

.login-manifesto > p:not(.eyebrow) {
  max-width: 660px;
  margin-top: 28px;
  color: #52677f;
  font-size: 17px;
  line-height: 1.8;
}

.login-principles {
  display: grid;
  margin-top: 44px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.login-principles article {
  min-height: 162px;
  padding: 20px;
  border: 1px solid rgba(10, 35, 71, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.login-principles span {
  color: var(--account-cobalt);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.login-principles strong,
.login-principles small {
  display: block;
}

.login-principles strong {
  margin-top: 26px;
  color: var(--account-ink);
  font-size: 14px;
}

.login-principles small {
  margin-top: 7px;
  color: #61748a;
  font-size: 11px;
  line-height: 1.55;
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 32px 90px rgba(7, 27, 60, 0.14);
  backdrop-filter: blur(28px);
}

.login-card::before {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -130px;
  right: -100px;
  border-radius: 999px;
  background: rgba(23, 183, 199, 0.18);
  content: "";
}

.login-card-mark {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #155dc0, #17b7c7);
  box-shadow: 0 14px 32px rgba(21, 93, 192, 0.24);
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.login-card h2,
.account-section-heading h2,
.claim-copy h2 {
  margin-top: 10px;
  color: var(--account-ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.login-intro {
  margin-top: 14px;
  color: #60758b;
  font-size: 13px;
}

.login-form {
  display: grid;
  margin-top: 32px;
  gap: 16px;
}

.login-form label,
.claim-form label {
  display: grid;
  gap: 8px;
}

.login-form label span,
.claim-form label span {
  color: var(--account-ink);
  font-size: 12px;
  font-weight: 700;
}

.login-form input,
.claim-form input,
.claim-form textarea {
  width: 100%;
  border: 1px solid rgba(10, 35, 71, 0.14);
  border-radius: 13px;
  outline: none;
  color: var(--account-ink);
  background: rgba(244, 248, 250, 0.72);
}

.login-form input,
.claim-form input {
  height: 52px;
  padding: 0 15px;
}

.claim-form textarea {
  min-height: 100px;
  padding: 13px 15px;
  resize: vertical;
}

.login-form input:focus,
.claim-form input:focus,
.claim-form textarea:focus {
  border-color: var(--account-cobalt);
  box-shadow: 0 0 0 3px rgba(21, 93, 192, 0.1);
}

.login-divider {
  display: flex;
  margin: 22px 0;
  align-items: center;
  gap: 12px;
  color: #8797a8;
  font-size: 10px;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  flex: 1;
  background: rgba(10, 35, 71, 0.1);
  content: "";
}

.account-button-google {
  width: 100%;
}

.login-completion {
  display: grid;
  margin-top: 28px;
  padding: 22px;
  gap: 8px;
  border: 1px solid rgba(23, 183, 199, 0.25);
  border-radius: 16px;
  color: #416076;
  background: rgba(169, 242, 221, 0.22);
  font-size: 12px;
}

.login-completion strong {
  color: var(--account-ink);
  font-size: 15px;
}

.login-privacy {
  margin-top: 24px;
  color: #788b9d;
  font-size: 10px;
  line-height: 1.7;
}

.account-message {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.55;
}

.account-message.is-visible {
  display: block;
}

.account-message.is-error {
  color: #8d2e23;
  background: #fff0ed;
}

.account-message.is-success {
  color: #16624c;
  background: #e5f9f1;
}

.account-message.is-info {
  color: #174e84;
  background: #eaf3ff;
}

.account-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 76vh;
  margin: 0 auto;
  padding: 68px 0 100px;
}

.account-loading,
.account-error {
  display: grid;
  min-height: 52vh;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: #60758b;
  text-align: center;
}

.account-loading span {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(21, 93, 192, 0.15);
  border-top-color: var(--account-cobalt);
  border-radius: 50%;
  animation: account-spin 800ms linear infinite;
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

.account-hero {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: end;
  gap: 50px;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 24px;
}

.account-avatar {
  display: grid;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 29px;
  color: #fff;
  background: linear-gradient(145deg, #071b3c, #155dc0 64%, #17b7c7);
  box-shadow: 0 22px 55px rgba(7, 27, 60, 0.22);
  font-family: "DM Sans", sans-serif;
  font-size: 38px;
  font-weight: 800;
}

.account-identity h1 {
  margin-top: 6px;
  font-size: clamp(40px, 6vw, 68px);
}

.account-identity > div > p:last-child {
  margin-top: 10px;
  color: #657a8f;
  font-size: 12px;
}

.account-pulse {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.2fr;
  gap: 8px;
}

.account-pulse article {
  display: flex;
  min-height: 122px;
  padding: 20px;
  justify-content: flex-end;
  border: 1px solid rgba(10, 35, 71, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  flex-direction: column;
}

.account-pulse strong,
.account-pulse span {
  display: block;
}

.account-pulse strong {
  color: var(--account-cobalt);
  font-family: "DM Sans", sans-serif;
  font-size: 27px;
}

.account-pulse span {
  margin-top: 5px;
  color: #64788c;
  font-size: 9px;
  line-height: 1.5;
}

.account-pulse .pulse-next {
  color: #fff;
  background: var(--account-night);
}

.account-pulse .pulse-next strong {
  color: var(--account-lime);
  font-size: 11px;
  text-transform: uppercase;
}

.account-pulse .pulse-next span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
}

.account-jump {
  display: flex;
  margin-top: 48px;
  padding: 12px;
  gap: 8px;
  border: 1px solid rgba(10, 35, 71, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.5);
}

.account-jump a {
  padding: 9px 14px;
  border-radius: 10px;
  color: #52677f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.account-jump a:hover {
  color: var(--account-ink);
  background: #fff;
}

.account-section {
  padding-top: 86px;
}

.account-section-heading {
  display: grid;
  grid-template-columns: 1fr 0.58fr;
  align-items: end;
  gap: 40px;
}

.account-section-heading > p {
  color: #64788c;
  font-size: 12px;
  line-height: 1.75;
}

.library-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.library-card,
.library-empty {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 28px;
  grid-column: span 6;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 55px rgba(7, 27, 60, 0.08);
  animation: library-rise 500ms both;
  animation-delay: calc(var(--card-order, 0) * 70ms);
}

.library-card::after {
  position: absolute;
  width: 210px;
  height: 210px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  background: var(--card-accent, rgba(21, 93, 192, 0.16));
  content: "";
}

.library-card:nth-child(3n + 1) {
  grid-column: span 7;
}

.library-card:nth-child(3n + 2) {
  grid-column: span 5;
}

.accent-cobalt { --card-accent: rgba(21, 93, 192, 0.2); }
.accent-aqua { --card-accent: rgba(23, 183, 199, 0.21); }
.accent-lime { --card-accent: rgba(200, 243, 106, 0.32); }
.accent-amber { --card-accent: rgba(242, 165, 26, 0.22); }

@keyframes library-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.library-card-head,
.library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.library-kind,
.entitlement-state {
  color: #5f7489;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entitlement-state {
  padding: 7px 9px;
  border-radius: 999px;
  background: #edf3f7;
}

.entitlement-state.state-active {
  color: #13634c;
  background: #dcf6ec;
}

.library-card h3 {
  max-width: 440px;
  margin-top: 54px;
  color: var(--account-ink);
  font-size: 30px;
  line-height: 1.08;
}

.library-card > p {
  max-width: 520px;
  margin-top: 15px;
  color: #60758b;
  font-size: 12px;
  line-height: 1.7;
}

.library-meta {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 35, 71, 0.09);
  color: #74879a;
  font-size: 9px;
}

.library-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 24px;
  align-items: center;
  color: var(--account-cobalt);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.library-action::after {
  margin-left: 8px;
  content: "→";
}

.library-action.is-muted {
  color: #7e8f9f;
}

.library-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 310px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.library-empty-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #155dc0, #17b7c7);
  font-family: "DM Sans", sans-serif;
  font-size: 23px;
  font-weight: 800;
}

.library-empty h3 {
  margin-top: 24px;
  color: var(--account-ink);
  font-size: 25px;
}

.library-empty p {
  max-width: 580px;
  margin: 10px 0 22px;
  color: #657a8f;
  font-size: 12px;
}

.account-orders {
  padding-bottom: 86px;
}

.order-list {
  display: grid;
  margin-top: 30px;
  border-top: 1px solid rgba(10, 35, 71, 0.12);
}

.order-row {
  display: grid;
  padding: 22px 4px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(10, 35, 71, 0.1);
}

.order-copy,
.order-value {
  display: grid;
  gap: 4px;
}

.order-copy strong,
.order-value strong {
  color: var(--account-ink);
  font-size: 13px;
}

.order-copy span,
.order-value span {
  color: #718599;
  font-size: 10px;
}

.order-value {
  justify-items: end;
}

.order-status {
  font-weight: 700;
}

.account-empty-line {
  padding: 26px 4px;
  color: #718599;
  font-size: 12px;
}

.claim-layout {
  display: grid;
  overflow: hidden;
  padding: 48px;
  grid-template-columns: 1fr 0.82fr;
  gap: 70px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(23, 183, 199, 0.25), transparent 28%),
    var(--account-night);
  box-shadow: 0 30px 80px rgba(7, 27, 60, 0.2);
}

.claim-copy .eyebrow {
  color: #75dbe4;
}

.claim-copy h2 {
  color: #fff;
}

.claim-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.75;
}

.claim-boundary {
  display: grid;
  margin-top: 32px;
  padding-left: 18px;
  gap: 6px;
  border-left: 2px solid var(--account-lime);
}

.claim-boundary strong {
  color: var(--account-lime);
  font-size: 11px;
}

.claim-boundary span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.claim-form {
  display: grid;
  padding: 26px;
  gap: 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
}

.claim-form label span {
  color: rgba(255, 255, 255, 0.78);
}

.claim-form label small {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.claim-form input,
.claim-form textarea {
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.claim-form input::placeholder,
.claim-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.claim-form .account-button-primary {
  color: var(--account-night);
  background: var(--account-lime);
}

.account-footer {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  justify-content: space-between;
  border-top: 1px solid rgba(10, 35, 71, 0.1);
  color: #718599;
  font-size: 10px;
}

.account-footer div {
  display: flex;
  gap: 18px;
}

@media (max-width: 920px) {
  .login-shell,
  .account-hero,
  .account-section-heading,
  .claim-layout {
    grid-template-columns: 1fr;
  }

  .login-shell {
    gap: 52px;
  }

  .login-card {
    width: 100%;
    max-width: 600px;
  }

  .account-hero {
    align-items: start;
  }

  .claim-layout {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .account-header {
    min-height: 66px;
    padding: 0 15px;
    border-radius: 18px;
  }

  .account-header img {
    width: 132px;
  }

  .account-header nav a {
    display: none;
  }

  .account-header nav button {
    padding: 8px 10px;
    font-size: 11px;
  }

  .login-shell,
  .account-shell,
  .account-footer {
    width: min(100% - 28px, 1160px);
  }

  .login-shell {
    padding-top: 52px;
  }

  .login-manifesto h1 {
    font-size: 43px;
  }

  .login-principles {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    grid-template-columns: repeat(3, 210px);
    scroll-snap-type: x mandatory;
  }

  .login-principles article {
    scroll-snap-align: start;
  }

  .login-card {
    width: 100%;
    max-width: 100%;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .account-shell {
    padding-top: 46px;
  }

  .account-identity {
    align-items: flex-start;
    gap: 16px;
  }

  .account-avatar {
    width: 66px;
    height: 66px;
    border-radius: 21px;
    font-size: 28px;
  }

  .account-identity h1 {
    font-size: 39px;
  }

  .account-pulse {
    grid-template-columns: 1fr 1fr;
  }

  .account-pulse .pulse-next {
    grid-column: 1 / -1;
    min-height: 92px;
  }

  .account-jump {
    overflow-x: auto;
  }

  .account-jump a {
    flex: 0 0 auto;
  }

  .account-section {
    padding-top: 66px;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-card,
  .library-card:nth-child(n),
  .library-empty {
    min-height: 300px;
    padding: 24px;
    grid-column: 1;
    border-radius: 24px;
  }

  .library-card h3 {
    margin-top: 42px;
    font-size: 26px;
  }

  .order-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .order-value {
    justify-items: start;
  }

  .claim-layout {
    padding: 28px 20px;
    border-radius: 26px;
  }

  .claim-form {
    padding: 20px;
  }

  .account-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-loading span,
  .library-card {
    animation: none;
  }

  .account-button {
    transition: none;
  }
}
