.h5-account-page {
  max-width: 1180px;
}

.h5-account-hero {
  align-items: center;
  background: linear-gradient(135deg, #17130f 0%, #2c2218 62%, #3a2a19 100%);
  border: 1px solid #715127;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(31, 23, 15, .15);
  color: #e6d7c0;
  display: flex;
  margin: 12px 0 22px;
  overflow: hidden;
  padding: 28px 30px;
  position: relative;
}

.h5-account-hero:after {
  background: radial-gradient(circle, rgba(214,181,110,.2) 0, transparent 68%);
  content: "";
  height: 240px;
  pointer-events: none;
  position: absolute;
  right: -60px;
  top: -100px;
  width: 240px;
}

.h5-account-avatar {
  align-items: center;
  background: #0f0c09;
  border: 2px solid #c99a4c;
  border-radius: 50%;
  color: #e1bc75;
  display: flex;
  flex: 0 0 76px;
  font-size: 31px;
  height: 76px;
  justify-content: center;
  margin-right: 20px;
}

.h5-account-identity {
  min-width: 0;
}

.h5-account-welcome {
  color: #bda887;
  font-size: 12px;
  letter-spacing: .12em;
}

.h5-account-identity h1 {
  color: #f3e5cf;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 28px;
  margin: 2px 0 2px;
}

.h5-account-identity p {
  color: #d9c6a9;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-account-status {
  color: #caaa6f;
  font-size: 11px;
}

.h5-account-profile-edit {
  align-items: center;
  border: 1px solid rgba(214,181,110,.58);
  border-radius: 22px;
  color: #ead6b3;
  display: flex;
  gap: 7px;
  margin-left: auto;
  padding: 9px 16px;
  position: relative;
  z-index: 1;
}

.h5-account-profile-edit:hover,
.h5-account-profile-edit:focus {
  background: #c2964b;
  color: #17110a;
}

.h5-account-quick {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.h5-account-quick > a {
  align-items: center;
  background: var(--cigar-paper, #fffdf9);
  border: 1px solid var(--cigar-line, #dfd5c3);
  border-radius: 13px;
  box-shadow: 0 3px 14px rgba(46,33,19,.06);
  color: var(--cigar-ink, #211a14);
  display: flex;
  flex-direction: column;
  min-height: 145px;
  padding: 20px 12px 16px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.h5-account-quick > a:hover {
  box-shadow: var(--cigar-shadow, 0 8px 28px rgba(31,23,15,.09));
  transform: translateY(-2px);
}

.h5-account-quick-icon {
  align-items: center;
  background: #f2e7d5;
  border-radius: 50%;
  color: #8a5c20;
  display: flex;
  font-size: 21px;
  height: 48px;
  justify-content: center;
  margin-bottom: 9px;
  width: 48px;
}

.h5-account-quick strong,
.h5-account-quick small {
  display: block;
}

.h5-account-quick strong {
  font-size: 15px;
}

.h5-account-quick small {
  color: var(--cigar-muted, #786d61);
  font-size: 11px;
  margin-top: 3px;
}

.h5-account-groups {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h5-account-panel {
  background: var(--cigar-paper, #fffdf9);
  border: 1px solid var(--cigar-line, #dfd5c3);
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(46,33,19,.05);
  overflow: hidden;
}

.h5-account-panel-heading {
  align-items: center;
  background: #f5eee2;
  border: 0;
  border-bottom: 1px solid var(--cigar-line, #dfd5c3);
  color: var(--cigar-ink, #211a14);
  cursor: default;
  display: flex;
  gap: 11px;
  padding: 15px 18px;
  text-align: left;
  width: 100%;
}

.h5-account-panel-heading > span {
  align-items: center;
  background: #282016;
  border-radius: 9px;
  color: #d6b56e;
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.h5-account-panel-heading h2 {
  font-size: 17px;
  margin: 0;
}

.h5-account-panel-heading p {
  color: var(--cigar-muted, #786d61);
  font-size: 11px;
  margin: 2px 0 0;
}

.h5-account-panel-arrow {
  color: #9b7845;
  display: none;
  font-size: 19px;
  margin-left: auto;
  transition: transform .2s ease;
}

.h5-account-menu > a {
  align-items: center;
  border-bottom: 1px solid #eee5d7;
  color: var(--cigar-ink, #211a14);
  display: flex;
  min-height: 66px;
  padding: 11px 17px;
}

.h5-account-menu > a:last-child {
  border-bottom: 0;
}

.h5-account-menu > a:hover {
  background: #fcf8f1;
}

.h5-account-menu-icon {
  align-items: center;
  background: #f3eadb;
  border-radius: 9px;
  color: #906327;
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  margin-right: 12px;
}

.h5-account-menu-text {
  min-width: 0;
}

.h5-account-menu-text strong,
.h5-account-menu-text small {
  display: block;
}

.h5-account-menu-text strong {
  font-size: 14px;
  font-weight: 600;
}

.h5-account-menu-text small {
  color: var(--cigar-muted, #786d61);
  font-size: 11px;
  margin-top: 2px;
}

.h5-account-menu > a > .fa-angle-right {
  color: #b3a38d;
  font-size: 18px;
  margin-left: auto;
  padding-left: 10px;
}

.h5-account-logout {
  background: #fff9f7;
  border: 1px solid #c98f87;
  border-radius: 11px;
  color: #8c3028;
  display: block;
  font-weight: 600;
  margin: 22px 0 4px;
  padding: 13px 18px;
  text-align: center;
}

.h5-account-logout:hover,
.h5-account-logout:focus {
  background: #8c3028;
  border-color: #8c3028;
  color: #fff;
}

.h5-account-logout i {
  margin-right: 7px;
}

@media (max-width: 767px) {
  .h5-account-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .h5-account-hero {
    border-radius: 13px;
    margin: 6px 0 14px;
    padding: 18px 15px;
  }

  .h5-account-avatar {
    flex-basis: 56px;
    font-size: 23px;
    height: 56px;
    margin-right: 12px;
  }

  .h5-account-identity {
    padding-right: 4px;
  }

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

  .h5-account-identity p {
    font-size: 12px;
    max-width: 185px;
  }

  .h5-account-profile-edit {
    border: 0;
    margin-left: auto;
    padding: 8px;
  }

  .h5-account-profile-edit span {
    display: none;
  }

  .h5-account-quick {
    gap: 9px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 14px;
  }

  .h5-account-quick > a {
    min-height: 118px;
    padding: 15px 7px 11px;
  }

  .h5-account-quick-icon {
    font-size: 18px;
    height: 42px;
    margin-bottom: 7px;
    width: 42px;
  }

  .h5-account-groups {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .h5-account-panel {
    border-radius: 12px;
  }

  .h5-account-panel-heading {
    cursor: pointer;
    padding: 13px 14px;
  }

  .h5-account-panel-heading:focus {
    box-shadow: inset 0 0 0 2px rgba(185, 138, 61, .28);
    outline: 0;
  }

  .h5-account-panel-arrow {
    display: block;
  }

  .h5-account-panel.is-open .h5-account-panel-arrow {
    transform: rotate(180deg);
  }

  .h5-account-panel:not(.is-open) .h5-account-menu {
    display: none;
  }

  .h5-account-panel-heading h2 {
    font-size: 16px;
  }

  .h5-account-menu > a {
    min-height: 62px;
    padding: 10px 13px;
  }

  .h5-account-menu-icon {
    flex-basis: 36px;
    height: 36px;
    margin-right: 10px;
  }

  .h5-account-logout {
    margin-bottom: 13px;
    min-height: 48px;
    padding: 13px;
  }
}
