.account-list-wrapper {
    background: {$theme['bordercolor']};
    border: 1px solid {$theme['bordercolor']};
    margin-bottom: 15px;
}

.account-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.account-list-title {
    flex: 1;
}

.account-list-nav {
    flex-shrink: 0;
}

.account-list-content {
    width: 100%;
    background: {$theme['contentbg']};
    padding: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .account-list-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .account-list-nav {
        width: 100%;
    }
    
    .account-list-nav .button {
        display: block;
        width: 100%;
        text-align: center;
    }
}


/* ========================================
   ACCOUNT LIST WRITER HEADER & CONTAINER STYLES
   ======================================== */
.MList-header {
  width: 100%;
  height: 150px;
  background-color: var(--block-dark);
  margin: 20px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative; /* Allows absolute positioning of children */
  padding: 0 25px;
}

.MList-avatar {
  width: 100px;
  height: 100px;
  background-size: cover;
  border-radius: 100%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
border: 0;
}

.MList-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
	border: 0;
}

.MList-header-name {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Centers perfectly to parent */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2; /* Places text above avatar if they overlap */
}

.MList-header-name a {
  color: var(--accent1)!important;
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.MList-header-name a:hover {
  color: var(--accent1-hover, var(--accent1))!important;
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.MList-header-subtitle {
  font-size: 0.9em;
  color: var(--text-color)!important;
  opacity: 0.8;
  margin-top: 5px;
}

/* ========================================
   MEMBERLIST HEADER & CONTAINER STYLES
   ======================================== */

.memberlist-container {
  width: 100%;
  margin-bottom: 20px;
}

.memberlist-header {
  margin-bottom: 20px;
}

.memberlist-sort-options {
  padding: 10px;
  text-align: center;
}

.memberlist-sort-options a {
  text-decoration: none;
}

/* ========================================
   MEMBER CARDS GRID WRAPPER
   ======================================== */

.member-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;   
  align-items: flex-start;      
  align-content: flex-start;
  gap: 2em; 
  max-width: 1200px;
  margin: 0 auto; 
  padding: 2em 0;
  position: relative;
	  box-sizing: border-box;
}

/* Make each card a fixed column size so wrapping forms a neat grid */
.member-row > .MC-wrapper {
  flex: 0 0 280px;
}

/* ========================================
   INDIVIDUAL MEMBER CARD STYLES
   ======================================== */

.MC-wrapper {
  min-width: 250px;
  min-height: 500px;
  position: relative;
  overflow: visible;
}

.MC-avatar, .MC-avatar img {
  
  min-width: 250px;
  min-height: 500px;
  position: relative;
	border-radius: 0;
	border: 0;
}

.MC-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
		border-radius: 0;
	border: 0;
}

/* Overlay layer that spans the wrapper */
.MC-inner {
  position: absolute;
  inset: 0; 
  width: 100%;
  min-height: 100%;
}

/* ========================================
   GLASS STRIP (Left side stats)
   ======================================== */

/* Narrow glass strip on the left */
.MC-glass {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.35) 0%,
    rgba(255,255,255,.15) 100%
  );
  backdrop-filter: blur(8px) brightness(1.25);
  -webkit-backdrop-filter: blur(8px) brightness(1.25);
  z-index: 1;
  /* for content layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px; /* top spacing */
  box-sizing: border-box;
}

.MC-glass .MC-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
  margin: 1em 0;
}

.MC-glass .MC-data span {
  font-size: 0.65rem;    
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #eee;
  margin-top: 2px;
}

.MC-glass .MC-data strong {
  font-size: 1.4rem;     
  font-weight: 700;
  color: #d88b2c;
}

/* ========================================
   NAME BAR (Bottom overlay)
   ======================================== */

/* Name bar at the bottom */
.MC-name {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;   
  justify-content: center; 
  text-align: center;
  color: #eef3f4;
  background: rgba(8,20,24,.45);
  backdrop-filter: blur(6px) brightness(.9);
  -webkit-backdrop-filter: blur(6px) brightness(.9);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  font-family: "Playfair Display", "Old Standard TT", "Times New Roman", serif;
  font-weight: 700;
  z-index: 2;
  padding: 10px;
  box-sizing: border-box;
}

.MC-profilelink {
 margin-bottom: 4px;
    flex-basis: 100%;
	 width: 100%;
}

.MC-regdate,
.MC-lastvisit {
  font-size: 0.65rem;    
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #eee;
  margin-top: 2px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Make member-row responsive on smaller screens */
@media screen and (max-width: 1240px) {
  .member-row {
    width: 100%;
    max-width: 1200px;
}


}

@media screen and (max-width: 768px) {
  .member-row {
    padding: 1em;
    gap: 1.5em;
}

.member-row > .MC-wrapper {
    flex: 0 0 calc(50% - 1em);
}


}

@media screen and (max-width: 600px) {
  .member-row {
    gap: 1em;
}

.member-row > .MC-wrapper {
    flex: 0 0 100%;
}


}

/* ========================================
   ATTACHED ACCOUNTS DROPDOWN (Card Version)
   ======================================== */

.MC-attached-accounts {
  width: 100%;
  margin-top: 8px;
  position: relative;
}

.aj-card-wrapper {
  width: 100%;
  position: relative;
}

/* Trigger button */
.aj-trigger {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  color: #eef3f4;
  text-decoration: none;
  font-size: 0.75rem;
  transition: background 0.2s;
  cursor: pointer;
}

.aj-trigger:hover {
  background: rgba(255,255,255,0.25);
}

/* Dropdown container */
.aj-dropdown {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  margin-bottom: 10px;
  width: 220px;
  max-width: 90vw;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(8,20,24,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Dropdown header */
.aj-dropdown-header {
  padding: 10px;
  background: rgba(255,255,255,0.1);
  color: #eef3f4;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Dropdown content */
.aj-dropdown-content {
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.aj-dropdown-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aj-dropdown-content li {
  padding: 6px 8px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.aj-dropdown-content li:last-child {
  border-bottom: none;
}

.aj-dropdown-content a {
  color: #eef3f4;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.aj-dropdown-content a:hover {
  color: #d88b2c;
}

/* Custom scrollbar for dropdown */
.aj-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.aj-dropdown-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
}

.aj-dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.aj-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}