/* MEMBER BUTTON */
.member-btn-wrap { position: relative; display: inline-flex; }

.member-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.member-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(139,92,246,.3), 0 0 20px rgba(139,92,246,.5);
}
.member-btn svg { width: 22px; height: 22px; }

.member-btn-pulse {
  position: absolute; top: -3px; right: -3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #22c55e; border: 2px solid #050510;
}
.member-btn-pulse::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: rgba(34,197,94,.4);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%  { transform: scale(.8); opacity: 1; }
  100%{ transform: scale(2);  opacity: 0; }
}

.member-tooltip {
  position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%);
  background: #1a1030; color: #c4b5fd; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(139,92,246,.4);
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s;
  letter-spacing: .5px;
}
.member-btn-wrap:hover .member-tooltip { opacity: 1; }

/* OVERLAY */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,5,16,.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: opacity .35s ease; padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

/* MODAL */
.modal {
  position: relative; max-width: 440px; width: 100%;
  border-radius: 20px; background: #0d0b1a; padding: 0;
  transform: scale(.92) translateY(20px);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }

/* BORDA ANIMADA */
.modal-border {
  position: absolute; inset: 0; border-radius: 20px;
  pointer-events: none; z-index: 10;
}
.modal-border svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.border-rect {
  fill: none; stroke: url(#borderGrad); stroke-width: 1.5;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
}
.modal-overlay.active .border-rect {
  animation: border-draw .9s .05s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes border-draw { to { stroke-dashoffset: 0; } }

/* MODAL INNER */
.modal-inner { padding: 32px 28px 28px; position: relative; z-index: 5; }

.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 20;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.25);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s; color: #9f7aea;
  font-size: 18px; font-weight: 300; line-height: 1;
}
.modal-close:hover { background: rgba(139,92,246,.25); transform: scale(1.1); }

.modal-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, #8b5cf6, #4c1d95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(139,92,246,.2);
}
.modal-tag {
  display: inline-block; margin-bottom: 12px;
  padding: 4px 14px; font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: #8b5cf6;
  border: 1px solid rgba(139,92,246,.35); border-radius: 999px;
}
.modal h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; text-align: center; }
.modal-sub { font-size: 13px; color: #9999bb; text-align: center; margin-bottom: 24px; line-height: 1.5; }
.modal-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(139,92,246,.4), transparent); margin-bottom: 22px; }

.modal-options { display: flex; flex-direction: column; gap: 12px; }
.modal-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(139,92,246,.06); border: 1px solid rgba(139,92,246,.18);
  cursor: pointer; text-decoration: none;
  transition: background .25s, border-color .25s, transform .2s;
}
.modal-option:hover {
  background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.45);
  transform: translateX(3px);
}
.modal-option-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.modal-option-text strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.modal-option-text span { font-size: 12px; color: #7777aa; }
.modal-option-arrow { margin-left: auto; color: #6d28d9; font-size: 18px; transition: transform .2s; }
.modal-option:hover .modal-option-arrow { transform: translateX(3px); }

.modal-options-wrap { transition: opacity .3s; }
.modal-options-wrap.hide { opacity: 0; pointer-events: none; }

.modal-redirect {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; padding: 32px 28px; gap: 16px; min-height: 180px;
}
.modal-redirect.show { display: flex; }
.redirect-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(139,92,246,.2); border-top-color: #8b5cf6;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.redirect-text { color: #c4b5fd; font-size: 15px; font-weight: 600; text-align: center; }
.redirect-sub { color: #7777aa; font-size: 12px; text-align: center; }

@media (max-width: 480px) {
  .modal-inner { padding: 28px 18px 22px; }
  .modal h2 { font-size: 19px; }
}


/* garanti que os botões fiquem um do lado do outro */
.header-right 
{
  display: flex;
  align-items: center;
  gap: 18px;
}