/* Luma Studio dark-theme member modal & header bar fusion */
.member-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(186, 255, 232, 0.22);
  background: rgba(13, 25, 31, 0.85);
  color: #f4fbf8;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}
.member-nav-btn:hover {
  border-color: #33e0c4;
  color: #33e0c4;
}
.member-nav-btn.is-admin {
  border-color: rgba(255, 192, 77, 0.45);
  color: #ffc04d;
}
.version-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #33e0c4;
  background: rgba(51, 224, 196, 0.12);
  border: 1px solid rgba(51, 224, 196, 0.28);
}

/* Override member-kit light modal defaults into Luma Studio cyber-dark surface */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 8, 12, 0.78);
  backdrop-filter: blur(8px);
}
.overlay.open {
  display: flex;
}
.overlay .modal {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 18px;
  background: #0b181f;
  border: 1px solid rgba(186, 255, 232, 0.2);
  color: #f4fbf8;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}
.overlay .member-modal {
  width: min(820px, 100%);
}
.overlay .modal h2,
.overlay .modal h3 {
  color: #f4fbf8;
}
.overlay .modal p,
.overlay .modal small,
.overlay .modal label,
.overlay .modal dt {
  color: #9eb4b0;
}
.overlay .modal input,
.overlay .modal textarea,
.overlay .modal select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(186, 255, 232, 0.22);
  background: rgba(7, 16, 20, 0.9);
  color: #f4fbf8;
}
.overlay .modal .primary,
.overlay .modal button[type="submit"] {
  background: #33e0c4;
  color: #06100e;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
}
.overlay .modal .load-more,
.overlay .modal .account-logout {
  background: rgba(255, 255, 255, 0.06);
  color: #f4fbf8;
  border: 1px solid rgba(186, 255, 232, 0.16);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}
.overlay .modal .account-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.overlay .modal .account-admin-link {
  display: block;
  margin-bottom: 8px;
  border-color: rgba(255, 192, 77, 0.4);
  color: #ffc04d;
}
.overlay .modal .login-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #f4fbf8;
  margin-bottom: 12px;
}
.overlay .modal .icon-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(186, 255, 232, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #f4fbf8;
}
.redeem-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.redeem-output {
  min-height: 24px;
  color: #b8f25f;
  font-size: 13px;
}
.site-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 90;
  padding: 10px 18px;
  border-radius: 10px;
  background: #10222a;
  border: 1px solid #33e0c4;
  color: #f4fbf8;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}
.site-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.plan-card button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
