.abm-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.35);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  opacity:0;
  pointer-events:none;
  transition:opacity .24s ease;
  z-index:2147483646;
}
.abm-overlay.is-open{opacity:1;pointer-events:auto;}

.abm-container{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:24px 16px;
  height:100dvh;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity .24s ease;
  z-index:2147483647;
  -webkit-overflow-scrolling:touch;
  touch-action:none;
}
.abm-container.is-open{opacity:1;pointer-events:auto;}

.abm-dialog{
  position:relative;
  width:375px;
  max-width:92vw;
  margin:0 auto;
  max-height:92dvh;
  display:flex;
  flex-direction:column;
  border-radius:24px;
  background:transparent;
  overflow:hidden;
  box-shadow:none;
}

.abm-body{
  flex:1 1 auto;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  background:#120822;
}

.abm-card{
  display:flex;
  flex-direction:column;
  background:rgba(31,18,54,0.38);
  color:#f1f5f9;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Inter,Helvetica,Arial,sans-serif;
  border:1px solid rgba(137,117,185,0.35);
  box-shadow:0 30px 70px rgba(76,29,149,0.42);
  backdrop-filter:blur(26px);
  -webkit-backdrop-filter:blur(26px);
}

.abm-card__hero{
  position:relative;
  padding:16px;
  background:linear-gradient(145deg,rgba(76,29,149,0.72),rgba(30,64,175,0.45));
  color:#ffffff;
}

.abm-card__close,
.abm-close{
  position:absolute;
  top:12px;
  right:12px;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.08);
  color:#f8fafc;
  display:grid;
  place-items:center;
  font-size:16px;
  cursor:pointer;
  transition:background .18s ease, opacity .18s ease;
  z-index:5;
}
.abm-card__close:hover,
.abm-close:hover{
  background:rgba(255,255,255,0.16);
}

.abm-card__identity{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding-right:16px;
  margin-bottom:12px;
}

