.profile-header {
  width: min(100% - 48px, 1120px);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.profile-header .brand-name { font-size: 21px; }
.profile-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c8c5c6;
  font-size: 14px;
  transition: color .2s ease;
}
.profile-back-link:hover { color: #fff; }
.profile-back-link svg { width: 17px; height: 17px; }
.account-page-footer {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: 18px 0 30px;
  display: flex;
  justify-content: center;
  gap: 25px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.account-page-footer a { color: #aaa4a5; font-size: 12px; transition: color .2s ease; }
.account-page-footer a:hover { color: #fff; }
.account-layout {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: 70px 0 56px;
}
.account-intro { margin-bottom: 30px; }
.account-intro h1, .password-intro h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -1.8px;
}
.account-intro h1 span {
  color: transparent;
  background: linear-gradient(100deg, #ff2932, #ff9296);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.account-intro > p:last-child, .password-intro > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.account-card, .collection-card, .password-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(20,5,6,.76) 75%);
  box-shadow: 0 22px 65px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.035);
}
.account-card { padding: 29px clamp(21px, 5vw, 40px) 34px; }
.account-card-heading { display: flex; align-items: center; gap: 16px; }
.account-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,120,125,.65);
  border-radius: 17px;
  background: linear-gradient(145deg, #ff3b43, #a90008);
  box-shadow: 0 7px 23px rgba(255,16,24,.24);
  font-size: 22px;
  font-weight: 750;
}
.account-card-heading .section-kicker { margin-bottom: 5px; }
.account-card-heading h2, .collection-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.account-details { margin: 27px 0 25px; }
.account-details > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(0, 1.6fr);
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.account-details dt { color: #aaa4a5; font-size: 13px; }
.account-details dd { min-width: 0; margin: 0; color: #f5f2f2; font-size: 14px; overflow-wrap: anywhere; }
.account-action { width: fit-content; min-height: 48px; height: auto; padding: 12px 18px; font-size: 14px; border: 0; }
.account-action svg { width: 18px; height: 18px; }
.collection-card { margin-top: 22px; padding: 26px clamp(21px, 5vw, 34px) 30px; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.collection-heading .section-kicker { margin-bottom: 7px; }
.collection-count {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  color: #c6bfc0;
  font-size: 11px;
}
.collection-empty {
  margin-top: 22px;
  padding: 33px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(0,0,0,.15);
}
.collection-icon, .password-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,75,82,.26);
  border-radius: 15px;
  background: rgba(255,16,24,.1);
  color: #ff777d;
}
.collection-icon svg, .password-icon svg { width: 22px; height: 22px; }
.collection-empty h3 { margin: 15px 0 7px; font-size: 16px; }
.collection-empty p { max-width: 390px; margin: 0; color: #aaa4a5; font-size: 13px; line-height: 1.65; }
.collection-tabs {
  margin-top: 23px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(0,0,0,.2);
}
.collection-tab {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #aaa4a5;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.collection-tab:hover { color: #fff; }
.collection-tab[aria-selected="true"] {
  border-color: rgba(255,94,100,.28);
  background: linear-gradient(120deg, rgba(255,16,24,.2), rgba(255,16,24,.07));
  color: #fff;
}
.collection-content { padding-top: 17px; }
.collection-loading { margin: 10px 0; color: #aaa4a5; font-size: 13px; }
.session-collection-list { display: grid; gap: 10px; }
.session-collection-item {
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 12px;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: linear-gradient(120deg, rgba(255,255,255,.045), rgba(0,0,0,.12));
  color: #f5f2f2;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.session-collection-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255,90,96,.4);
  background: linear-gradient(120deg, rgba(255,16,24,.1), rgba(255,255,255,.025));
}
.session-item-info { min-width: 0; display: grid; gap: 5px; }
.session-item-info strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.session-item-info > span { color: #aaa4a5; font-size: 12px; }
.ebook-collection-item {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255,255,255,.045), rgba(0,0,0,.12));
}
.ebook-collection-item > img { width: 58px; height: 70px; border-radius: 7px; object-fit: cover; background: #180a0b; }
.ebook-collection-info { min-width: 0; display: grid; gap: 6px; }
.ebook-collection-info strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ebook-collection-info span { color: #aaa4a5; font-size: 11px; line-height: 1.5; }
.ebook-collection-download { min-height: 39px; padding: 8px 12px; border: 0; border-radius: 9px; background: #168446; color: white; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.ebook-collection-download:hover { background: #1aa154; }
.session-status-badge {
  padding: 6px 9px;
  border: 1px solid rgba(117,229,167,.18);
  border-radius: 999px;
  background: rgba(73,205,136,.08);
  color: #a9e3be;
  font-size: 10px;
  text-transform: capitalize;
  white-space: nowrap;
}
.session-item-amount { font-size: 13px; font-weight: 650; white-space: nowrap; }
.session-item-arrow { color: #ff777d; font-size: 24px; line-height: 1; }
.session-detail {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(15,5,6,.45));
}
.session-detail-back {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff858a;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.session-detail > .section-kicker { margin: 0 0 7px; font-size: 10px; }
.session-detail > h3 { margin: 0 0 16px; font-size: 20px; }
.session-detail-rows { margin: 0; }
.session-detail-rows > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(0, 1.5fr);
  gap: 15px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.session-detail-rows dt { color: #aaa4a5; font-size: 12px; }
.session-detail-rows dd { min-width: 0; margin: 0; color: #f5f2f2; font-size: 13px; overflow-wrap: anywhere; }
.session-meeting-info {
  margin-top: 17px;
  padding: 16px;
  border: 1px solid rgba(255,80,87,.2);
  border-radius: 13px;
  background: rgba(255,16,24,.06);
}
.session-meeting-info h4 { margin: 0 0 6px; font-size: 14px; }
.session-meeting-info p { margin: 0; color: #c8c5c6; font-size: 13px; line-height: 1.6; }
.session-meeting-info a { display: inline-flex; margin-top: 12px; color: #ff858a; font-size: 13px; font-weight: 650; }
.session-explainer {
  margin-top: 17px;
  padding: 17px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(0,0,0,.16);
}
.session-explainer-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,75,82,.24);
  border-radius: 12px;
  background: rgba(255,16,24,.09);
  color: #ff777d;
}
.session-explainer-icon svg { width: 18px; height: 18px; }
.session-explainer h3 { margin: 1px 0 6px; font-size: 14px; }
.session-explainer p { margin: 0; color: #aaa4a5; font-size: 12px; line-height: 1.65; }
.session-book-link { min-height: 42px; height: auto; margin-top: 16px; padding: 10px 15px; font-size: 12px; }
[data-collection-count] { white-space: nowrap; }
.account-logout {
  margin-top: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.account-logout p { margin: 0; color: #aaa4a5; font-size: 13px; }
.button-logout {
  min-height: 43px;
  height: auto;
  padding: 10px 15px;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.035);
  font-size: 13px;
}
.button-logout:hover { border-color: rgba(255,80,87,.55); background: rgba(255,16,24,.1); }
.button-logout svg { width: 17px; height: 17px; }
.profile-status { min-height: 20px; margin: 12px 0 0; color: #a9e3be; font-size: 13px; }
.profile-status[data-error="true"] { color: #ff858a; }
.password-layout { width: min(100% - 48px, 540px); margin: 0 auto; padding: 76px 0 80px; }
.password-intro { margin-bottom: 27px; }
.password-icon { margin-bottom: 23px; }
.password-card { padding: 30px clamp(22px, 5vw, 36px); }
.password-card label { display: block; margin: 0 0 9px; color: #e8e4e5; font-size: 13px; font-weight: 600; }
.password-card input {
  width: 100%;
  height: 48px;
  margin-bottom: 21px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  color: var(--white);
}
.password-card input:focus { border-color: rgba(255,80,87,.68); outline: none; box-shadow: 0 0 0 3px rgba(255,16,24,.1); }
.password-hint { margin: -10px 0 22px; color: #9e9697; font-size: 12px; }
.password-card .account-action { width: 100%; }
.password-card .profile-status { text-align: center; }
@media (max-width: 560px) {
  .profile-header { width: calc(100% - 30px); min-height: 70px;     .ebook-collection-item { grid-template-columns: 48px minmax(0,1fr); gap: 10px; }
    .ebook-collection-item > img { width: 48px; height: 60px; }
    .ebook-collection-download { grid-column: 1 / -1; width: 100%; }
  }
  .profile-header .brand { gap: 5px; }
  .profile-header .brand img { width: 47px; height: 36px; }
  .profile-header .brand-name { font-size: 15px; }
  .profile-back-link { gap: 5px; font-size: 12px; }
  .account-page-footer { width: calc(100% - 30px); gap: 18px; }
  .account-page-footer a { font-size: 11px; }
  .account-layout, .password-layout { width: calc(100% - 30px); padding-top: 48px; }
  .account-details > div { grid-template-columns: 1fr; gap: 7px; padding: 13px 0; }
  .account-card, .collection-card { border-radius: 18px; }
  .collection-count { font-size: 10px; white-space: nowrap; }
  .collection-card { padding: 21px 16px 19px; }
  .collection-tabs { margin-top: 18px; }
  .collection-tab { min-height: 40px; padding: 7px 5px; font-size: 12px; }
  .session-collection-item { grid-template-columns: minmax(0, 1fr) auto 10px; gap: 9px; padding: 13px 12px; }
  .session-status-badge { grid-column: 2; grid-row: 1; padding: 5px 7px; font-size: 9px; }
  .session-item-amount { grid-column: 1; grid-row: 2; font-size: 12px; }
  .session-item-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .session-detail { padding: 16px 13px; }
  .session-detail-rows > div { grid-template-columns: minmax(92px, .75fr) minmax(0, 1.25fr); gap: 10px; padding: 10px 0; }
  .session-explainer { padding: 14px 12px; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .session-explainer-icon { width: 34px; height: 34px; }
}