.abm-card__avatar{
  width:80px;
  height:80px;
  border-radius:24px;
  overflow:hidden;
  flex:0 0 auto;
  box-shadow:0 18px 32px rgba(24,16,42,0.45);
}
.abm-card__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.abm-card__meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding-top:4px;
}
.abm-card__name,
.abm-name{
  margin:0;
  font-size:20px;
  line-height:1.4;
  font-weight:700;
  letter-spacing:-0.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#f8fafc;
}
.abm-card__bio,
.abm-bio{
  margin:0;
  font-size:12px;
  line-height:1.4;
  color:rgba(224,231,255,0.78);
  display:-webkit-box;
  line-clamp:2;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.abm-card__stats,
.abm-stats,
.stats{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.abm-card__stat,
.abm-stat,
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:0;
  height:20px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(148,87,235,0.22);
  border:1px solid rgba(255,255,255,0.14);
  font-size:11px;
  color:#f8fafc;
  text-shadow:0 1px 3px rgba(15,23,42,0.35);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 4px 10px rgba(91,33,182,0.25);
  white-space:nowrap;
}
.abm-card__stat svg,
.abm-stat svg,
.pill svg{
  width:12px;
  height:12px;
}
.abm-card__stat-label,
.abm-stat-label{
  font-weight:600;
  text-transform:capitalize;
  letter-spacing:0.04em;
}

.abm-card__body{
  padding:16px;
  background:rgba(22,15,36,0.72);
  border-top:1px solid rgba(124,58,237,0.25);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.abm-card__section,
.abm-section{
  margin-top:16px;
  color:#f1f5f9;
}
.abm-card__section:first-child,
.abm-section:first-child{
  margin-top:0;
}

.abm-card__section-title,
.abm-section-title{
  margin:0 0 12px;
  font-size:16px;
  font-weight:700;
  color:#e0e7ff;
}

.abm-card__badges-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.abm-card__rankpoints{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 16px;
  border-radius:999px;
  background:linear-gradient(120deg,#7c3aed,#22d3ee);
  box-shadow:0 5px 16px rgba(56,189,248,0.28);
  color:#ffffff;
  font-weight:600;
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-shadow:0 2px 4px rgba(15,23,42,0.2);
  cursor:pointer;
}
.abm-card__rankpoints::before{
  content:'';
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  background:linear-gradient(120deg,rgba(124,58,237,0.55),rgba(56,189,248,0.55));
  opacity:0.55;
  filter:blur(10px);
  z-index:-1;
}
.abm-card__rankpoints-label,
.abm-card__rankpoints-value{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  cursor:pointer;
}
.abm-card__rankpoints-value{
  font-size:14px;
  font-weight:700;
}
.abm-card__rankpoints-icon{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
}
.abm-card__rankpoints-icon img,
.abm-card__rankpoints-icon svg{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  animation:abm-icon-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes abm-icon-pulse{
  0%,100%{opacity:0.7; transform:scale(0.94);}
  50%{opacity:1; transform:scale(1);}
}

.abm-card__badge-list,
.abm-badges-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 16px;
  padding:0;
  list-style:none;
}
.abm-card__badge,
.abm-badge{
  position:relative;
  width:56px;
  height:56px;
  border-radius:16px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:rgba(45,17,78,0.28);
  border:1px solid rgba(137,117,185,0.35);
  box-shadow:0 16px 28px rgba(76,29,149,0.22);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:box-shadow .18s ease, border-color .18s ease;
}
.abm-card__badge::after,
.abm-badge::after{
  content:'';
  position:absolute;
  inset:-3px;
  border-radius:inherit;
  border:2px solid transparent;
  opacity:0;
  pointer-events:none;
}
.abm-card__badge:hover,
.abm-badge:hover{
  box-shadow:0 16px 26px rgba(236,72,153,0.16);
  border-color:rgba(236,72,153,0.32);
}
.abm-card__badge:hover::after,
.abm-badge:hover::after{
  opacity:0;
}
.abm-card__badge img,
.abm-badge img,
.abm-card__badge svg,
.abm-badge svg{
  width:100%;
  height:100%;
  border-radius:16px;
  background:rgba(32,20,54,0.75);
  display:block;
  object-fit:cover;
  box-shadow:0 8px 18px rgba(15,23,42,0.18);
}

.abm-actions{
  display:flex;
  gap:8px;
}
.abm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  padding:0 12px;
  height:38px;
  border:1px solid rgba(148,87,235,0.4);
  background:rgba(31,24,49,0.72);
  color:#f1f5f9;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  box-shadow:0 6px 14px rgba(18,12,32,0.22);
  transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  text-decoration:none;
}
.abm-btn:disabled{
  cursor:default;
  opacity:0.92;
}
.abm-btn:disabled:hover{
  transform:none;
  box-shadow:0 6px 14px rgba(18,12,32,0.22);
}
.abm-btn:disabled::after{
  opacity:0;
}
.abm-btn svg{
  width:14px;
  height:14px;
}
.abm-btn-label-text{
  color:inherit;
}
.abm-author-btn{
  background:#ffffff;
  color:#1f2937;
  border-color:rgba(148,87,235,0.35);
  box-shadow:0 6px 14px rgba(148,87,235,0.18);
}
.abm-author-btn .abm-btn-icon,
.abm-author-btn .abm-btn-label-text{
  color:inherit;
}
.abm-author-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(124,58,237,0.5);
  background:#f9f5ff;
  box-shadow:0 10px 18px rgba(148,87,235,0.24);
}
.abm-btn-label-text{
  color:inherit;
}
.abm-actions .abm-btn{
  flex:1 1 0;
  min-width:0;
  height:36px;
  padding:0 6px;
  border:1px solid rgba(148,87,235,0.4);
  color:#f1f5f9;
}
.abm-card .abm-btn{
  border:1px solid rgba(148,87,235,0.4);
  background:rgba(31,24,49,0.72);
  color:#f1f5f9;
}
.abm-card .abm-btn-primary{
  background:#5b21b6;
  border-color:rgba(93,63,211,0.9);
  color:#ffffff;
}
.abm-card .abm-btn-secondary{
  background:rgba(31,24,49,0.72);
  border-color:rgba(148,87,235,0.4);
  color:#f1f5f9;
}
.abm-card .abm-btn:hover{
  transform:translateY(-1px) scale(1.02);
  background:rgba(36,26,58,0.88);
  border-color:rgba(148,87,235,0.55);
  box-shadow:0 8px 16px rgba(148,87,235,0.24);
  animation:abm-btn-hover-pulse .6s ease-out forwards;
}
.abm-card .abm-btn-primary:hover{
  background:#8b5cf6;
  border-color:rgba(148,87,235,0.55);
}

.abm-btn-friend{
  transition:background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.abm-btn-friend .abm-btn-icon{
  transition:color .18s ease;
}
.abm-btn-friend.is-pending{
  border-color:rgba(148,87,235,0.4);
  box-shadow:0 6px 14px rgba(18,12,32,0.22);
}
.abm-btn-friend.is-pending .abm-btn-icon{
  color:#f472b6;
}
.abm-btn-friend.is-friends{
  border-color:rgba(148,87,235,0.4);
  box-shadow:0 6px 14px rgba(18,12,32,0.22);
  cursor:default;
}
.abm-btn-friend.is-friends .abm-btn-icon{
  color:#67e8f9;
}
.abm-btn-friend.is-friends:hover,
.abm-btn-friend.is-friends:focus,
.abm-btn-friend.is-friends:active{
  transform:none;
  background:rgba(31,24,49,0.72);
  border-color:rgba(148,87,235,0.4);
  box-shadow:0 6px 14px rgba(18,12,32,0.22);
}

.abm-card__posts-list,
.abm-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.abm-card__body--posts{
  position:relative;
  padding:16px;
  background:rgba(22,15,36,0.75);
  border:1px solid rgba(137,117,185,0.35);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
}
.abm-card__post-item,
.abm-list-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  background:rgba(32,20,54,0.75);
  border-radius:16px;
  border:1px solid rgba(107,70,193,0.35);
  cursor:pointer;
  position:relative;
  overflow:hidden;
  box-shadow:0 14px 24px rgba(58,12,110,0.2);
  transition:box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.abm-card__post-item::after,
.abm-list-item::after{
  content:'';
  position:absolute;
  inset:-3px;
  border-radius:inherit;
  border:3px solid rgba(255,31,174,0);
  opacity:0;
  pointer-events:none;
  filter:drop-shadow(0 0 12px rgba(255,31,174,0.45));
  transition:opacity .18s ease, border-color .18s ease, filter .18s ease;
}
.abm-card__post-item:hover,
.abm-list-item:hover{
  background:rgba(40,24,68,0.82);
  border-color:#ff1fae;
  box-shadow:0 0 0 1px #ff1fae, 0 12px 20px rgba(255,31,174,0.26);
}
.abm-card__post-item:hover::after,
.abm-list-item:hover::after{
  opacity:1;
  border-color:#ff1fae;
  filter:drop-shadow(0 0 22px rgba(255,31,174,0.7));
}
@keyframes abm-btn-hover-pulse{
  0%{box-shadow:0 6px 14px rgba(18,12,32,0.22);}
  60%{box-shadow:0 9px 18px rgba(148,87,235,0.28);}
  100%{box-shadow:0 8px 16px rgba(148,87,235,0.24);}
}
.abm-card__thumb,
.abm-thumb{
  width:64px;
  height:64px;
  border-radius:16px;
  overflow:hidden;
  flex:0 0 auto;
  box-shadow:0 10px 18px rgba(15,23,42,0.18);
}
.abm-card__thumb img,
.abm-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.abm-card__post,
.abm-post{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
  color:#f1f5f9;
  text-decoration:none;
}
.abm-card__post:hover,
.abm-card__post:focus,
.abm-card__post:active,
.abm-post:hover,
.abm-post:focus,
.abm-post:active{
  color:#f1f5f9;
}
.abm-card__post-title,
.abm-post-title{
  font-size:14px;
  font-weight:600;
  letter-spacing:-0.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.abm-card__post-date,
.abm-post-date{
  font-size:12px;
  color:rgba(203,213,225,0.75);
}

.abm-card__nav{
  display:flex;
  gap:8px;
  margin-top:16px;
}
.abm-card__nav .abm-btn{
  flex:1 1 0;
  height:40px;
  font-size:14px;
  border:1px solid rgba(148,87,235,0.4);
  background:rgba(31,24,49,0.72);
  color:#f1f5f9;
}
.abm-card__nav .abm-btn-primary{
  background:#5b21b6;
  border-color:rgba(93,63,211,0.9);
  color:#ffffff;
}
.abm-card__nav .abm-btn-primary:hover{
  background:#6d28d9;
}

.abm-card__view-more{
  margin-top:12px;
}
.abm-btn-view-more{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  height:40px;
  font-size:14px;
  border:1px solid rgba(148,87,235,0.4);
  background:rgba(31,24,49,0.72);
  color:#f1f5f9;
  position:relative;
  overflow:hidden;
  flex:0 0 auto;
}
.abm-btn-view-more::after{
  content:'';
  position:absolute;
  inset:-3px;
  border-radius:inherit;
  border:2px solid transparent;
  opacity:0;
  pointer-events:none;
}
.abm-btn-view-more:hover{
  border-color:rgba(148,87,235,0.5);
  box-shadow:0 10px 18px rgba(148,87,235,0.18);
}
.abm-btn-view-more:hover::after{
  opacity:0;
}
.abm-card__body--posts .abm-card__close{
  border-color:rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.08);
  color:#f8fafc;
}
.abm-card__body--posts .abm-card__close:hover{
  background:rgba(255,255,255,0.16);
}

.abm-sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media (prefers-reduced-motion:reduce){
  .abm-overlay,
  .abm-container,
  .abm-card__close,
  .abm-btn,
  .abm-card__post-item,
  .abm-card__view-more,
  .abm-btn-view-more{transition:none!important;}
}

html.abm-scroll-lock,
body.abm-scroll-lock{
  overflow:hidden;
  touch-action:none;
}
